[Papervision3D] projecting a Number3D to screen location

Tom Richardson kwarismian at gmail.com
Mon Mar 24 06:21:58 PST 2008


The "screen coordinates" of any vector in 3d space is the result of
projecting those 3d coordinates to a 2d plane.  Thus, it is always a
function of the camera transform, as that dictates how the projection for
each vertex is handled.

You can't have a screen without a projection.

On Sat, Mar 22, 2008 at 7:34 PM, REast <reast at esri.com> wrote:

>
> Ok, there's still a problem.   Vertices3D extends DisplayObject3D and thus
> has a view property.
>
> In my scenario, I am looking for a way to convert from a Number3D to
> screen
> coordinates.  But, the Number3D is not a DO3D, so there isn't an
> associated
> view.
>
> Is there a view somewhere that I can use?  The scene.camera doesn't look
> promising to me.
>
>
>
> Seb-21 wrote:
> >
> > .....
> > find projectFrustum in Vertices3D.as
> >
> > this is the code you want :
> >
> >                 s_z = vx * m31 + vy * m32 + vz * m33 + view.n34;
> >                 s_w = vx * m41 + vy * m42 + vz * m43 + view.n44;
> > .......
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/projecting-a-Number3D-to-screen-location-tp16002530p16229731.html
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> 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/20080324/372030cc/attachment.html 


More information about the Papervision3D mailing list