Haha.  Thats how I thought he was doing it, since I got pretty good performance and ShadowCaster isn&#39;t exactly a performance beast.<br><br><br><br><div class="gmail_quote">On Wed, Apr 8, 2009 at 12:10 PM, Andy Zupko <span dir="ltr">&lt;<a href="mailto:azupko@zupko.info">azupko@zupko.info</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="">Instead of using the shadowcaster class you could write a simple class which simple moves 4 planes (which have &quot;shadow&quot; baked textures on them) to the correct place.  <div>
<br></div><div>The general idea being:</div><div><br></div><div>- 1 Shadow plane for each ball</div><div>- Get the vector from Light to ball - move in that direction [radius] more (to get distance to the &quot;floor&quot;)</div>
<div>- move the shadow plane to that position</div><div><br></div><div>Here is some pseudo on how to get the positions:</div><div><br></div><div>for each sphere s{</div><div><br></div><div>var vector: Number3D = new Number3D(s.x - light.x, s.y-light.y, s.z - light.z);</div>
<div>var spherePos:Number3D = new Number3d(s.x, s.y, s.z);</div><div>vector.normalize();</div><div>vector.multipyEq(radius);</div><div>vector = Number3D.add(vector, spherePos);</div><div>shadowPlanes[s].copyPosition(vector);</div>
<div><br></div><div>}</div><div><br></div><div><br></div><div>that should work - use reset instead of new Number3D to cut down on instantiations.  It won&#39;t be exact &quot;shadow&quot; casting but close enough to not matter i think.</div>
<div><br></div><div>hth</div><div><div></div><div class="h5"><div><br><div><div>On Apr 8, 2009, at 1:37 PM, Federico Calvo wrote:</div><br><blockquote type="cite">Hey Pablo! thanks!!<br><br>Next steps are: <br><br>- Figuring out a way to limit the size of the ShadowCaster plane. When you see this on a big screen it slows the thing too much.<br>
- Animate a movieclip under the moused over sphere which will display the name of the node. (This might turn out being too annoying and I might have to change it to onClick or something)<br> - Make Camera look at the clicked sphere center.<br>
- Animate the Camera forward until it reaches the center of the sphere.<br>- Stop (in an animation) all sphere movement and remove all shpere listeners once one is selected.<br> - Would be nice to be able to change the material to a Wireframe one when you are inside so that it looks like you can see the &#39;geometry&#39; when inside and doubles as a nice background for the loaded content of that node. <br>
 <br>As you can probably tell it will be a challenge to make this model &quot;usable&quot; but I&#39;ll try it out.<br><br>Thanks for your interest!<br><div dir="ltr"><div><span style="font-family: trebuchet ms,sans-serif; font-weight: bold;">Fede<br>
 </span><span style="font-family: trebuchet ms,sans-serif;">PS: if you want to follow the progress </span><span style="font-family: trebuchet ms,sans-serif;">I post everything I do on <a href="http://blog.federicocalvo.com" target="_blank">blog.federicocalvo.com</a> </span><span style="font-family: trebuchet ms,sans-serif; font-weight: bold;"><br>
 </span></div><div dir="ltr" style="padding: 10px 0pt 5px; font-family: arial,sans-serif; font-size: 13.3px;"><span style="color: gray;">Chat:</span>  <img style="vertical-align: middle; padding-right: 5px;" alt="" width="16" height="16"><font style="color: gray; font-weight: bold; font-size: 9pt;">Google Talk: </font><font style="vertical-align: middle;"><a href="mailto:fcalvo@gmail.com" target="_blank">fcalvo@gmail.com</a></font>  <img style="vertical-align: middle; padding-right: 5px;" alt="" width="16" height="16"><font style="color: gray; font-weight: bold; font-size: 9pt;">Skype: </font><font style="vertical-align: middle;">fedemcalvo</font>  <img style="vertical-align: middle; padding-right: 5px;" alt="" width="16" height="16"><font style="color: gray; font-weight: bold; font-size: 9pt;">MSN: </font><font style="vertical-align: middle;"><a href="mailto:federicocalvo@hotmail.com" target="_blank">federicocalvo@hotmail.com</a></font></div>
 </div><br><br><div class="gmail_quote">On Wed, Apr 8, 2009 at 12:32 PM, Pablo Lemos <span dir="ltr">&lt;<a href="mailto:pablo@cabanacriacao.com" target="_blank">pablo@cabanacriacao.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 <div bgcolor="#ffffff"> <div><font size="2" face="Arial">Very nice experiment.</font></div> <div><font size="2" face="Arial">I would love to see it as a website navigation system.</font></div> <div><font size="2" face="Arial">Let me know the next steps! :)</font></div>
 <div><font size="2" face="Arial"></font> </div> <div>Pablo Cabana<br>(21) 9338-0388<br>Cabana Criação<br>(21) 2707-7020<br><a href="http://www.cabanacriacao.com" target="_blank">www.cabanacriacao.com</a><br>Visite também o Cabanoblog:<br>
