<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Zachernuk.com &#187; extrude</title>
	<atom:link href="http://www.zachernuk.com/tag/extrude/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zachernuk.com</link>
	<description>The desk of Brandel Zachernuk</description>
	<lastBuildDate>Thu, 02 Feb 2012 22:36:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Pseudo-extrusions in Away3D</title>
		<link>http://www.zachernuk.com/2012/02/01/pseudo-extrusions-in-away3d/</link>
		<comments>http://www.zachernuk.com/2012/02/01/pseudo-extrusions-in-away3d/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 22:27:55 +0000</pubDate>
		<dc:creator>Brandel Zachernuk</dc:creator>
				<category><![CDATA[Housifier]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[laser]]></category>
		<category><![CDATA[shape]]></category>
		<category><![CDATA[vector]]></category>
		<category><![CDATA[away3d]]></category>
		<category><![CDATA[broomstick]]></category>
		<category><![CDATA[cap]]></category>
		<category><![CDATA[caps]]></category>
		<category><![CDATA[extrude]]></category>
		<category><![CDATA[extrusion]]></category>
		<category><![CDATA[tessellation]]></category>
		<category><![CDATA[texture cap]]></category>

		<guid isPermaLink="false">http://www.zachernuk.com/?p=1242</guid>
		<description><![CDATA[There&#8217;s no usage for this one, the objects just fall. It&#8217;s pretty though. 
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_AwayupdateTest_470646541"
			class="flashmovie"
			width="800"
			height="600">
	<param name="movie" value="http://www.zachernuk.com/wp-content/2012/02/AwayupdateTest.swf" />
	<param name="wmode" value="direct" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.zachernuk.com/wp-content/2012/02/AwayupdateTest.swf"
			name="fm_AwayupdateTest_470646541"
			width="800"
			height="600">
		<param name="wmode" value="direct" />
	<!--<![endif]-->
		 
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object> Way back in the days of Flash player 10, I started looking into the different technologies available for drawing extruded shapes. At the time, the Flash player could only handle unshaded scenes of about 3,000 polygons [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s no usage for this one, the objects just fall. It&#8217;s pretty though.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_AwayupdateTest_51237281"
			class="flashmovie"
			width="800"
			height="600">
	<param name="movie" value="http://www.zachernuk.com/wp-content/2012/02/AwayupdateTest.swf" />
	<param name="wmode" value="direct" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.zachernuk.com/wp-content/2012/02/AwayupdateTest.swf"
			name="fm_AwayupdateTest_51237281"
			width="800"
			height="600">
		<param name="wmode" value="direct" />
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<div><span style="font-family: 'Times New Roman'; font-size: small;">Way back in the days of Flash player 10, I started looking into the </span><a href="http://www.zachernuk.com/2010/02/20/extrusion-shapes-in-papervision/" target="_blank"><span style="font-family: 'Times New Roman'; font-size: small;">different</span></a><span style="font-family: 'Times New Roman'; font-size: small;"> </span><a href="http://www.zachernuk.com/2010/04/10/dabbling-in-java-3d/" target="_blank"><span style="font-family: 'Times New Roman'; font-size: small;">technologies</span></a><span style="font-family: 'Times New Roman'; font-size: small;"> </span><a href="http://www.zachernuk.com/2010/05/08/dabbling-in-unity3d/" target="_blank"><span style="font-family: 'Times New Roman'; font-size: small;">available </span></a><span style="font-size: small;"><span style="font-family: 'Times New Roman';">for drawing extruded shapes. At the time, the Flash player could only handle unshaded scenes of about 3,000 polygons before falling over, because it was running entirely on the CPU. Because that wasn’t going to be satisfactory, I concluded that the best available alternative to Flash was Unity3D. Version 11 of Flash has added hardware-accelerated 3D, though, so I wanted to look at whether it’s practical to use it again. Unfortunately, Stage3D – and the things built on it like Away3D 4 – are still pretty new so there are a lot of features still missing that you’d normally expect to be standard. One of those things is ‘complex polygon tessellation’ . Since everything in a 3D engine has to be made out of triangles, it’s necessary to break up more complex objects into triangles before they can be drawn properly. It’s a pretty ubiquitous problem with some well-known solutions, so it’s only a matter of time before someone converts one of those solutions to Flash. In the meantime, though, I want to build complex extrusions!</span></span></div>
<p><span style="font-size: small;"><span style="font-family: 'Times New Roman';">The code above is using Away3D 4. I’m using the ‘LinearExtrude’ class for the height component of the object, and standard Plane primitives for the caps. The caps have a bitmap texture with transparency on them, which I have generated at the same time as the height component. A bitmap cap has the advantage of having a significantly lower polygon count than a tessellated extrusion cap, particularly for more complex objects, but has the disadvantage that the engine can’t do the same object culling with the cap triangles – because some of the faces are transparent, it has to draw everything that might be behind one of these planes in order to make sure that an object isn’t being incorrectly missed out.  Another downside is the resolution of the cap texture – you can see when an object is too close or when the angle is too oblique that the polygon cap is slightly blurry and doesn’t quite match up with the height component. It’s not perfect, but it’s working well enough to keep going with.</span></span></p>
<p><a href="http://www.zachernuk.com/wp-content/2012/02/starsy.png"><img class="alignnone size-full wp-image-1246" title="starsy" src="http://www.zachernuk.com/wp-content/2012/02/starsy.png" alt="" width="385" height="382" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zachernuk.com/2012/02/01/pseudo-extrusions-in-away3d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extrusion shapes in Papervision</title>
		<link>http://www.zachernuk.com/2010/02/20/extrusion-shapes-in-papervision/</link>
		<comments>http://www.zachernuk.com/2010/02/20/extrusion-shapes-in-papervision/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 03:51:32 +0000</pubDate>
		<dc:creator>Brandel Zachernuk</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[custom geometry]]></category>
		<category><![CDATA[extrude]]></category>
		<category><![CDATA[extrusion]]></category>
		<category><![CDATA[face]]></category>
		<category><![CDATA[papervision]]></category>
		<category><![CDATA[polygon]]></category>
		<category><![CDATA[pv3d]]></category>
		<category><![CDATA[triangle3d]]></category>
		<category><![CDATA[vertex]]></category>
		<category><![CDATA[vertex3d]]></category>

		<guid isPermaLink="false">http://www.zachernuk.com/?p=393</guid>
		<description><![CDATA[As part of the early phase of experimentation in a potential project, I started fiddling with creating custom geometry in pv3d, rather than tweaking the vertices of existing primitives.    The results so far aren&#8217;t perfect, but they&#8217;re looking good: I&#8217;m not sure whether this is re-creating functionality that other people have already put into [...]]]></description>
			<content:encoded><![CDATA[<p>As part of the early phase of experimentation in a potential project, I started fiddling with creating custom geometry in pv3d, rather than tweaking the vertices of existing primitives.    The results so far aren&#8217;t perfect, but they&#8217;re looking good:</p>
<p><a href="http://www.zachernuk.com/wp-content/2010/02/Extrusion-shapes.png"><img class="alignnone size-medium wp-image-396" title="Extrusion-shapes" src="http://www.zachernuk.com/wp-content/2010/02/Extrusion-shapes-296x300.png" alt="Extrusion-shapes" width="296" height="300" /></a></p>
<p>I&#8217;m not sure whether this is re-creating functionality that other people have already put into papervision, but it was a lot of fun! There are some issues with shaded materials, but so far I have bitmap- and colour materials displaying and it&#8217;s looking good.  You can try it for yourself!  Like the pale text says &#8211; click in the window to add a vertex, press space to close the shape.  It seems to work even on pretty low-powered machines, so give it a try!</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_Ribbons-earclip_219808792"
			class="flashmovie"
			width="400"
			height="600">
	<param name="movie" value="http://www.zachernuk.com/wp-content/2010/02/Ribbons-earclip.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.zachernuk.com/wp-content/2010/02/Ribbons-earclip.swf"
			name="fm_Ribbons-earclip_219808792"
			width="400"
			height="600">
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
]]></content:encoded>
			<wfw:commentRss>http://www.zachernuk.com/2010/02/20/extrusion-shapes-in-papervision/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

