<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<div><br></div>I'll vote for that. Its kind of strange/non-intuitive that you pass width and height to the constructor but can't access these properties directly<br><br><p dir="ltr" style="margin-right:0px"><em>Regards</em><br><em>Gordon Everett</em><br></p><em></em> <br><em><strong>My preferred email address: </strong><a href="mailto:gordon.everett2@gmail.com"><strong>gordon.everett2@gmail.com</strong></a></em><br><br><em></em> <em><strong>My Blog: </strong></em><a href="http://flashgordonmedia.blogspot.com/"><em><strong>http://flashgordonmedia.blogspot.com/</strong></em></a><br><br><em></em> <br><br><br><br><br><br><br><br><hr id="stopSpelling">From: ross.sclafani@gmail.com<br>To: papervision3d@osflash.org<br>Date: Tue, 23 Jun 2009 18:46:41 -0400<br>Subject: Re: [Papervision3D] Animating camera to target<br><br>it will work on anything with a geometry property.<div>the do3d with a number of planes does not have its own geometry.</div><div>the next step would be a recursive fucntion that fround the collective bounding box of all the bounding boxes using traslation matrices etc. but im no zupko. enjoy the plane.</div><div>i will make other SmartPrimitives and a SmartDAE at some point, but if you beat me to that please post them to the list.</div><div>OR, we could make enough noise and convince the pv3d elders that even though technically width height and depth properties are misleading on 3d geometry, they are familiar interfaces to needed information and build them into the primitives?</div><div><br></div><div>cheers</div><div>_r</div><div><br><div><div><div>On Jun 23, 2009, at 6:30 PM, eric mcconkie wrote:</div><br class="EC_Apple-interchange-newline"><blockquote><span class="EC_Apple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div><div style="margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:verdana, helvetica, sans-serif;font-size:10pt"><div style="margin-right:0px;margin-bottom:0px;margin-left:0px">nice get/set extension...this is awesome...thanks! You have saved me a ton of headache...or at least resolved so many issues....BUT, it seems to only work with prmitives...correct? I ask because i stacked a bunch of planes into a do3D, but get an error when i try:</div><div style="margin-right:0px;margin-bottom:0px;margin-left:0px"><br></div><div style="margin-right:0px;margin-bottom:0px;margin-left:0px">trace((dodd.geometry.aabb.maxY - dodd.geometry.aabb.minY)*dodd.scaleY);</div><div style="margin-right:0px;margin-bottom:0px;margin-left:0px"><br></div><div style="margin-right:0px;margin-bottom:0px;margin-left:0px"><br></div><div style="margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:verdana, helvetica, sans-serif;font-size:10pt"><br><div style="margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:'times new roman', 'new york', times, serif;font-size:12pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight:bold">From:</span></b><span class="EC_Apple-converted-space"> </span>Ross Sclafani <<a href="mailto:ross.sclafani@gmail.com">ross.sclafani@gmail.com</a>><br><b><span style="font-weight:bold">To:</span></b><span class="EC_Apple-converted-space"> </span><a href="mailto:papervision3d@osflash.org">papervision3d@osflash.org</a><br><b><span style="font-weight:bold">Sent:</span></b><span class="EC_Apple-converted-space"> </span>Tuesday, June 23, 2009 9:41:01 AM<br><b><span style="font-weight:bold">Subject:</span></b><span class="EC_Apple-converted-space"> </span>Re: [Papervision3D] Animating camera to target<br></font><br>happy to help.<div style="margin-right:0px;margin-bottom:0px;margin-left:0px">i use a custom class called SmartPlane instead of Plane</div><div style="margin-right:0px;margin-bottom:0px;margin-left:0px">which has width and height properties</div><div style="margin-right:0px;margin-bottom:0px;margin-left:0px">i have attached it. enjoy. </div><div style="margin-right:0px;margin-bottom:0px;margin-left:0px"></div><div style="margin-right:0px;margin-bottom:0px;margin-left:0px"><br><div style="margin-right:0px;margin-bottom:0px;margin-left:0px"><div style="margin-right:0px;margin-bottom:0px;margin-left:0px">On Jun 23, 2009, at 12:33 PM, Eric McConkie wrote:</div><br class="EC_Apple-interchange-newline"><blockquote><div style="margin-right:0px;margin-bottom:0px;margin-left:0px"><div style="margin-right:0px;margin-bottom:0px;margin-left:0px">Omg! This makes my day! I wish I thought of that. This could be the perfect formula. THANKS!</div><div style="margin-right:0px;margin-bottom:0px;margin-left:0px"><br></div><div style="margin-right:0px;margin-bottom:0px;margin-left:0px">On Jun 23, 2009, at 8:19 AM, Ross Sclafani <<a rel="nofollow" href="mailto:ross.sclafani@gmail.com">ross.sclafani@gmail.com</a>> wrote:<br><br></div><div style="margin-right:0px;margin-bottom:0px;margin-left:0px"></div><blockquote><div style="margin-right:0px;margin-bottom:0px;margin-left:0px">there is no width property of Plane.<div style="margin-right:0px;margin-bottom:0px;margin-left:0px"><br></div><div style="margin-right:0px;margin-bottom:0px;margin-left:0px">try the following:</div><div style="margin-right:0px;margin-bottom:0px;margin-left:0px">function getPlaneWidth(p:Plane){</div><div style="margin-right:0px;margin-bottom:0px;margin-left:0px"><span class="EC_Apple-tab-span" style="white-space:pre">        </span>with(p){</div><div style="margin-right:0px;margin-bottom:0px;margin-left:0px"><span class="EC_Apple-style-span" style="font-family:Monaco;font-size:11px"><span class="EC_Apple-tab-span" style="white-space:pre"><font class="EC_Apple-style-span" face="Helvetica"><span class="EC_Apple-style-span" style="font-size:medium">        <span class="EC_Apple-tab-span" style="white-space:pre">        </span></span></font></span>return (geometry.aabb.maxX - geometry.aabb.minX)*scaleX</span></div><div style="margin-right:0px;margin-bottom:0px;margin-left:0px"><div style="margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Monaco"><span class="EC_Apple-tab-span" style="white-space:pre">        </span>}</div><div style="margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Monaco">}</div><div style="margin-right:0px;margin-bottom:0px;margin-left:0px"><div style="margin-right:0px;margin-bottom:0px;margin-left:0px">On Jun 23, 2009, at 11:06 AM, montey wrote:</div><br class="EC_Apple-interchange-newline"><blockquote><div style="margin-right:0px;margin-bottom:0px;margin-left:0px"><br>Thanks Gordon,<br><br>I can't seem to be able to get the width of the evt that was clicked on. I<br>set my click event on the plane When I try to do a call like this it throws<br>an error.<br>My plane consists of a bunch of color materials. which are set to be<br>interactive = true<br><br>Property width not found on org.papervision3d.objects.primitives.Plane and<br>there is no default value.<br><br><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span>private function onPlaneClick( evt : InteractiveScene3DEvent ) : void<br><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span>{<br><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span>//camera.lookAt(evt.target as Plane);<br><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span>var targetPlane : Plane = evt.target as Plane<br><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span>trace("evt.target = "+targetPlane.width)<br><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span>/*var xpos:Number = evt.target.x - evt.target.width/2;<br><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span>var ypos:Number = evt.target.y - evt.target.height/2;<br><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span>var zpos:Number = evt.target.z - 100;<br><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span>TweenMax.to(camera, .8, {x:xpos, y:ypos, z:zpos, ease:Expo.easeOut});<br><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span>camera.lookAt(evt.target as Plane);<br><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span>*/<br><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span><br><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span>trace("camera target = "+camera.target);<br><span class="EC_Apple-tab-span" style="white-space:pre">        </span><span class="EC_Apple-tab-span" style="white-space:pre">        </span>}<br><br>gordee wrote:<br><blockquote><br></blockquote><blockquote><br></blockquote><blockquote>If I have understood what you are trying to do, then try this;<br></blockquote><blockquote>interactiveScene3DEvent.target is the plane clicked on;<br></blockquote><blockquote><br></blockquote><blockquote>var xpos:Number = iS3DEvent.target.x - iS3DEvent.target.width/2;var<br></blockquote><blockquote>ypos:Number = iScene3DEvent.target.y - iS3DEvent.target.height/2;<br></blockquote><blockquote>zpos:Number = iScene3DEvent.target.z - 100;<br></blockquote><blockquote><br></blockquote><blockquote>Tweener.addTween(camera, {x:xpos, y:ypos, :z:zpos, time:1});<br></blockquote><blockquote>hth<br></blockquote><blockquote><br></blockquote><blockquote>Regards<br></blockquote><blockquote>Gordon Everett<br></blockquote><blockquote><br></blockquote><blockquote>My preferred email address:<span class="EC_Apple-converted-space"> </span><a rel="nofollow" href="mailto:gordon.everett2@gmail.com"></a><a rel="nofollow" href="mailto:gordon.everett2@gmail.com">gordon.everett2@gmail.com</a><br></blockquote><blockquote><br></blockquote><blockquote>My Blog:<span class="EC_Apple-converted-space"> </span><a rel="nofollow" href="http://flashgordonmedia.blogspot.com/"></a><a rel="nofollow" href="http://flashgordonmedia.blogspot.com/">http://flashgordonmedia.blogspot.com/</a><br></blockquote><blockquote><br></blockquote><blockquote><br></blockquote><blockquote><br></blockquote><blockquote><br></blockquote><blockquote><br></blockquote><blockquote><br></blockquote><blockquote><br></blockquote><blockquote><br></blockquote><blockquote><br></blockquote><blockquote><blockquote>Date: Mon, 22 Jun 2009 22:18:15 -0700<br></blockquote></blockquote><blockquote><blockquote>From:<span class="EC_Apple-converted-space"> </span><a rel="nofollow" href="mailto:e_account@mac.com"></a><a rel="nofollow" href="mailto:e_account@mac.com">e_account@mac.com</a><br></blockquote></blockquote><blockquote><blockquote>To:<span class="EC_Apple-converted-space"> </span><a rel="nofollow" href="mailto:papervision3D@osflash.org"></a><a rel="nofollow" href="mailto:papervision3D@osflash.org">papervision3D@osflash.org</a><br></blockquote></blockquote><blockquote><blockquote>Subject: [Papervision3D] Animating camera to target<br></blockquote></blockquote><blockquote><blockquote><br></blockquote></blockquote><blockquote><blockquote><br></blockquote></blockquote><blockquote><blockquote>I have 20 planes positioned with z spacing what I'm trying to do is move<br></blockquote></blockquote><blockquote><blockquote>the<br></blockquote></blockquote><blockquote><blockquote>camera through all my planes as the user clicks on each plane. I'm trying<br></blockquote></blockquote><blockquote><blockquote>to<br></blockquote></blockquote><blockquote><blockquote>figure out how to do that. I tried setting the camera target to the<br></blockquote></blockquote><blockquote><blockquote>clicked<br></blockquote></blockquote><blockquote><blockquote>plane but that didn't work. I just want to tween the camera through each<br></blockquote></blockquote><blockquote><blockquote>plane like a fly through.<br></blockquote></blockquote><blockquote><blockquote><br></blockquote></blockquote><blockquote><blockquote>Any ideas please.<span class="EC_Apple-converted-space"> </span><br></blockquote></blockquote><blockquote><blockquote>--<span class="EC_Apple-converted-space"> </span><br></blockquote></blockquote><blockquote><blockquote>View this message in context:<br></blockquote></blockquote><blockquote><blockquote><a rel="nofollow" href="http://www.nabble.com/Animating-camera-to-target-tp24158838p24158838.html"></a><a rel="nofollow" href="http://www.nabble.com/Animating-camera-to-target-tp24158838p24158838.html">http://www.nabble.com/Animating-camera-to-target-tp24158838p24158838.html</a><br></blockquote></blockquote><blockquote><blockquote>Sent from the Papervision3D mailing list archive at<span class="EC_Apple-converted-space"> </span><a rel="nofollow" href="http://Nabble.com">Nabble.com</a>.<br></blockquote></blockquote><blockquote><blockquote><br></blockquote></blockquote><blockquote><blockquote><br></blockquote></blockquote><blockquote><blockquote>_______________________________________________<br></blockquote></blockquote><blockquote><blockquote>Papervision3D mailing list<br></blockquote></blockquote><blockquote><blockquote><a rel="nofollow" href="mailto:Papervision3D@osflash.org"></a><a rel="nofollow" href="mailto:Papervision3D@osflash.org">Papervision3D@osflash.org</a><br></blockquote></blockquote><blockquote><blockquote><a rel="nofollow" href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org"></a><a rel="nofollow" href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a><br></blockquote></blockquote><blockquote><br></blockquote><blockquote>_________________________________________________________________<br></blockquote><blockquote>Get the best of MSN on your mobile<br></blockquote><blockquote><a rel="nofollow" href="http://clk.atdmt.com/UKM/go/147991039/direct/01/"></a><a rel="nofollow" href="http://clk.atdmt.com/UKM/go/147991039/direct/01/">http://clk.atdmt.com/UKM/go/147991039/direct/01/</a><br></blockquote><blockquote>_______________________________________________<br></blockquote><blockquote>Papervision3D mailing list<br></blockquote><blockquote><a rel="nofollow" href="mailto:Papervision3D@osflash.org"></a><a rel="nofollow" href="mailto:Papervision3D@osflash.org">Papervision3D@osflash.org</a><br></blockquote><blockquote><a rel="nofollow" href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org"></a><a rel="nofollow" href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a><br></blockquote><blockquote><br></blockquote><blockquote><br></blockquote><br>--<span class="EC_Apple-converted-space"> </span><br>View this message in context:<span class="EC_Apple-converted-space"> </span><a rel="nofollow" href="http://www.nabble.com/Animating-camera-to-target-tp24158838p24167306.html"></a><a rel="nofollow" href="http://www.nabble.com/Animating-camera-to-target-tp24158838p24167306.html">http://www.nabble.com/Animating-camera-to-target-tp24158838p24167306.html</a><br>Sent from the Papervision3D mailing list archive at<span class="EC_Apple-converted-space"> </span><a rel="nofollow" href="http://Nabble.com">Nabble.com</a>.<br><br><br>_______________________________________________<br>Papervision3D mailing list<br><a rel="nofollow" href="mailto:Papervision3D@osflash.org"></a><a rel="nofollow" href="mailto:Papervision3D@osflash.org">Papervision3D@osflash.org</a><br><a rel="nofollow" href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a><br></div></blockquote></div><br></div></div></blockquote><blockquote><div style="margin-right:0px;margin-bottom:0px;margin-left:0px"><span>_______________________________________________</span><br><span>Papervision3D mailing list</span><br><span><a rel="nofollow" href="mailto:Papervision3D@osflash.org">Papervision3D@osflash.org</a></span><br><span><a rel="nofollow" href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a></span><br></div></blockquote><br></div>_______________________________________________<br>Papervision3D mailing list<br><a rel="nofollow" href="mailto:Papervision3D@osflash.org">Papervision3D@osflash.org</a><br><span><a href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a></span><br></blockquote></div><br></div></div></div><div style="margin-right:0px;margin-bottom:0px;margin-left:0px"></div></div><br>_______________________________________________<br>Papervision3D mailing list<br><a href="mailto:Papervision3D@osflash.org">Papervision3D@osflash.org</a><br><a href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a><br></div></span></blockquote></div><br></div></div><br /><hr />Beyond Hotmail - see what else you can do with Windows Live. <a href='http://clk.atdmt.com/UKM/go/134665375/direct/01/' target='_new'>Find out more.</a></body>
</html>