I'm trying to do pick selection by using ISceneCollisionManager::getSceneNodeFromScreenCoordinatesBB.
What is the screen coordinate system used when defining the screen coordinates to use?
Is the coordinates of the upper left corner (0,0) and lower right (width, height)? I've tried to search the forum and documentation about this, but without any luck.
hope someone have time to answer my question.
What screen coordinate system is used in Irrlicht?
-
- Posts: 15
- Joined: Fri Jan 02, 2009 1:25 pm
- Location: Around
- Contact:
-
- Posts: 98
- Joined: Fri Oct 03, 2008 1:25 pm
- Location: UK
- Contact:
It uses the right handed cartesian co ordinate system (X, Y, Z)
X = width
Y = height
Z = 3D line between the two
Y(height)
| _ X(twidth)
/
Z(towards the viewer)
Like my graph? lol
X = width
Y = height
Z = 3D line between the two
Y(height)
| _ X(twidth)
/
Z(towards the viewer)
Like my graph? lol
Last edited by Systemerror on Thu Apr 30, 2009 10:13 pm, edited 3 times in total.
-System error
-
- Posts: 98
- Joined: Fri Oct 03, 2008 1:25 pm
- Location: UK
- Contact:
maybe if it was correct...Systemerror wrote: X(height going downwards)
| _ Y(to the right)
/
Z(towards the viewer)
Like my graph? lol
X - you're wrong: it goes to the right !!!
Y - you're wrong: it goes up !!!
Z - you're wrong: it's the opposite direction !!!
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
- Posts: 98
- Joined: Fri Oct 03, 2008 1:25 pm
- Location: UK
- Contact: