[Papervision3D] PaperVision3D + APE experiment test
Federico Calvo
fcalvo at gmail.com
Wed Apr 8 18:14:42 PDT 2009
Oh! just for reference in case someone else sees this, I just had to change
the line:
shadowPlanes[s].copyPosition(vector);
To
shadowPlanes[s].position(vector);
copyPosition() was expecting a Matrix3D or a DisplayObject3D;
*from DisplayObject3D:**
public function copyPosition( reference:* ):void
{
var trans :Matrix3D = this.transform;
var matrix :Matrix3D = (reference is DisplayObject3D)?
reference.transform : reference;
trans.n14 = matrix.n14;
trans.n24 = matrix.n24;
trans.n34 = matrix.n34;
}*
Fede
Chat: Google Talk: fcalvo at gmail.com MSN: federicocalvo at hotmail.com
Contact Me: [image: Linkedin] <http://www.linkedin.com/in/federicocalvo>[image:
Twitter] <http://twitter.com/fedecalvo>[image:
Blogger]<http://blog.federicocalvo.com>
On Wed, Apr 8, 2009 at 9:09 PM, Federico Calvo <fcalvo at gmail.com> wrote:
> Hey guys check it out! I implemented Andy's suggestion. Thank You, Thank
> You, Thank You. It now moves incredibly well!
>
> http://federicocalvo.com/marbles/paperbase.html
>
> Fede
> Chat: Google Talk: fcalvo at gmail.com MSN: federicocalvo at hotmail.com
> Contact Me: [image: Linkedin] <http://www.linkedin.com/in/federicocalvo>[image:
> Twitter] <http://twitter.com/fedecalvo>[image: Blogger]<http://blog.federicocalvo.com>
>
>
>
> On Wed, Apr 8, 2009 at 5:20 PM, Steve D <kruass at gmail.com> wrote:
>
>> Haha. Thats how I thought he was doing it, since I got pretty good
>> performance and ShadowCaster isn't exactly a performance beast.
>>
>>
>>
>>
>> On Wed, Apr 8, 2009 at 12:10 PM, Andy Zupko <azupko at zupko.info> wrote:
>>
>>> Instead of using the shadowcaster class you could write a simple class
>>> which simple moves 4 planes (which have "shadow" baked textures on them) to
>>> the correct place.
>>> The general idea being:
>>>
>>> - 1 Shadow plane for each ball
>>> - Get the vector from Light to ball - move in that direction [radius]
>>> more (to get distance to the "floor")
>>> - move the shadow plane to that position
>>>
>>> Here is some pseudo on how to get the positions:
>>>
>>> for each sphere s{
>>>
>>> var vector: Number3D = new Number3D(s.x - light.x, s.y-light.y, s.z -
>>> light.z);
>>> var spherePos:Number3D = new Number3d(s.x, s.y, s.z);
>>> vector.normalize();
>>> vector.multipyEq(radius);
>>> vector = Number3D.add(vector, spherePos);
>>> shadowPlanes[s].copyPosition(vector);
>>>
>>> }
>>>
>>>
>>> that should work - use reset instead of new Number3D to cut down on
>>> instantiations. It won't be exact "shadow" casting but close enough to not
>>> matter i think.
>>>
>>> hth
>>>
>>> On Apr 8, 2009, at 1:37 PM, Federico Calvo wrote:
>>>
>>> Hey Pablo! thanks!!
>>>
>>> Next steps are:
>>>
>>> - 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.
>>> - 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)
>>> - Make Camera look at the clicked sphere center.
>>> - Animate the Camera forward until it reaches the center of the sphere.
>>> - Stop (in an animation) all sphere movement and remove all shpere
>>> listeners once one is selected.
>>> - 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 'geometry' when inside
>>> and doubles as a nice background for the loaded content of that node.
>>>
>>> As you can probably tell it will be a challenge to make this model
>>> "usable" but I'll try it out.
>>>
>>> Thanks for your interest!
>>> Fede
>>> PS: if you want to follow the progress I post everything I do on
>>> blog.federicocalvo.com
>>> Chat: Google Talk: fcalvo at gmail.com Skype: fedemcalvo MSN:
>>> federicocalvo at hotmail.com
>>>
>>>
>>> On Wed, Apr 8, 2009 at 12:32 PM, Pablo Lemos <pablo at cabanacriacao.com>wrote:
>>>
>>>> Very nice experiment.
>>>> I would love to see it as a website navigation system.
>>>> Let me know the next steps! :)
>>>>
>>>> Pablo Cabana
>>>> (21) 9338-0388
>>>> Cabana Criação
>>>> (21) 2707-7020
>>>> www.cabanacriacao.com
>>>> Visite também o Cabanoblog:
>>>> www.cabanacriacao.com/blog
>>>>
>>>> ----- Original Message -----
>>>> *From:* Federico Calvo <fcalvo at gmail.com>
>>>> *To:* papervision3d at osflash.org
>>>> *Sent:* Wednesday, April 08, 2009 1:06 PM
>>>> *Subject:* Re: [Papervision3D] PaperVision3D + APE experiment test
>>>>
>>>> Thanks Gordon,
>>>>
>>>> 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 "get Into" that content world via animation of the camera, I'm working
>>>> on that right now and have some interaction/usability issues to think about.
>>>>
>>>>
>>>> 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's possible) or a bowling game or
>>>> some other custom push-the-sphere around type of game.
>>>>
>>>> Fede
>>>> Chat: Google Talk: fcalvo at gmail.com Skype: fedemcalvo MSN:
>>>> federicocalvo at hotmail.com
>>>>
>>>>
>>>>
>>>> On Wed, Apr 8, 2009 at 11:11 AM, Gordon Everett <gordee at hotmail.co.uk>wrote:
>>>>
>>>>>
>>>>> 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?
>>>>>
>>>>> *Regards*
>>>>> *Gordon Everett*
>>>>> **
>>>>> *My preferred email address: gordon.everett2 at gmail.com*
>>>>>
>>>>> ** *My Blog: **http://flashgordonmedia.blogspot.com/*<http://flashgordonmedia.blogspot.com/>
>>>>>
>>>>> **
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------
>>>>> Date: Wed, 8 Apr 2009 10:41:48 -0400
>>>>> From: fcalvo at gmail.com
>>>>> To: Papervision3D at osflash.org
>>>>> Subject: [Papervision3D] PaperVision3D + APE experiment test
>>>>>
>>>>>
>>>>> 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'm working on in hopes I
>>>>> could get some feedback.
>>>>>
>>>>> Here it is:
>>>>> http://www.federicocalvo.com/marbles/paperbase.html
>>>>>
>>>>> I'm also maintaining a blog of the process, problems and solutions in
>>>>> creating it:
>>>>> http://blog.federicocalvo.com
>>>>>
>>>>> Thanks a lot!
>>>>> Federico Calvo
>>>>>
>>>>> ------------------------------
>>>>> Windows Live Messenger just got better. Find out more!<http://clk.atdmt.com/UKM/go/134665230/direct/01/>
>>>>>
>>>>> _______________________________________________
>>>>> Papervision3D mailing list
>>>>> Papervision3D at osflash.org
>>>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>>>
>>>>>
>>>>
>>>> ------------------------------
>>>>
>>>> _______________________________________________
>>>> Papervision3D mailing list
>>>> Papervision3D at osflash.org
>>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>>
>>>>
>>>> _______________________________________________
>>>> Papervision3D mailing list
>>>> Papervision3D at osflash.org
>>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>>
>>>>
>>> _______________________________________________
>>> Papervision3D mailing list
>>> Papervision3D at osflash.org
>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>
>>>
>>>
>>> _______________________________________________
>>> Papervision3D mailing list
>>> Papervision3D at osflash.org
>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>
>>>
>>
>> _______________________________________________
>> Papervision3D mailing list
>> Papervision3D at osflash.org
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090408/81619066/attachment-0001.html>
More information about the Papervision3D
mailing list