<?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: Adobe Edge Article: Geocoding with Papervision3D</title>
	<atom:link href="http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/feed/" rel="self" type="application/rss+xml" />
	<link>http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/</link>
	<description>lulz</description>
	<lastBuildDate>Mon, 01 Mar 2010 01:42:44 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: shigil</title>
		<link>http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/comment-page-1/#comment-1912</link>
		<dc:creator>shigil</dc:creator>
		<pubDate>Sun, 27 Dec 2009 21:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/#comment-1912</guid>
		<description>Great article mark , saved me a lot of time. 

Thanks, Shigil</description>
		<content:encoded><![CDATA[<p>Great article mark , saved me a lot of time. </p>
<p>Thanks, Shigil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/comment-page-1/#comment-1801</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Sat, 05 Sep 2009 03:09:40 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/#comment-1801</guid>
		<description>Hey guys,
Thanks for all the feedback!
I&#039;m about to post an update using the latest PV3D library that includes support for marker interaction.
But until then, I went back and found out the revision number of PV3D that I used with this article.
It&#039;s revision 586 on the branches directory ( http://papervision3d.googlecode.com/svn/trunk/branches ).</description>
		<content:encoded><![CDATA[<p>Hey guys,<br />
Thanks for all the feedback!<br />
I&#8217;m about to post an update using the latest PV3D library that includes support for marker interaction.<br />
But until then, I went back and found out the revision number of PV3D that I used with this article.<br />
It&#8217;s revision 586 on the branches directory ( <a href="http://papervision3d.googlecode.com/svn/trunk/branches" rel="nofollow">http://papervision3d.googlecode.com/svn/trunk/branches</a> ).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jens</title>
		<link>http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/comment-page-1/#comment-1757</link>
		<dc:creator>Jens</dc:creator>
		<pubDate>Fri, 24 Jul 2009 16:07:10 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/#comment-1757</guid>
		<description>Hey Mark,
thanks for this great tutorial. Have you any idea, how I can rotate the camera to a marker? That would be nice to know.</description>
		<content:encoded><![CDATA[<p>Hey Mark,<br />
thanks for this great tutorial. Have you any idea, how I can rotate the camera to a marker? That would be nice to know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Daharsh</title>
		<link>http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/comment-page-1/#comment-1007</link>
		<dc:creator>John Daharsh</dc:creator>
		<pubDate>Fri, 20 Feb 2009 16:55:19 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/#comment-1007</guid>
		<description>Oh and also thank you to Mark; this really is a nice, straightforward example of doing this and the fact that you shared it is just great. Would you like me to send you my updated GlobeView.as as it seems at this time to work fine with the newest Tweener and Papervision libraries? 

Alternately I could post it, but I&#039;m not looking to take any traffic from here.</description>
		<content:encoded><![CDATA[<p>Oh and also thank you to Mark; this really is a nice, straightforward example of doing this and the fact that you shared it is just great. Would you like me to send you my updated GlobeView.as as it seems at this time to work fine with the newest Tweener and Papervision libraries? </p>
<p>Alternately I could post it, but I&#8217;m not looking to take any traffic from here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Daharsh</title>
		<link>http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/comment-page-1/#comment-1006</link>
		<dc:creator>John Daharsh</dc:creator>
		<pubDate>Fri, 20 Feb 2009 16:46:45 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/#comment-1006</guid>
		<description>Nick,

I actually got it working acceptably and just hadn&#039;t had time to update this page. (truth be told I got caught up in playing with changing markers etc.)

Here are the changes I had to make to get the code working; first I just added the current swc&#039;s for tweener and papervision3d to my project.
(tweener 1_31_74; Papervision3D_2.0.869)

next in GlobeView.as I did the following (thanks to anyone who posted code above; I made some slight corrections, but these were all the changes that were necessary to amke this work the same or very very close):

**changed a protected class variable
// protected var longitudeDegreeOffset:Number = 15;
protected var longitudeDegreeOffset:Number = 0;                

**changed function onRenderTick
//Set the target rotation properties for the camera based on the mouse position.
// var rotationY:Number = -( -mouseX - globeMouseDiffX );
//var rotationX:Number = -( mouseY - globeMouseDiffY ); 
var rotationY:Number = ( -mouseX - globeMouseDiffX );
var rotationX:Number = ( mouseY - globeMouseDiffY );

//Set a maximum amount that the camera can rotate around the x-axis.
// rotationX = rotationX &gt; 10 ? 10 : rotationX  225 ? 225 : rotationX &lt; 140 ? 140 : rotationX; 

//Reposition the camera away from the globe and null object.
// camera.moveBackward( 360 );
camera.moveBackward( 1200 );

**changed function mousedownhandler
//Track the amount the mouse has moved.
// globeMouseDiffX = -mouseX + cameraTarget.rotationY;
//globeMouseDiffY = mouseY + cameraTarget.rotationX; 
globeMouseDiffX = -(mouseX + cameraTarget.rotationY);
globeMouseDiffY = mouseY - cameraTarget.rotationX;</description>
		<content:encoded><![CDATA[<p>Nick,</p>
<p>I actually got it working acceptably and just hadn&#8217;t had time to update this page. (truth be told I got caught up in playing with changing markers etc.)</p>
<p>Here are the changes I had to make to get the code working; first I just added the current swc&#8217;s for tweener and papervision3d to my project.<br />
(tweener 1_31_74; Papervision3D_2.0.869)</p>
<p>next in GlobeView.as I did the following (thanks to anyone who posted code above; I made some slight corrections, but these were all the changes that were necessary to amke this work the same or very very close):</p>
<p>**changed a protected class variable<br />
// protected var longitudeDegreeOffset:Number = 15;<br />
protected var longitudeDegreeOffset:Number = 0;                </p>
<p>**changed function onRenderTick<br />
//Set the target rotation properties for the camera based on the mouse position.<br />
// var rotationY:Number = -( -mouseX &#8211; globeMouseDiffX );<br />
//var rotationX:Number = -( mouseY &#8211; globeMouseDiffY );<br />
var rotationY:Number = ( -mouseX &#8211; globeMouseDiffX );<br />
var rotationX:Number = ( mouseY &#8211; globeMouseDiffY );</p>
<p>//Set a maximum amount that the camera can rotate around the x-axis.<br />
// rotationX = rotationX &gt; 10 ? 10 : rotationX  225 ? 225 : rotationX &lt; 140 ? 140 : rotationX; </p>
<p>//Reposition the camera away from the globe and null object.<br />
// camera.moveBackward( 360 );<br />
camera.moveBackward( 1200 );</p>
<p>**changed function mousedownhandler<br />
//Track the amount the mouse has moved.<br />
// globeMouseDiffX = -mouseX + cameraTarget.rotationY;<br />
//globeMouseDiffY = mouseY + cameraTarget.rotationX;<br />
globeMouseDiffX = -(mouseX + cameraTarget.rotationY);<br />
globeMouseDiffY = mouseY &#8211; cameraTarget.rotationX;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Heil</title>
		<link>http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/comment-page-1/#comment-980</link>
		<dc:creator>Nick Heil</dc:creator>
		<pubDate>Thu, 19 Feb 2009 20:55:11 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/#comment-980</guid>
		<description>I know its not a good / proper fix for the coordinate problem but...in GlobeView.as in the fuction translateGeoCoords

right below this line:

longitude -= ( longitudeDegreeOffset * ( Math.PI/180 ) ); // offset longitude by n degrees (in radians).

add in this:

longitude += .265;

This gets the markers where they should be, or at least close enough for me.</description>
		<content:encoded><![CDATA[<p>I know its not a good / proper fix for the coordinate problem but&#8230;in GlobeView.as in the fuction translateGeoCoords</p>
<p>right below this line:</p>
<p>longitude -= ( longitudeDegreeOffset * ( Math.PI/180 ) ); // offset longitude by n degrees (in radians).</p>
<p>add in this:</p>
<p>longitude += .265;</p>
<p>This gets the markers where they should be, or at least close enough for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Heil</title>
		<link>http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/comment-page-1/#comment-976</link>
		<dc:creator>Nick Heil</dc:creator>
		<pubDate>Thu, 19 Feb 2009 19:40:38 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/#comment-976</guid>
		<description>Mark,

This is a really nice application--thank you for sharing it.  I am glad I found it before I started building something like it from scratch.  

I haven&#039;t been able to fix the coordinate system, but if I do I will be sure to post the fix here.</description>
		<content:encoded><![CDATA[<p>Mark,</p>
<p>This is a really nice application&#8211;thank you for sharing it.  I am glad I found it before I started building something like it from scratch.  </p>
<p>I haven&#8217;t been able to fix the coordinate system, but if I do I will be sure to post the fix here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Heil</title>
		<link>http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/comment-page-1/#comment-975</link>
		<dc:creator>Nick Heil</dc:creator>
		<pubDate>Thu, 19 Feb 2009 19:36:40 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/#comment-975</guid>
		<description>John,

I believe this has something to do with how the yaw method works in the new release of pv3d.

To fix this delete or comment out this code:

//Rotate the camera target to have the camera face America.
cameraTarget.yaw( 180 );

replace it with this:

//Rotate the camera target to have the camera face America.
Tweener.addTween( cameraTarget, { rotationX:30, rotationY:180, time:0 } );

You can change the parameters to make the globe start at anyplace you want.</description>
		<content:encoded><![CDATA[<p>John,</p>
<p>I believe this has something to do with how the yaw method works in the new release of pv3d.</p>
<p>To fix this delete or comment out this code:</p>
<p>//Rotate the camera target to have the camera face America.<br />
cameraTarget.yaw( 180 );</p>
<p>replace it with this:</p>
<p>//Rotate the camera target to have the camera face America.<br />
Tweener.addTween( cameraTarget, { rotationX:30, rotationY:180, time:0 } );</p>
<p>You can change the parameters to make the globe start at anyplace you want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Daharsh</title>
		<link>http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/comment-page-1/#comment-774</link>
		<dc:creator>John Daharsh</dc:creator>
		<pubDate>Fri, 13 Feb 2009 16:37:57 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/#comment-774</guid>
		<description>So I downloader the Tweeer swc and the Papaervision sxc from Google code and just put them in the libs folder of the project and then removed the references to the external projects, the project built.

I implemented Garold&#039;s fix:
//Reposition the camera away from the globe and null object.
//camera.moveBackward( 360 );
camera.moveBackward( 1200 );

and that made the perspective right. By the way Garold, you&#039;ve probably found this out by now, but if you run the file locally in IE - through the filesystem rather than via http (as in localhost or from a server) you will get those errors.

Last, I tried Daniel&#039;s fix, but I have a problem that I am working on trying to sort out. When I click the globe, it immediately flips over, then I can interact with it normally. Also, the markers&#039; latitude seems wrong. I&#039;ve only been messing with it for an hour, so I&#039;ll post any fixes I can find, but has anyone else already solved these issues?</description>
		<content:encoded><![CDATA[<p>So I downloader the Tweeer swc and the Papaervision sxc from Google code and just put them in the libs folder of the project and then removed the references to the external projects, the project built.</p>
<p>I implemented Garold&#8217;s fix:<br />
//Reposition the camera away from the globe and null object.<br />
//camera.moveBackward( 360 );<br />
camera.moveBackward( 1200 );</p>
<p>and that made the perspective right. By the way Garold, you&#8217;ve probably found this out by now, but if you run the file locally in IE &#8211; through the filesystem rather than via http (as in localhost or from a server) you will get those errors.</p>
<p>Last, I tried Daniel&#8217;s fix, but I have a problem that I am working on trying to sort out. When I click the globe, it immediately flips over, then I can interact with it normally. Also, the markers&#8217; latitude seems wrong. I&#8217;ve only been messing with it for an hour, so I&#8217;ll post any fixes I can find, but has anyone else already solved these issues?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/comment-page-1/#comment-397</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Mon, 01 Dec 2008 16:12:18 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/2008/06/11/adobe-edge-article-geocoding-with-papervision3d/#comment-397</guid>
		<description>Hey again,

So it works well now! For some reason the rotation was working inverse, meaning it rotated the other way as my mouse moved. Also, when I performed a rotationX and clicked again, it performed a rotation in the opposite direction. Don&#039;t know why, but this fixed it for me:

[in mouseDownHandler:]
globeMouseDiffX = -mouseX + cameraTarget.rotationY;
globeMouseDiffY = mouseY - cameraTarget.rotationX;

[in onRenderTick:]
var rotationY:Number = -( -mouseX - globeMouseDiffX );
var rotationX:Number = ( mouseY - globeMouseDiffY );

Cheers,
Daniel

</description>
		<content:encoded><![CDATA[<p>Hey again,</p>
<p>So it works well now! For some reason the rotation was working inverse, meaning it rotated the other way as my mouse moved. Also, when I performed a rotationX and clicked again, it performed a rotation in the opposite direction. Don&#8217;t know why, but this fixed it for me:</p>
<p>[in mouseDownHandler:]<br />
globeMouseDiffX = -mouseX + cameraTarget.rotationY;<br />
globeMouseDiffY = mouseY &#8211; cameraTarget.rotationX;</p>
<p>[in onRenderTick:]<br />
var rotationY:Number = -( -mouseX &#8211; globeMouseDiffX );<br />
var rotationX:Number = ( mouseY &#8211; globeMouseDiffY );</p>
<p>Cheers,<br />
Daniel</p>
]]></content:encoded>
	</item>
</channel>
</rss>
