[Papervision3D] How to get 2D coordinates of a Vertex3D?
Ralph Hauwert
r.hauwert at gmail.com
Tue Jun 17 07:43:56 PDT 2008
After rendering you can just look it up within vertices, and approach
it's vertex3DInstance, to get the coords.
Ralph.
On 17 jun 2008, at 16:30, tmyers wrote:
>
>
> This is the solution most people seem to use...
>
> Have a look at the DisplayObject3D class. There is a public variable
> called
> screen (Number3D object) and a private function called
> calculateScreenCoords().
>
> What you have to do is make this function public...you will then
> have to
> explicitly call this function each time you want to update the screen
> variable which you can access as follows...
>
> myDisplayObject3D.calculateScreenCoords();
> 3dOverlaySprite.x = myDisplayObject3D.screen.x;
>
>
> hope this helps...
>
>
>
>
>
> docstevie wrote:
>>
>> Hi,
>>
>> for displaying a 2D-overlay in front of a Papervision-scene, I need
>> to get
>> the screen-coordinates of - let's say - a Vertex3D-object. I've
>> already
>> searched the forum for an answer, but they all seem to be out of
>> date.
>>
>> Where is the actual calculation 3D -> 2D done? That could also help.
>>
>> Thanks a lot, Stevie.
>>
>
> --
> View this message in context: http://www.nabble.com/How-to-get-2D-coordinates-of-a-Vertex3D--tp17903828p17909856.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
More information about the Papervision3D
mailing list