<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Drawing 3D perspective lines in Flash</title>
	<atom:link href="http://sebleedelisle.com/2008/03/drawing-3d-perspective-lines-in-flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://sebleedelisle.com/2008/03/drawing-3d-perspective-lines-in-flash/</link>
	<description>Actionscript Games, Physics and Papervision3D</description>
	<lastBuildDate>Mon, 06 Sep 2010 19:42:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: seb</title>
		<link>http://sebleedelisle.com/2008/03/drawing-3d-perspective-lines-in-flash/comment-page-1/#comment-358</link>
		<dc:creator>seb</dc:creator>
		<pubDate>Sun, 27 Apr 2008 16:19:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebleedelisle.com/?p=165#comment-358</guid>
		<description>@Evan - thanks!

@Irishman - I&#039;m not sure exactly what you mean but sounds interesting... fire me a mail and I&#039;ll let you know!

cheers

Seb</description>
		<content:encoded><![CDATA[<p>@Evan &#8211; thanks!</p>
<p>@Irishman &#8211; I&#8217;m not sure exactly what you mean but sounds interesting&#8230; fire me a mail and I&#8217;ll let you know!</p>
<p>cheers</p>
<p>Seb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Irishman</title>
		<link>http://sebleedelisle.com/2008/03/drawing-3d-perspective-lines-in-flash/comment-page-1/#comment-364</link>
		<dc:creator>Irishman</dc:creator>
		<pubDate>Sat, 05 Apr 2008 00:15:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebleedelisle.com/?p=165#comment-364</guid>
		<description>Hey Seb, as always your examples are inspirational.

Lately I have found a nice workflow between Illustrator -&gt; Blender -&gt; Papervision3D combined with Jim Armstrong&#039;s Singularity library to generate cubic bezier curves.

Basically it would allow one to draw abstract line effects similar to those shown on this site.

http://veerle.duoh.com/blog/comments/using_the_blend_tool_and_distort_zig_zag_effect_in_illustrator/

Let me know if you are interested and I can forward it on. It might make a nice tut.

Cheers, Tim</description>
		<content:encoded><![CDATA[<p>Hey Seb, as always your examples are inspirational.</p>
<p>Lately I have found a nice workflow between Illustrator -&gt; Blender -&gt; Papervision3D combined with Jim Armstrong&#8217;s Singularity library to generate cubic bezier curves.</p>
<p>Basically it would allow one to draw abstract line effects similar to those shown on this site.</p>
<p><a href="http://veerle.duoh.com/blog/comments/using_the_blend_tool_and_distort_zig_zag_effect_in_illustrator/" rel="nofollow">http://veerle.duoh.com/blog/comments/using_the_blend_tool_and_distort_zig_zag_effect_in_illustrator/</a></p>
<p>Let me know if you are interested and I can forward it on. It might make a nice tut.</p>
<p>Cheers, Tim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evan</title>
		<link>http://sebleedelisle.com/2008/03/drawing-3d-perspective-lines-in-flash/comment-page-1/#comment-365</link>
		<dc:creator>Evan</dc:creator>
		<pubDate>Fri, 04 Apr 2008 22:44:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebleedelisle.com/?p=165#comment-365</guid>
		<description>Very inspirational Seb!  Can&#039;t wait as I see this
line effect all the time on commercials on television and it will be cool to have it in Papervision.</description>
		<content:encoded><![CDATA[<p>Very inspirational Seb!  Can&#8217;t wait as I see this<br />
line effect all the time on commercials on television and it will be cool to have it in Papervision.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seb Lee-Delisle</title>
		<link>http://sebleedelisle.com/2008/03/drawing-3d-perspective-lines-in-flash/comment-page-1/#comment-366</link>
		<dc:creator>Seb Lee-Delisle</dc:creator>
		<pubDate>Tue, 25 Mar 2008 23:20:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebleedelisle.com/?p=165#comment-366</guid>
		<description>hey keith! All that work and you just notice your sliders huh? :-)

But yes should have credited you, sorry! Thank you for your nice easy components... love em!

@nik, yeah I&#039;ve got a couple of sessions planned for FlashBelt, wait and see :-)

cheers
Seb</description>
		<content:encoded><![CDATA[<p>hey keith! All that work and you just notice your sliders huh? <img src='http://sebleedelisle.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>But yes should have credited you, sorry! Thank you for your nice easy components&#8230; love em!</p>
<p>@nik, yeah I&#8217;ve got a couple of sessions planned for FlashBelt, wait and see <img src='http://sebleedelisle.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>cheers<br />
Seb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith Peters</title>
		<link>http://sebleedelisle.com/2008/03/drawing-3d-perspective-lines-in-flash/comment-page-1/#comment-359</link>
		<dc:creator>Keith Peters</dc:creator>
		<pubDate>Tue, 25 Mar 2008 18:49:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebleedelisle.com/?p=165#comment-359</guid>
		<description>Nice sliders. ;)</description>
		<content:encoded><![CDATA[<p>Nice sliders. <img src='http://sebleedelisle.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nik</title>
		<link>http://sebleedelisle.com/2008/03/drawing-3d-perspective-lines-in-flash/comment-page-1/#comment-360</link>
		<dc:creator>Nik</dc:creator>
		<pubDate>Tue, 25 Mar 2008 03:23:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebleedelisle.com/?p=165#comment-360</guid>
		<description>Nice work Seb!
Can&#039;t wait to see what else you&#039;ve been up to when you come to Minneapolis this year for &lt;a href=&quot;http://www.flashbelt.com&quot; rel=&quot;nofollow&quot;&gt;Flashbelt&lt;/a&gt;!

Nik</description>
		<content:encoded><![CDATA[<p>Nice work Seb!<br />
Can&#8217;t wait to see what else you&#8217;ve been up to when you come to Minneapolis this year for <a href="http://www.flashbelt.com" rel="nofollow">Flashbelt</a>!</p>
<p>Nik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: seb</title>
		<link>http://sebleedelisle.com/2008/03/drawing-3d-perspective-lines-in-flash/comment-page-1/#comment-361</link>
		<dc:creator>seb</dc:creator>
		<pubDate>Mon, 24 Mar 2008 18:43:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebleedelisle.com/?p=165#comment-361</guid>
		<description>Hey guys, glad you like it so far - integrating it into PV3D is gonna be a bit tricky though... but I&#039;m on it.. .

Andy! Nice work, your vector maths is clearly a lot better than mine... I pretty much understood your explanation though.

Maybe I&#039;ll post a code snippet later, the only possible problem with my algorithm is that I need to get the distance between the 2 points, and as we all know, the Math.sqrt method is heavy on the CPU.

I don&#039;t mind trig solutions though, as long as there aren&#039;t any sqrts involved! So how would you calculate the angle of r0?

cheers!

Seb</description>
		<content:encoded><![CDATA[<p>Hey guys, glad you like it so far &#8211; integrating it into PV3D is gonna be a bit tricky though&#8230; but I&#8217;m on it.. .</p>
<p>Andy! Nice work, your vector maths is clearly a lot better than mine&#8230; I pretty much understood your explanation though.</p>
<p>Maybe I&#8217;ll post a code snippet later, the only possible problem with my algorithm is that I need to get the distance between the 2 points, and as we all know, the Math.sqrt method is heavy on the CPU.</p>
<p>I don&#8217;t mind trig solutions though, as long as there aren&#8217;t any sqrts involved! So how would you calculate the angle of r0?</p>
<p>cheers!</p>
<p>Seb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Geers</title>
		<link>http://sebleedelisle.com/2008/03/drawing-3d-perspective-lines-in-flash/comment-page-1/#comment-367</link>
		<dc:creator>Andy Geers</dc:creator>
		<pubDate>Mon, 24 Mar 2008 18:20:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebleedelisle.com/?p=165#comment-367</guid>
		<description>Been working on a vector based solution... I can get so far but then have to resort to trig to do the final step.
Start with these definitions:
* the vector _x0_ is the centre of one circle
* the vector _x1_ is the centre of the other
* the vector _r0_ is the radius of the first circle, in the direction of the point we want to draw our line from (_t0_)
* the vector _r1_ is the radius of the second circle, in the direction of the point we want to draw our line to (_t1_)

We know that the vector from _t0_ to _t1_ (_t1_ - _t0_) is at 90 degrees to _r0_, and _r0_ is parallel to _r1_ (based upon your diagrams, which I assume are correct).

Therefore (_t1_ - _t0_) * _r0_ = 0, but we know that _t0_ = _x0_ + _r0_ and _t1_ = _x1_ + _r1_, and we can define _r1_ as n * _r0_, where n = &#124;_r1_&#124; / &#124;_r0_&#124;, so we end up with this:

[(_x0_ + n_r0_) - (_x1_ + _r0_)] * _r0_ = 0

Do a bit of rearranging and you end up with this:
_r0_ * (_x0_ - _x1_) = (1 - n) * &#124;_r0_&#124;^2
...where everything is a known quantity except the _r0_ on the far left. This is where I have to resort to trigonometric methods - you could use the definition of the dot product as &#124;a&#124;&#124;b&#124;cos(theta) to work out the angle of _r0_ and from there get to the answer. But maybe there&#039;s a neater way to solve that last step.

Hope you followed all that!

Andy
(from barcampbrighton2)</description>
		<content:encoded><![CDATA[<p>Been working on a vector based solution&#8230; I can get so far but then have to resort to trig to do the final step.<br />
Start with these definitions:<br />
* the vector _x0_ is the centre of one circle<br />
* the vector _x1_ is the centre of the other<br />
* the vector _r0_ is the radius of the first circle, in the direction of the point we want to draw our line from (_t0_)<br />
* the vector _r1_ is the radius of the second circle, in the direction of the point we want to draw our line to (_t1_)</p>
<p>We know that the vector from _t0_ to _t1_ (_t1_ &#8211; _t0_) is at 90 degrees to _r0_, and _r0_ is parallel to _r1_ (based upon your diagrams, which I assume are correct).</p>
<p>Therefore (_t1_ &#8211; _t0_) * _r0_ = 0, but we know that _t0_ = _x0_ + _r0_ and _t1_ = _x1_ + _r1_, and we can define _r1_ as n * _r0_, where n = |_r1_| / |_r0_|, so we end up with this:</p>
<p>[(_x0_ + n_r0_) - (_x1_ + _r0_)] * _r0_ = 0</p>
<p>Do a bit of rearranging and you end up with this:<br />
_r0_ * (_x0_ &#8211; _x1_) = (1 &#8211; n) * |_r0_|^2<br />
&#8230;where everything is a known quantity except the _r0_ on the far left. This is where I have to resort to trigonometric methods &#8211; you could use the definition of the dot product as |a||b|cos(theta) to work out the angle of _r0_ and from there get to the answer. But maybe there&#8217;s a neater way to solve that last step.</p>
<p>Hope you followed all that!</p>
<p>Andy<br />
(from barcampbrighton2)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate Chatellier</title>
		<link>http://sebleedelisle.com/2008/03/drawing-3d-perspective-lines-in-flash/comment-page-1/#comment-363</link>
		<dc:creator>Nate Chatellier</dc:creator>
		<pubDate>Mon, 24 Mar 2008 16:25:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebleedelisle.com/?p=165#comment-363</guid>
		<description>Sweet! I can&#039;t wait to start playing with it!</description>
		<content:encoded><![CDATA[<p>Sweet! I can&#8217;t wait to start playing with it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: noah aronsson-brown</title>
		<link>http://sebleedelisle.com/2008/03/drawing-3d-perspective-lines-in-flash/comment-page-1/#comment-362</link>
		<dc:creator>noah aronsson-brown</dc:creator>
		<pubDate>Mon, 24 Mar 2008 16:12:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebleedelisle.com/?p=165#comment-362</guid>
		<description>That&#039;s really elegant and cool! I would love to have true lines in PV3D too, especially to use on my portfolio front page ( http://www.deafmetal.com/portfolio/ ). I can&#039;t wait to see it implemented. Great work!</description>
		<content:encoded><![CDATA[<p>That&#8217;s really elegant and cool! I would love to have true lines in PV3D too, especially to use on my portfolio front page ( <a href="http://www.deafmetal.com/portfolio/" rel="nofollow">http://www.deafmetal.com/portfolio/</a> ). I can&#8217;t wait to see it implemented. Great work!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
