Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi, sorry for maybe a stupid question. How to convert vector, for example (0,1,0), from camera space to word space ? I have tried several options and nothing really works. For example, when I target camera at (0,1,0) cam.setTarget(new CL3D.Vect3d(0, 1, 0)); and use inverted ViewMatrix var m = cam.ViewMatrix; I get result = (0, 0.1, 1) instead of (0,0,-1) |
||||
|
Hm, difficult to say, maybe you are using the view matrix before it is set during animation? For what do you need this? If you want to use it to get positions on the screen in 3d space for example, it would be simpler to use the CopperLicht.get3DPositionFrom2DPosition() method, for example. |
||||
|
Thanks very much. CopperLicht.get3DPositionFrom2DPosition() is working and just what I was looking for. |
|