<?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: Plane Scaling and Positioning with Papervision</title>
	<atom:link href="http://blog.melihelibol.com/?feed=rss2&#038;p=3" rel="self" type="application/rss+xml" />
	<link>http://blog.melihelibol.com/?p=3</link>
	<description>on pertinent substance, and persistent deliberation on quaint curiosities.</description>
	<lastBuildDate>Fri, 04 Jun 2010 23:27:14 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: H</title>
		<link>http://blog.melihelibol.com/?p=3&#038;cpage=1#comment-12001</link>
		<dc:creator>H</dc:creator>
		<pubDate>Fri, 04 Jun 2010 23:27:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.computerelibol.com/?p=3#comment-12001</guid>
		<description>Hey Matt,

Let&#039;s call the parent of the target element the &quot;branch element&quot; and the actual target element the &quot;leaf element.&quot; We will also refer to the viewport as the &quot;root.&quot;

The branch element&#039;s transform must be recalculated relative to the root&#039;s transform. The leaf element&#039;s transform must be recalculated relative to the branch element&#039;s transform. Perhaps there are multiple leaf elements that we want to leave unchanged. One solution is to apply the calculations that would occur between the root and branch element to the leaf element, as well as the branch and leaf element calculations. In this scenario, we take two passes to compute the target leaf element&#039;s transform, one with the root and branch element&#039;s transforms, and one with the branch and *the original* target leaf element&#039;s transform.

Sample algorithm:
Create a copy of the target leaf element&#039;s transform.
Apply root to branch calculations to the copied transform.
Apply branch to leaf calculations using the original leaf element&#039;s transform to the copied transform.
Set the target leaf element&#039;s transform to the copied transform.
Force render if needed.

