<?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>SavageLook.com &#187; textextrusion</title>
	<atom:link href="http://savagelook.com/blog/tag/textextrusion/feed" rel="self" type="application/rss+xml" />
	<link>http://savagelook.com/blog</link>
	<description>Blowing your mind, one line of code at a time</description>
	<lastBuildDate>Wed, 18 Jan 2012 13:38:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>The Many Forms of Away3D Text</title>
		<link>http://savagelook.com/blog/away3d/the-many-forms-of-away3d-text</link>
		<comments>http://savagelook.com/blog/away3d/the-many-forms-of-away3d-text#comments</comments>
		<pubDate>Wed, 28 Jul 2010 03:28:23 +0000</pubDate>
		<dc:creator>Tony Lukasavage</dc:creator>
				<category><![CDATA[ActionScript3]]></category>
		<category><![CDATA[Away3D]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Code Demos]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[textextrusion]]></category>
		<category><![CDATA[textfield3d]]></category>

		<guid isPermaLink="false">http://savagelook.com/blog/?p=231</guid>
		<description><![CDATA[Learn 6 different ways to display both 2D and 3D text in Away3D<p><a href="http://savagelook.com/blog/away3d/the-many-forms-of-away3d-text">The Many Forms of Away3D Text</a> is a post from: <a href="http://savagelook.com/blog">SavageLook.com</a></p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p style="text-align: center;"><a href="http://savagelook.com/demos/text_demo/text_demo.html" target="_self" rel="shadowbox;height=600;width=800;"><img class="aligncenter size-full wp-image-232" title="text" src="http://savagelook.com/blog/wp-content/uploads/2010/07/text.jpg" alt="" width="465" height="331" /></a></p>
<p><a href="http://savagelook.com/demos/text_demo/srcview/index.html" target="_self">Click here for the source code</a> or click on the demo above then right click and select &#8220;view source.&#8221;<br />
Also, <a href="http://savagelook.com/demos/text_demo/srcview/source/f.fla" target="_self">here&#8217;s a link to the FLA for CS5</a> that can be used to publish the SWF that will contain your target font.  Simply open the FLA in Flash Pro, change the font of the &#8220;test&#8221; text on the stage, click &#8220;Embed&#8221; in the character panel to make sure the right font is set, and then publish your SWF.  The resulting SWF will contain your ready-to-be-embedded font.  If the following steps weren&#8217;t goos enough, let me know.  If I get a complaint or two I&#8217;ll put up a screenshot walkthrough for the whole process.</p>
<p>Text comes in many forms in Away3D and they all have their own advantages and disadvantages.  Here&#8217;s a quick run down of the various methods I know for generating text in Away3D, which are all displayed in the demo above.</p>
<p><strong><span style="text-decoration: underline;">PNG + BitmapMaterial + Plane<br />
</span><span style="font-weight: normal;">With this method, you take a PNG (or any other image format Away3D handles) image file containing the text you would like to display, create a BitmapMaterial from it and apply the BitmapMatierial to a Plane.</span></strong></p>
<p><strong><span style="font-weight: normal;"> <strong>Pros</strong>: Fast rendering<br />
<strong>Cons</strong>: Static text, quality depends on image resolution, text is flat </span></strong></p>
<p><strong><span style="font-weight: normal;"><strong><span style="text-decoration: underline;">Textfield + MovieClip + MovieMaterial + Plane<br />
</span></strong>Here we create a Textfield with our text and add it to a MovieClip.  We then create a MovieMaterial from the MovieClip and apply it to a plane as in the last example.</span></strong></p>
<p><strong><span style="font-weight: normal;"> <strong>Pros</strong>: Fast rendering, dynamic text<br />
<strong>Cons</strong>: Text is still flat</span></strong></p>
<p><strong><span style="text-decoration: underline;">TextField + Sprite + BitmapMaterial + Plane<br />
</span></strong>Almost identical to the last example, except this time we create BitmapMaterial from a Sprite.</p>
<p><strong>Pros</strong>: Faster rendering, dynamic text<br />
<strong>Cons</strong>: Text is still flat</p>
<p><strong><span style="text-decoration: underline;">TextField3D<br />
</span></strong>We use the TextField3D class in conjunction with wumedia.vector.VectorText.extractFont() and a specially created SWF file that contains the embedded font we want to use in our example.</p>
<p><strong>Pros</strong>: Vector quality text, dynamic text<br />
<strong>Cons</strong>: Text is still flat, can only use embedded font</p>
<p><strong><span style="text-decoration: underline;">TextField3D + TextExtrusion<br />
</span></strong>We expand on the last example by using the TextExtrusion class with the TextField.  This creates a 3 dimensional outline of our vector text finally giving us some depth.</p>
<p><strong>Pros</strong>: Vector quality text, dynamic text, 3 dimensional<br />
<strong>Cons</strong>: Can only use embedded font, fonts have arbitrary &#8220;winding&#8221; when drawn so determining which side of the text is the &#8220;back side&#8221; is tricky and can screw up shading materials.</p>
<p><strong><span style="text-decoration: underline;">3DS Model (high and low poly)<br />
</span></strong>You can always forgo the ins and outs of dynamic text and do it yourself in the modeling program of your choice.  In this case I used 3DS Max 2010 to create low and high(er) poly text.</p>
<p><strong>Pros</strong>: Full control over appearance of text<br />
<strong>Cons</strong>: Text is totally static</p>
<p>So there&#8217;s the list of methods I&#8217;m aware of.  You got any more?  See anything glaringly stupid above?  Let me know either way.</p>
<p><a href="http://savagelook.com/blog/away3d/the-many-forms-of-away3d-text">The Many Forms of Away3D Text</a> is a post from: <a href="http://savagelook.com/blog">SavageLook.com</a></p>
<div class="shr-publisher-231"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://savagelook.com/blog/away3d/the-many-forms-of-away3d-text/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
