<?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>undefined-type &#187; papervision</title>
	<atom:link href="http://undefined-type.com/tag/papervision/feed/" rel="self" type="application/rss+xml" />
	<link>http://undefined-type.com</link>
	<description>Flex,Flash &#38; AIR</description>
	<lastBuildDate>Wed, 18 Nov 2009 09:48:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Papervision 3D and Maya Camera</title>
		<link>http://undefined-type.com/2009/09/papervision-3d-and-maya-camera/</link>
		<comments>http://undefined-type.com/2009/09/papervision-3d-and-maya-camera/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 12:50:48 +0000</pubDate>
		<dc:creator>Bäcker</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[camera]]></category>
		<category><![CDATA[maya]]></category>
		<category><![CDATA[papervision]]></category>

		<guid isPermaLink="false">http://undefined-type.com/?p=559</guid>
		<description><![CDATA[Worked with Papervision 3D in a couple of project and trying to simulate the Maya 3D world to Papervision 3D as much as possible to make it easier for the art directors. A big problem has been with the Maya Camera and units. What we did is that the 3d modeler setups a camera in [...]]]></description>
			<content:encoded><![CDATA[<p>Worked with Papervision 3D in a couple of project and trying to simulate the Maya 3D world to Papervision 3D as much as possible to make it easier for the art directors. A big problem has been with the Maya Camera and units. What we did is that the 3d modeler setups a camera in Maya and we are converting the values to the camera in actionscript to fit Papervision 3D.</p>
<p>What we are looking at is the FOV (focal length), the flash convert value is (xv / (2 * Math.tan(Math.PI * fov / 360))) /1.5;</p>
<p>Bojidar Dimitrov has an 1.5 lens converter that works excellent:<br />
<a href="http://www.bdimitrov.de/kmp/technology/fov.html" target="_blank">http://www.bdimitrov.de/kmp/technology/fov.html</a></p>
<p>By using the Maya Focal Length thru the converter and adding that to this formulas variable xv, you will get a Papervision 3D camera that is the same.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// FOV from Maya</span>
<span style="color: #000000; font-weight: bold;">var</span> fov:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;">35</span>;
<span style="color: #808080; font-style: italic;">// FOV to F from http://www.bdimitrov.de/kmp/technology/fov.html</span>
<span style="color: #000000; font-weight: bold;">var</span> xv:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;">45.741390734365076</span>;
<span style="color: #000000; font-weight: bold;">var</span> focus:<span style="color: #0066CC;">Number</span> = <span style="color: #66cc66;">&#40;</span>xv <span style="color: #66cc66;">/</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span> <span style="color: #66cc66;">*</span> <span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">tan</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">PI</span> <span style="color: #66cc66;">*</span> fov <span style="color: #66cc66;">/</span> <span style="color: #cc66cc;">360</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">/</span><span style="color: #cc66cc;">1.5</span>;
<span style="color: #0066CC;">camera</span>.<span style="color: #006600;">focus</span> = focus;</pre></td></tr></table></div>

<p>Please visit <a href="http://blog.papervision3d.org/" target="_blank">Papervision 3D</a> blog for great info.</p>
]]></content:encoded>
			<wfw:commentRss>http://undefined-type.com/2009/09/papervision-3d-and-maya-camera/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

