Howdy again
i try to convert world to screen coordinates … my guess was to use View.getProjView( canvas ) to get the view projection matrix (or transform3d) and then Transform3D.transform ( point3f ) with some of my world coordinates which should move them to screen space … but given a simple example:
camera position: (1,1,0) looking at (0,0,0)
and two points: p=(0,0,0) and q=(0,0,1)
gives the following result:
q (after transformation): (-0.70,-0.70,0)
p (after transformation): (-3.41,-3.41,0)
camera position: (0,0,1) looking at (0,0,0)
and two points: p=(0,0,0) and q=(0,0,1)
gives the following result:
p (after transformation): (0,0,-1)
q (after transformation): (0,0,-4.002001)
i have no idea how to interpret those values … is there another step needed to get screen coordinates? (and will they be ‘pixel-perfect’ -> one unit per pixel ? )
Greetz Goliat