Getting Camera Matrix projection

Hi,

How can I find the current final 4x3 camera matrix that projects 3d points to 2d according to the current camera parameters?

Thanks

Lucas

You mean the projection matrix of the camera?

…it’s the getProjectionMatrix() method… on Camera…

http://javadoc.jmonkeyengine.org/com/jme3/renderer/Camera.html#getProjectionMatrix()

I’m trying to write a function that takes a 3d point and returns the correspondent projected 2d point according to the current camera parameter. How would I do that? I want to re-create what the renderer does when it projects the 3d points to screen points.

Thanks

Do you know how to open the javadoc? It would save you a lot of time in the long run.

http://javadoc.jmonkeyengine.org/com/jme3/renderer/Camera.html#getScreenCoordinates(com.jme3.math.Vector3f)