<?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: Basic Mouse Interaction (v2)</title>
	<atom:link href="http://papervision2.com/basic-mouse-interaction-v2/feed/" rel="self" type="application/rss+xml" />
	<link>http://papervision2.com/basic-mouse-interaction-v2/</link>
	<description>Papervision2.com - Best resource for Papervision3d tutorials</description>
	<lastBuildDate>Thu, 15 Jul 2010 18:38:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Sin Tesis</title>
		<link>http://papervision2.com/basic-mouse-interaction-v2/comment-page-1/#comment-88279</link>
		<dc:creator>Sin Tesis</dc:creator>
		<pubDate>Thu, 15 Jul 2010 18:38:35 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/?p=257#comment-88279</guid>
		<description>I need that camera spun around object, and object did not move. As this do?</description>
		<content:encoded><![CDATA[<p>I need that camera spun around object, and object did not move. As this do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tresloukadu</title>
		<link>http://papervision2.com/basic-mouse-interaction-v2/comment-page-1/#comment-53024</link>
		<dc:creator>tresloukadu</dc:creator>
		<pubDate>Tue, 11 May 2010 14:24:31 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/?p=257#comment-53024</guid>
		<description>Hello, could you explain this line? 

world.rotationY = stage.mouseX / sceneWidth * 360;

Because I made this one

world.rotationY = stage.mouseX;

And i didnt notice difference.</description>
		<content:encoded><![CDATA[<p>Hello, could you explain this line? </p>
<p>world.rotationY = stage.mouseX / sceneWidth * 360;</p>
<p>Because I made this one</p>
<p>world.rotationY = stage.mouseX;</p>
<p>And i didnt notice difference.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://papervision2.com/basic-mouse-interaction-v2/comment-page-1/#comment-36119</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 18 Mar 2010 13:45:59 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/?p=257#comment-36119</guid>
		<description>Its brilliantly explained over here about pv3.
but when i use my own png and dae it does not work .
is there some specific method to create it or some code error...plz let me know.



source code:

package 

{

    import flash.events.Event;

    import org.papervision3d.materials.BitmapFileMaterial;

    import org.papervision3d.materials.utils.MaterialsList;

    import org.papervision3d.objects.DisplayObject3D;

    import org.papervision3d.objects.parsers.Collada;

    import org.papervision3d.view.BasicView;

 

    public class Bike extends BasicView

    {

        //protected var viewport3D:viewport3d;
	    
        protected var bikeBody:DisplayObject3D;

        protected var materialList:MaterialsList;

        protected var bitmapFileMaterial:BitmapFileMaterial;
		
		
        protected var sceneWidth:Number;

        protected var sceneHeight:Number;

		
       

       public function Bike()

        {

            super();

            sceneWidth = stage.stageWidth;
		   
            createChildren();

            startRendering();

        }

        public function createChildren():void

        {
			//viewport3D.interactive = true;

            //Setup the materials manually (sometimes the dae handles this without issue)

            materialList       = new MaterialsList();

            bitmapFileMaterial  = new BitmapFileMaterial(&quot;bikeBody.png&quot;);

            materialList.addMaterial(bitmapFileMaterial,&quot;all&quot;);

           

            //Create the new Collada Object with materialList

            bikeBody = new Collada(&quot;BikeBody.dae&quot;,materialList);



           //Set some properties

            bikeBody.moveDown(150);

            //bikeBody.scale = 3;

            bikeBody.pitch( -10);

 

            //Add to scene

            scene.addChild(bikeBody);

        }

       

        override protected function onRenderTick(event:Event = null):void

        {

           super.onRenderTick(event);

 

            //Rotate

            bikeBody.yaw(1);

        }

    }
}</description>
		<content:encoded><![CDATA[<p>Its brilliantly explained over here about pv3.<br />
but when i use my own png and dae it does not work .<br />
is there some specific method to create it or some code error&#8230;plz let me know.</p>
<p>source code:</p>
<p>package </p>
<p>{</p>
<p>    import flash.events.Event;</p>
<p>    import org.papervision3d.materials.BitmapFileMaterial;</p>
<p>    import org.papervision3d.materials.utils.MaterialsList;</p>
<p>    import org.papervision3d.objects.DisplayObject3D;</p>
<p>    import org.papervision3d.objects.parsers.Collada;</p>
<p>    import org.papervision3d.view.BasicView;</p>
<p>    public class Bike extends BasicView</p>
<p>    {</p>
<p>        //protected var viewport3D:viewport3d;</p>
<p>        protected var bikeBody:DisplayObject3D;</p>
<p>        protected var materialList:MaterialsList;</p>
<p>        protected var bitmapFileMaterial:BitmapFileMaterial;</p>
<p>        protected var sceneWidth:Number;</p>
<p>        protected var sceneHeight:Number;</p>
<p>       public function Bike()</p>
<p>        {</p>
<p>            super();</p>
<p>            sceneWidth = stage.stageWidth;</p>
<p>            createChildren();</p>
<p>            startRendering();</p>
<p>        }</p>
<p>        public function createChildren():void</p>
<p>        {<br />
			//viewport3D.interactive = true;</p>
<p>            //Setup the materials manually (sometimes the dae handles this without issue)</p>
<p>            materialList       = new MaterialsList();</p>
<p>            bitmapFileMaterial  = new BitmapFileMaterial(&#8220;bikeBody.png&#8221;);</p>
<p>            materialList.addMaterial(bitmapFileMaterial,&#8221;all&#8221;);</p>
<p>            //Create the new Collada Object with materialList</p>
<p>            bikeBody = new Collada(&#8220;BikeBody.dae&#8221;,materialList);</p>
<p>           //Set some properties</p>
<p>            bikeBody.moveDown(150);</p>
<p>            //bikeBody.scale = 3;</p>
<p>            bikeBody.pitch( -10);</p>
<p>            //Add to scene</p>
<p>            scene.addChild(bikeBody);</p>
<p>        }</p>
<p>        override protected function onRenderTick(event:Event = null):void</p>
<p>        {</p>
<p>           super.onRenderTick(event);</p>
<p>            //Rotate</p>
<p>            bikeBody.yaw(1);</p>
<p>        }</p>
<p>    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinícius</title>
		<link>http://papervision2.com/basic-mouse-interaction-v2/comment-page-1/#comment-34283</link>
		<dc:creator>Vinícius</dc:creator>
		<pubDate>Tue, 09 Mar 2010 18:18:55 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/?p=257#comment-34283</guid>
		<description>Very good this tutorial.

It&#039;s work with a SketchUp model?

thanks!</description>
		<content:encoded><![CDATA[<p>Very good this tutorial.</p>
<p>It&#8217;s work with a SketchUp model?</p>
<p>thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: interactive</title>
		<link>http://papervision2.com/basic-mouse-interaction-v2/comment-page-1/#comment-31883</link>
		<dc:creator>interactive</dc:creator>
		<pubDate>Mon, 22 Feb 2010 13:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/?p=257#comment-31883</guid>
		<description>thanks for the tutorial!!!

how do i make the model clickable? ie: click on the cow and it moves on the x-axis or maybe zoom in towards us.


thanks.</description>
		<content:encoded><![CDATA[<p>thanks for the tutorial!!!</p>
<p>how do i make the model clickable? ie: click on the cow and it moves on the x-axis or maybe zoom in towards us.</p>
<p>thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GaryDev</title>
		<link>http://papervision2.com/basic-mouse-interaction-v2/comment-page-1/#comment-31692</link>
		<dc:creator>GaryDev</dc:creator>
		<pubDate>Sun, 21 Feb 2010 08:16:28 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/?p=257#comment-31692</guid>
		<description>Hello,
I have been able to use this great tute and have it working well. I have a problem, however. When I create a swf (3d swf) with this workflow it works well. So I know it is coded properly. 

I am using a parent swf to call a series of 3d (3d swfs) models which I created using this workflow. When I call the model from the parent swf it breaks with the following error message:
Error #1009: Cannot access a property or method of a null object reference.
	at Main/init()
	at Main()

When I remove the mouse interaction and substitute the &quot;Main&quot; class from the previous tute it works fine. I believe it has something to do with the stage refreshing. . . Do I need to add the mouse interactivity to the parent swf? Do you have any other guidance on what the solution might be?

Thank you.</description>
		<content:encoded><![CDATA[<p>Hello,<br />
I have been able to use this great tute and have it working well. I have a problem, however. When I create a swf (3d swf) with this workflow it works well. So I know it is coded properly. </p>
<p>I am using a parent swf to call a series of 3d (3d swfs) models which I created using this workflow. When I call the model from the parent swf it breaks with the following error message:<br />
Error #1009: Cannot access a property or method of a null object reference.<br />
	at Main/init()<br />
	at Main()</p>
<p>When I remove the mouse interaction and substitute the &#8220;Main&#8221; class from the previous tute it works fine. I believe it has something to do with the stage refreshing. . . Do I need to add the mouse interactivity to the parent swf? Do you have any other guidance on what the solution might be?</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://papervision2.com/basic-mouse-interaction-v2/comment-page-1/#comment-29122</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Wed, 13 Jan 2010 16:48:29 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/?p=257#comment-29122</guid>
		<description>You&#039;ve probably figured this one out already but pitch, yaw, and roll refer to the 3 different axis of rotation in flight dynamics.

http://en.wikipedia.org/wiki/Flight_dynamics

You could also use the rotationX, rotationY, and rotationZ properties of the DisplayObject3D object.</description>
		<content:encoded><![CDATA[<p>You&#8217;ve probably figured this one out already but pitch, yaw, and roll refer to the 3 different axis of rotation in flight dynamics.</p>
<p><a href="http://en.wikipedia.org/wiki/Flight_dynamics" rel="nofollow">http://en.wikipedia.org/wiki/Flight_dynamics</a></p>
<p>You could also use the rotationX, rotationY, and rotationZ properties of the DisplayObject3D object.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SynerCoding &#187; Blog Archive &#187; PV3D expiriment</title>
		<link>http://papervision2.com/basic-mouse-interaction-v2/comment-page-1/#comment-29036</link>
		<dc:creator>SynerCoding &#187; Blog Archive &#187; PV3D expiriment</dc:creator>
		<pubDate>Sun, 10 Jan 2010 23:45:33 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/?p=257#comment-29036</guid>
		<description>[...] followed a tutorial (http://papervision2.com/basic-mouse-interaction-v2/) and enhanced it so it first loads every model (only one now) and the texture(&#8217;s)  then [...]</description>
		<content:encoded><![CDATA[<p>[...] followed a tutorial (<a href="http://papervision2.com/basic-mouse-interaction-v2/" rel="nofollow">http://papervision2.com/basic-mouse-interaction-v2/</a>) and enhanced it so it first loads every model (only one now) and the texture(&#8217;s)  then [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cow</title>
		<link>http://papervision2.com/basic-mouse-interaction-v2/comment-page-1/#comment-27843</link>
		<dc:creator>cow</dc:creator>
		<pubDate>Tue, 29 Dec 2009 07:02:58 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/?p=257#comment-27843</guid>
		<description>hii,

Can someone explain to me what the pitch does?
example: cow.pitch( -10);

I&#039;ve change the value but it seems to do nothing.

How do we make the cow to face us directly when the mouse is over at the center?

thanks in advance...great tutorial!!!!</description>
		<content:encoded><![CDATA[<p>hii,</p>
<p>Can someone explain to me what the pitch does?<br />
example: cow.pitch( -10);</p>
<p>I&#8217;ve change the value but it seems to do nothing.</p>
<p>How do we make the cow to face us directly when the mouse is over at the center?</p>
<p>thanks in advance&#8230;great tutorial!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wolf</title>
		<link>http://papervision2.com/basic-mouse-interaction-v2/comment-page-1/#comment-27728</link>
		<dc:creator>wolf</dc:creator>
		<pubDate>Sun, 27 Dec 2009 16:21:34 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/?p=257#comment-27728</guid>
		<description>very nice tutorial!!! thanks alot!!!
one question - the model is not facing towards us...how do we turn it around so that it faces us at start?

thanks you very much.</description>
		<content:encoded><![CDATA[<p>very nice tutorial!!! thanks alot!!!<br />
one question &#8211; the model is not facing towards us&#8230;how do we turn it around so that it faces us at start?</p>
<p>thanks you very much.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