Hope this helps,
Melih</description>
		<content:encoded><![CDATA[<p>Hey Matt,</p>
<p>Let&#8217;s call the parent of the target element the &#8220;branch element&#8221; and the actual target element the &#8220;leaf element.&#8221; We will also refer to the viewport as the &#8220;root.&#8221;</p>
<p>The branch element&#8217;s transform must be recalculated relative to the root&#8217;s transform. The leaf element&#8217;s transform must be recalculated relative to the branch element&#8217;s transform. Perhaps there are multiple leaf elements that we want to leave unchanged. One solution is to apply the calculations that would occur between the root and branch element to the leaf element, as well as the branch and leaf element calculations. In this scenario, we take two passes to compute the target leaf element&#8217;s transform, one with the root and branch element&#8217;s transforms, and one with the branch and *the original* target leaf element&#8217;s transform.</p>
<p>Sample algorithm:<br />
Create a copy of the target leaf element&#8217;s transform.<br />
Apply root to branch calculations to the copied transform.<br />
Apply branch to leaf calculations using the original leaf element&#8217;s transform to the copied transform.<br />
Set the target leaf element&#8217;s transform to the copied transform.<br />
Force render if needed.</p>
<p>Hope this helps,<br />
Melih</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://blog.melihelibol.com/?p=3&#038;cpage=1#comment-11331</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 13 May 2010 09:12:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.computerelibol.com/?p=3#comment-11331</guid>
		<description>I know this is a really old thread and chances are nobody checks it anymore but I was wondering how I would modify this to get it to work on planes which are children of other planes. This works great when the child is a direct descendant of the viewport but not once it is reparented. I thought first that adjusting the calculations so that it takes into account the containing plane width and height as opposed to the viewport but I am getting odd results.

Any help would be much appreciated...

Thanks</description>
		<content:encoded><![CDATA[<p>I know this is a really old thread and chances are nobody checks it anymore but I was wondering how I would modify this to get it to work on planes which are children of other planes. This works great when the child is a direct descendant of the viewport but not once it is reparented. I thought first that adjusting the calculations so that it takes into account the containing plane width and height as opposed to the viewport but I am getting odd results.</p>
<p>Any help would be much appreciated&#8230;</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: syamsundars</title>
		<link>http://blog.melihelibol.com/?p=3&#038;cpage=1#comment-3548</link>
		<dc:creator>syamsundars</dc:creator>
		<pubDate>Wed, 20 May 2009 06:07:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.computerelibol.com/?p=3#comment-3548</guid>
		<description>provide more samples codes (papervison)</description>
		<content:encoded><![CDATA[<p>provide more samples codes (papervison)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Random Lucubrations &#187; Blog Archive &#187; Coordinate Utility class for Papervision 3D</title>
		<link>http://blog.melihelibol.com/?p=3&#038;cpage=1#comment-125</link>
		<dc:creator>Random Lucubrations &#187; Blog Archive &#187; Coordinate Utility class for Papervision 3D</dc:creator>
		<pubDate>Fri, 10 Oct 2008 00:54:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.computerelibol.com/?p=3#comment-125</guid>
		<description>[...] Some time ago I wrote an article titled Plane Scaling and Positioning with Papervision. I shared the solutions I had used to over come some of the challenges us RIA developers face when [...]</description>
		<content:encoded><![CDATA[<p>[...] Some time ago I wrote an article titled Plane Scaling and Positioning with Papervision. I shared the solutions I had used to over come some of the challenges us RIA developers face when [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://blog.melihelibol.com/?p=3&#038;cpage=1#comment-58</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Sat, 30 Aug 2008 05:03:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.computerelibol.com/?p=3#comment-58</guid>
		<description>That sounds amazing, I&#039;m excited to see the final function (as I&#039;ve been trying to figure it out for a week and it&#039;s wayyy beyond me apparently). Thanks for sharing your amazing work, I really appreciate it. *bookmarked, checking daily*</description>
		<content:encoded><![CDATA[<p>That sounds amazing, I&#8217;m excited to see the final function (as I&#8217;ve been trying to figure it out for a week and it&#8217;s wayyy beyond me apparently). Thanks for sharing your amazing work, I really appreciate it. *bookmarked, checking daily*</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://blog.melihelibol.com/?p=3&#038;cpage=1#comment-53</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 23 Aug 2008 00:27:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.computerelibol.com/?p=3#comment-53</guid>
		<description>Hey Mark,

Check out this discussion:
&lt;a href=&quot;http://www.nabble.com/Re%3A-align-objects-to-camera-or-stage--p19037587.html&quot; rel=&quot;nofollow&quot;&gt;http://www.nabble.com/Re%3A-align-objects-to-camera-or-stage--p19037587.html&lt;/a&gt;

I have code posted there that should work with the latest build of paper vision.

I have been real busy this week, but I think this weekend I will have some time to post a new article with the final function.

Thanks a lot for pointing out which build has the change in how perspective is computed. I will make a note of it in this article.

As for -1, I am not familiar with this equation. Though, when I had a look at the source, I saw that focus is not used when computing the difference in z from object to camera during projection. Since zoom is a factor of focus in the equation (cam.zoom - 1) * cam.focus) - Math.abs(cam.z) I can only assume that -1 would serve to cancel out focus since it was a part of the z distance. Since it is no longer used to compute the distance, it is no longer needed.</description>
		<content:encoded><![CDATA[<p>Hey Mark,</p>
<p>Check out this discussion:<br />
<a href="http://www.nabble.com/Re%3A-align-objects-to-camera-or-stage--p19037587.html" rel="nofollow">http://www.nabble.com/Re%3A-align-objects-to-camera-or-stage&#8211;p19037587.html</a></p>
<p>I have code posted there that should work with the latest build of paper vision.</p>
<p>I have been real busy this week, but I think this weekend I will have some time to post a new article with the final function.</p>
<p>Thanks a lot for pointing out which build has the change in how perspective is computed. I will make a note of it in this article.</p>
<p>As for -1, I am not familiar with this equation. Though, when I had a look at the source, I saw that focus is not used when computing the difference in z from object to camera during projection. Since zoom is a factor of focus in the equation (cam.zoom &#8211; 1) * cam.focus) &#8211; Math.abs(cam.z) I can only assume that -1 would serve to cancel out focus since it was a part of the z distance. Since it is no longer used to compute the distance, it is no longer needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://blog.melihelibol.com/?p=3&#038;cpage=1#comment-52</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Fri, 22 Aug 2008 23:46:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.computerelibol.com/?p=3#comment-52</guid>
		<description>The sample file seems to be broken with build 639 and later? The scaling seems to work (gives a perspective of 1 at distance = 1000) but the shape is positioned too far towards whatever edge it is near. This is very pronounced at plane.z = 1000, and very slight at plane.z = 10000. I&#039;ve heard that the following equation no longer needs the &quot;-1&quot; after build 639, but I&#039;m not sure if it is relevant:

plane.z = ((cam.zoom - 1) * cam.focus) - Math.abs(cam.z)

Any tips?</description>
		<content:encoded><![CDATA[<p>The sample file seems to be broken with build 639 and later? The scaling seems to work (gives a perspective of 1 at distance = 1000) but the shape is positioned too far towards whatever edge it is near. This is very pronounced at plane.z = 1000, and very slight at plane.z = 10000. I&#8217;ve heard that the following equation no longer needs the &#8220;-1&#8243; after build 639, but I&#8217;m not sure if it is relevant:</p>
<p>plane.z = ((cam.zoom &#8211; 1) * cam.focus) &#8211; Math.abs(cam.z)</p>
<p>Any tips?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Papervision3D - Links para desvendar o caminho das pedras &#124; Cabanoblog</title>
		<link>http://blog.melihelibol.com/?p=3&#038;cpage=1#comment-44</link>
		<dc:creator>Papervision3D - Links para desvendar o caminho das pedras &#124; Cabanoblog</dc:creator>
		<pubDate>Tue, 19 Aug 2008 14:12:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.computerelibol.com/?p=3#comment-44</guid>
		<description>[...] Ramdom Lucubrations Entenda como dimensionar e posicionar em 3D. [...]</description>
		<content:encoded><![CDATA[<p>[...] Ramdom Lucubrations Entenda como dimensionar e posicionar em 3D. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pixelplacement.com &#187; Plane Scaling and Positioning with Papervision</title>
		<link>http://blog.melihelibol.com/?p=3&#038;cpage=1#comment-38</link>
		<dc:creator>pixelplacement.com &#187; Plane Scaling and Positioning with Papervision</dc:creator>
		<pubDate>Fri, 15 Aug 2008 16:00:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.computerelibol.com/?p=3#comment-38</guid>
		<description>[...] Go here to check it out. [...]</description>
		<content:encoded><![CDATA[<p>[...] Go here to check it out. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://blog.melihelibol.com/?p=3&#038;cpage=1#comment-37</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 14 Aug 2008 03:58:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.computerelibol.com/?p=3#comment-37</guid>
		<description>Hi Tulio,

I&#039;ll try to. If not I&#039;m planning on writing another article that emphasizes this, but I have a different navigation scheme in mind that I&#039;ve been meaning to try - it&#039;s like a multi axis carousel. I can release the source for that...</description>
		<content:encoded><![CDATA[<p>Hi Tulio,</p>
<p>I&#8217;ll try to. If not I&#8217;m planning on writing another article that emphasizes this, but I have a different navigation scheme in mind that I&#8217;ve been meaning to try &#8211; it&#8217;s like a multi axis carousel. I can release the source for that&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
