[Papervision3D] 2D coordinate to Plane 3D coordinate
Carlos Ulloa
c4rl054321 at gmail.com
Sun Feb 18 13:44:04 EST 2007
I don't think you can obtain xyz from just xy. There could be more than one
point, in fact probably infinite points, that would be projected in the same
screen xy.
Your best option here would be to use MovieScene and have a separate object
in the root of the scene for each interactive element (buttons I think).
Would be good to be able to have separate containers for objects inside a
hierarchy, but that's currently not implemented.
C4RL05
// noventaynueve.com
// papervision3d.org
On 17/02/07, Guojian Wu <guojenman at gmail.com> wrote:
>
> Hi,
>
> Is there something in place to get the corresponding 3D coordinate on a
> plane given the projected 2D coordinate on the screen? This would be needed
> if let's say we want to have a UI mapped on a face of a cube and interact
> with that UI as the cube rotates. Also, it might be cool to be able to drag
> and drop items that are mapped on plane.
>
> maybe something like
>
> var xyz:Object = myPlane.screenToLocal( container._xmouse,
> container_ymouse );
>
>
> I would make such contribution if my math skills was up to par with you
> guys but it is not. That is why I am asking to see if you guys have done it
> or plan to add it to PV3D. it would be nice :)
>
> and thank you for the great work so far.
>
>
> Wu
>
> _______________________________________________
> 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/20070218/2a6ceb44/attachment.htm
More information about the Papervision3D
mailing list