<?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: grappling with 3d graphs: terrain in papervision</title>
	<atom:link href="http://joshua.almirun.com/tech/ria/flash/grappling-with-3d-graphs-terrain-in-papervision/feed" rel="self" type="application/rss+xml" />
	<link>http://joshua.almirun.com/tech/ria/flash/grappling-with-3d-graphs-terrain-in-papervision</link>
	<description>technology, politics, armchair philosophy</description>
	<lastBuildDate>Tue, 19 Jan 2010 13:36:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sandor Spruit</title>
		<link>http://joshua.almirun.com/tech/ria/flash/grappling-with-3d-graphs-terrain-in-papervision/comment-page-1#comment-5237</link>
		<dc:creator>Sandor Spruit</dc:creator>
		<pubDate>Mon, 09 Mar 2009 13:26:11 +0000</pubDate>
		<guid isPermaLink="false">http://joshua.almirun.com/tech/ria/flash/grappling-with-3d-graphs-terrain-in-papervision#comment-5237</guid>
		<description>Could it be that in the blog article, you made a typo in the NumberUV-calculation for v0v1dist - somehow I feel the &#039;v2.x&#039; is misplaced :)</description>
		<content:encoded><![CDATA[<p>Could it be that in the blog article, you made a typo in the NumberUV-calculation for v0v1dist &#8211; somehow I feel the &#8216;v2.x&#8217; is misplaced :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray</title>
		<link>http://joshua.almirun.com/tech/ria/flash/grappling-with-3d-graphs-terrain-in-papervision/comment-page-1#comment-4666</link>
		<dc:creator>Ray</dc:creator>
		<pubDate>Fri, 13 Feb 2009 03:35:04 +0000</pubDate>
		<guid isPermaLink="false">http://joshua.almirun.com/tech/ria/flash/grappling-with-3d-graphs-terrain-in-papervision#comment-4666</guid>
		<description>Thank you so much for this article</description>
		<content:encoded><![CDATA[<p>Thank you so much for this article</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Schauer</title>
		<link>http://joshua.almirun.com/tech/ria/flash/grappling-with-3d-graphs-terrain-in-papervision/comment-page-1#comment-3902</link>
		<dc:creator>Schauer</dc:creator>
		<pubDate>Tue, 13 Jan 2009 22:20:06 +0000</pubDate>
		<guid isPermaLink="false">http://joshua.almirun.com/tech/ria/flash/grappling-with-3d-graphs-terrain-in-papervision#comment-3902</guid>
		<description>Great work!

I found this example extremely helpful as well.

http://pv3d.org/2008/11/17/finding-2d-coordinates/

You have to set autoCalcScreenCoords equal to true on your display object in order to get DisplayObject3D.screen.x</description>
		<content:encoded><![CDATA[<p>Great work!</p>
<p>I found this example extremely helpful as well.</p>
<p><a href="http://pv3d.org/2008/11/17/finding-2d-coordinates/" rel="nofollow">http://pv3d.org/2008/11/17/finding-2d-coordinates/</a></p>
<p>You have to set autoCalcScreenCoords equal to true on your display object in order to get DisplayObject3D.screen.x</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://joshua.almirun.com/tech/ria/flash/grappling-with-3d-graphs-terrain-in-papervision/comment-page-1#comment-1434</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 10 Sep 2008 05:51:34 +0000</pubDate>
		<guid isPermaLink="false">http://joshua.almirun.com/tech/ria/flash/grappling-with-3d-graphs-terrain-in-papervision#comment-1434</guid>
		<description>Amazing. Thank you so much for this. Hours saved :) keep up the goodness</description>
		<content:encoded><![CDATA[<p>Amazing. Thank you so much for this. Hours saved :) keep up the goodness</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://joshua.almirun.com/tech/ria/flash/grappling-with-3d-graphs-terrain-in-papervision/comment-page-1#comment-507</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Thu, 22 May 2008 23:06:13 +0000</pubDate>
		<guid isPermaLink="false">http://joshua.almirun.com/tech/ria/flash/grappling-with-3d-graphs-terrain-in-papervision#comment-507</guid>
		<description>Nice article, I was just about to do something similar, I want a 3D graph with transparent/translucent planes between the lines.
I am not familiar with flex, how difficult would it be to convert this to flash/as3 only?
Well done, 
Cheers,
Max</description>
		<content:encoded><![CDATA[<p>Nice article, I was just about to do something similar, I want a 3D graph with transparent/translucent planes between the lines.<br />
I am not familiar with flex, how difficult would it be to convert this to flash/as3 only?<br />
Well done,<br />
Cheers,<br />
Max</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ~a~</title>
		<link>http://joshua.almirun.com/tech/ria/flash/grappling-with-3d-graphs-terrain-in-papervision/comment-page-1#comment-501</link>
		<dc:creator>~a~</dc:creator>
		<pubDate>Thu, 22 May 2008 07:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://joshua.almirun.com/tech/ria/flash/grappling-with-3d-graphs-terrain-in-papervision#comment-501</guid>
		<description>This is really helpful. Gracias.</description>
		<content:encoded><![CDATA[<p>This is really helpful. Gracias.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Mostafa</title>
		<link>http://joshua.almirun.com/tech/ria/flash/grappling-with-3d-graphs-terrain-in-papervision/comment-page-1#comment-288</link>
		<dc:creator>Joshua Mostafa</dc:creator>
		<pubDate>Tue, 15 Apr 2008 01:18:57 +0000</pubDate>
		<guid isPermaLink="false">http://joshua.almirun.com/tech/ria/flash/grappling-with-3d-graphs-terrain-in-papervision#comment-288</guid>
		<description>Thanks again for your help, Douglas. 

Hardware support for 3D in Flash would &lt;a href=&quot;http://www.valveblog.com/2007/02/my_2_cents_on_3.html&quot; rel=&quot;nofollow&quot;&gt;indeed&lt;/a&gt; be a wonderful thing .. and &lt;a href=&quot;http://theflashblog.com/?p=286&quot; rel=&quot;nofollow&quot;&gt;may be realised&lt;/a&gt; with the next release of the Flash Player.</description>
		<content:encoded><![CDATA[<p>Thanks again for your help, Douglas. </p>
<p>Hardware support for 3D in Flash would <a href="http://www.valveblog.com/2007/02/my_2_cents_on_3.html" rel="nofollow">indeed</a> be a wonderful thing .. and <a href="http://theflashblog.com/?p=286" rel="nofollow">may be realised</a> with the next release of the Flash Player.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Douglas Thompson</title>
		<link>http://joshua.almirun.com/tech/ria/flash/grappling-with-3d-graphs-terrain-in-papervision/comment-page-1#comment-280</link>
		<dc:creator>Douglas Thompson</dc:creator>
		<pubDate>Sun, 13 Apr 2008 15:27:24 +0000</pubDate>
		<guid isPermaLink="false">http://joshua.almirun.com/tech/ria/flash/grappling-with-3d-graphs-terrain-in-papervision#comment-280</guid>
		<description>Oh man a 3D GRAPH!  For some reason I was thinking you wanted a 3D GRID.  Geez... I coulda been a LOT more helpful if I had realized that.  I&#039;ve actually done this before, but in C++ with OpenGL.

Doing this sort of thing is so common that hardware generally supports the drawing of &quot;triangle strips&quot;.  When you draw strips, all of your diagonals are oriented the same way, and its expected that the order of your vertex indices will alternate, so the normals are calculated correctly with that in mind.  For instance, in your example, the vertices might go like this: [1, 2, 3], [2,3,4], [3,4,5], [4,5,6].  Much easier.  Anyway, the triangle made from indices 1, 2, 3 is wound clockwise, but the triangle from indices 2, 3, 4 is wound counterclockwise, so the normals are in the opposite directions.  In fact, OpenGL would want an array without the repeated indices: [1, 2, 3, 4, 5, 6].  But that&#039;s hardware--I dunno if there are any performance implications about implementing something like that in software or not. Hmmm... HMMM...

XSLT might be worth considering if you&#039;re forced to transform XML data a bunch.

For the UV coords--if you&#039;re using a WireframeMaterial, you may not even need them at all.  The UV coordinates are used for texture alignment (which is why there&#039;s only two values... textures are 2D).  You might try applying a texture to your graph just to see if it comes out right or not.  The WireframeMaterial, I believe, just uses the drawing API to trace the outline of each triangle... so you might be able to null out the UVs and avoid all of those allocations.

Anyway, I&#039;m glad the code actually helped!  I was afraid it&#039;d be too much of a mess since it was just thrown together real quick for testing purposes.

So in closing, a shamless plug:
irc.freenode.net
#papervision3d</description>
		<content:encoded><![CDATA[<p>Oh man a 3D GRAPH!  For some reason I was thinking you wanted a 3D GRID.  Geez&#8230; I coulda been a LOT more helpful if I had realized that.  I&#8217;ve actually done this before, but in C++ with OpenGL.</p>
<p>Doing this sort of thing is so common that hardware generally supports the drawing of &#8220;triangle strips&#8221;.  When you draw strips, all of your diagonals are oriented the same way, and its expected that the order of your vertex indices will alternate, so the normals are calculated correctly with that in mind.  For instance, in your example, the vertices might go like this: [1, 2, 3], [2,3,4], [3,4,5], [4,5,6].  Much easier.  Anyway, the triangle made from indices 1, 2, 3 is wound clockwise, but the triangle from indices 2, 3, 4 is wound counterclockwise, so the normals are in the opposite directions.  In fact, OpenGL would want an array without the repeated indices: [1, 2, 3, 4, 5, 6].  But that&#8217;s hardware&#8211;I dunno if there are any performance implications about implementing something like that in software or not. Hmmm&#8230; HMMM&#8230;</p>
<p>XSLT might be worth considering if you&#8217;re forced to transform XML data a bunch.</p>
<p>For the UV coords&#8211;if you&#8217;re using a WireframeMaterial, you may not even need them at all.  The UV coordinates are used for texture alignment (which is why there&#8217;s only two values&#8230; textures are 2D).  You might try applying a texture to your graph just to see if it comes out right or not.  The WireframeMaterial, I believe, just uses the drawing API to trace the outline of each triangle&#8230; so you might be able to null out the UVs and avoid all of those allocations.</p>
<p>Anyway, I&#8217;m glad the code actually helped!  I was afraid it&#8217;d be too much of a mess since it was just thrown together real quick for testing purposes.</p>
<p>So in closing, a shamless plug:<br />
irc.freenode.net<br />
#papervision3d</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony Mckale</title>
		<link>http://joshua.almirun.com/tech/ria/flash/grappling-with-3d-graphs-terrain-in-papervision/comment-page-1#comment-277</link>
		<dc:creator>Anthony Mckale</dc:creator>
		<pubDate>Fri, 11 Apr 2008 11:07:11 +0000</pubDate>
		<guid isPermaLink="false">http://joshua.almirun.com/tech/ria/flash/grappling-with-3d-graphs-terrain-in-papervision#comment-277</guid>
		<description>Nice article, I&#039;m glad things worked out in the end, nice graph by the way</description>
		<content:encoded><![CDATA[<p>Nice article, I&#8217;m glad things worked out in the end, nice graph by the way</p>
]]></content:encoded>
	</item>
</channel>
</rss>
