how transform screen coordinates into scene node coordinates
Posted: Mon Feb 27, 2006 3:41 pm
Hi,
i want to check in what orientational relation a certain pixel is from a certain scene node and furthermore move the scene node to that position.
the scene node may be a child from the camera at x,y,z
my input coordinates are x=-1..0..1 and y=-1..0..1 on the screen. i could switch to pixels as well (i.e. 0..1280*0..1024).
how do i transform those input coordinates into the coordinate space of the scene node?? i currently have no clue how to do that.
could anyone of you guys plz help me out?
thanx a lot!
warden
i want to check in what orientational relation a certain pixel is from a certain scene node and furthermore move the scene node to that position.
the scene node may be a child from the camera at x,y,z
my input coordinates are x=-1..0..1 and y=-1..0..1 on the screen. i could switch to pixels as well (i.e. 0..1280*0..1024).
how do i transform those input coordinates into the coordinate space of the scene node?? i currently have no clue how to do that.
could anyone of you guys plz help me out?
thanx a lot!
warden