[Papervision3D] 2D coordinate to Plane 3D coordinate

jakelewis jakelewis at blueyonder.co.uk
Sun Feb 18 14:41:50 EST 2007


I think Guojian is referring to a specific plane, or more generically, a
specific 3D object.

Yes it is possible, and quite common in game APIs, but no its not in PV3D
yet.

This is a specific case  of a raycast into a scene. In this case the ray is
from the camera to the x,y, z of the near plane.  Apart from object picking
with the mouse, this is really handy for shooting things.

Jake

  -----Original Message-----
  From: Papervision3D-bounces at osflash.org
[mailto:Papervision3D-bounces at osflash.org]On Behalf Of Carlos Ulloa
  Sent: Sunday, February 18, 2007 1:44 PM
  To: Papervision3D at osflash.org
  Subject: Re: [Papervision3D] 2D coordinate to Plane 3D coordinate


  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/1bdc5fec/attachment-0001.htm


More information about the Papervision3D mailing list