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

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Nextor
Posts: 35
Joined: Wed Feb 16, 2005 9:06 am
Location: Madrid, SPAIN

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

Post 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 :)
Get away from her, you B*TCH !!! - Ellen Ripley
BMF
Posts: 62
Joined: Mon Jul 16, 2007 11:10 am
Location: Spain
Contact:

Post by BMF »

Look for:

"getScreenCoordinatesFrom3DPosition"

at the documentation. It's exactly what you need, I would think. ;)
Nextor
Posts: 35
Joined: Wed Feb 16, 2005 9:06 am
Location: Madrid, SPAIN

Post by Nextor »

Gracias tío. (Ya he leído tu PM :wink: )
Get away from her, you B*TCH !!! - Ellen Ripley
catron
Posts: 158
Joined: Mon Feb 19, 2007 1:54 am

Post by catron »

wow he's your uncle? sorry just had to run that through a translator :P
Image
Image
Nextor
Posts: 35
Joined: Wed Feb 16, 2005 9:06 am
Location: Madrid, SPAIN

Post by Nextor »

Gracias tío = Thanks buddy

(so, that means that those web translators are sh*t :D )
Get away from her, you B*TCH !!! - Ellen Ripley
Post Reply