<a href="http://www.cabanacriacao.com/blog" target="_blank">www.cabanacriacao.com/blog</a> </div> <blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div><div></div><div>  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
  <div style="background: rgb(228, 228, 228) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
 <b>From:</b>   <a title="fcalvo@gmail.com" href="mailto:fcalvo@gmail.com" target="_blank">Federico Calvo</a>   </div>  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>To:</b> <a title="papervision3d@osflash.org" href="mailto:papervision3d@osflash.org" target="_blank">papervision3d@osflash.org</a> </div>   <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>Sent:</b> Wednesday, April 08, 2009 1:06   PM</div>  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>Subject:</b> Re: [Papervision3D]   PaperVision3D + APE experiment test</div>  <div><br></div>Thanks Gordon, <br><br>I have the idea of using it for a crazy   navigation system for my website initially. The idea is that each sphere is a   content node and on click you would &quot;get Into&quot; that content world via   animation of the camera, I&#39;m working on that right now and have some   interaction/usability issues to think about. <br>
<br>I also I have it as the   foundation of some future casual game that I might develop. Not sure what that   would be yet, could be a pool or billiard game (would be a little complex, but   it&#39;s possible) or a bowling game or some other custom push-the-sphere around   type of game. <br>
<br>  <div dir="ltr">  <div><span style="font-weight: bold; font-family: trebuchet ms,sans-serif;">Fede</span></div>  <div dir="ltr" style="padding: 10px 0pt 5px; font-size: 13px; font-family: arial,sans-serif;"><span style="color: gray;">Chat:</span> <img style="padding-right: 5px; vertical-align: middle;" alt="" width="16" height="16"><font style="font-weight: bold; font-size: 9pt; color: gray;">Google Talk:   </font><font style="vertical-align: middle;"><a href="mailto:fcalvo@gmail.com" target="_blank">fcalvo@gmail.com</a></font> <img style="padding-right: 5px; vertical-align: middle;" alt="" width="16" height="16"><font style="font-weight: bold; font-size: 9pt; color: gray;">Skype: </font><font style="vertical-align: middle;">fedemcalvo</font> <img style="padding-right: 5px; vertical-align: middle;" alt="" width="16" height="16"><font style="font-weight: bold; font-size: 9pt; color: gray;">MSN: </font><font style="vertical-align: middle;"><a href="mailto:federicocalvo@hotmail.com" target="_blank">federicocalvo@hotmail.com</a></font></div>
 <br></div><br><br>  <div class="gmail_quote">On Wed, Apr 8, 2009 at 11:11 AM, Gordon Everett <span dir="ltr">&lt;<a href="mailto:gordee@hotmail.co.uk" target="_blank">gordee@hotmail.co.uk</a>&gt;</span> wrote:<br>  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div><br>Cool, repulsive you might say! They do repel each other right!? It     seems that way in which case it is a neat little experiment. Where are you     thinking of taking it from here?<br><br><p dir="ltr" style="margin-right: 0px;">
<i>Regards</i><br><i>Gordon     Everett</i><br></p><i></i> <br><i><b>My preferred email address: </b><a href="mailto:gordon.everett2@gmail.com" target="_blank"><b>gordon.everett2@gmail.com</b></a></i><br><br><i></i> <i><b>My     Blog: </b></i><a href="http://flashgordonmedia.blogspot.com/" target="_blank"><i><b>http://flashgordonmedia.blogspot.com/</b></i></a><br>
<br><i></i> <br><br><br><br><br><br><br><br>    <hr>    Date: Wed, 8 Apr 2009 10:41:48 -0400<br>From: <a href="mailto:fcalvo@gmail.com" target="_blank">fcalvo@gmail.com</a><br>To: <a href="mailto:Papervision3D@osflash.org" target="_blank">Papervision3D@osflash.org</a><br>
 Subject: [Papervision3D]     PaperVision3D + APE experiment test    <div>    <div></div>    <div><br><br>Hi list! this is my first post here. I enjoy and learn a lot     from this list so I wanted to throw a little experiment I&#39;m working on in     hopes I could get some feedback.<br>
<br>Here it is:<br><a href="http://www.federicocalvo.com/marbles/paperbase.html" target="_blank">http://www.federicocalvo.com/marbles/paperbase.html</a>     <br><br>I&#39;m also maintaining a blog of the process, problems and solutions     in creating it:<br>
<a href="http://blog.federicocalvo.com" target="_blank">http://blog.federicocalvo.com</a><br><br>Thanks a     lot!<br>Federico Calvo<br><br></div></div>    <hr>    Windows Live Messenger just got better. <a href="http://clk.atdmt.com/UKM/go/134665230/direct/01/" target="_blank">Find     out     more!</a></div>
<br>_______________________________________________<br>Papervision3D     mailing list<br><a href="mailto:Papervision3D@osflash.org" target="_blank">Papervision3D@osflash.org</a><br><a href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org" target="_blank">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a><br>
 <br></blockquote></div><br>  </div></div><div>  <br></div><hr><div><div><br></div>_______________________________________________<br>Papervision3D   mailing   list<br><a href="mailto:Papervision3D@osflash.org" target="_blank">Papervision3D@osflash.org</a><br>
<a href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org" target="_blank">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a><br> </div></blockquote></div> <br>_______________________________________________<br>
 Papervision3D mailing list<br> <a href="mailto:Papervision3D@osflash.org" target="_blank">Papervision3D@osflash.org</a><br> <a href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org" target="_blank">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a><br>
 <br></blockquote></div><br> _______________________________________________<br>Papervision3D mailing list<br><a href="mailto:Papervision3D@osflash.org" target="_blank">Papervision3D@osflash.org</a><br><a href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org" target="_blank">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a><br>
</blockquote></div><br></div></div></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" target="_blank">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a><br>
<br></blockquote></div><br>