Page 1 of 1

How to get the point on screen from a 3D point in the scene?

Posted: Thu Aug 16, 2007 9:01 am
by Nextor
I mean, having a certain point in the scene located at (X,Y,Z) and being viewable from the camera, ¿how can I get the projection of the same point on the camera plane and get a X,Y point on the screen? I guess that is a common task and there's an easy way to do it...

Thanx in advance :)

Posted: Thu Aug 16, 2007 9:32 am
by BMF
Look for:

"getScreenCoordinatesFrom3DPosition"

at the documentation. It's exactly what you need, I would think. ;)

Posted: Thu Aug 16, 2007 11:37 am
by Nextor
Gracias tío. (Ya he leído tu PM :wink: )

Posted: Thu Aug 16, 2007 11:58 am
by catron
wow he's your uncle? sorry just had to run that through a translator :P

Posted: Thu Aug 16, 2007 12:11 pm
by Nextor
Gracias tío = Thanks buddy

(so, that means that those web translators are sh*t :D )