Okay, i want to get the projection matrix of the current camera in order to project some points of the scene by myself and render them with my own methods…the problems are :
- i always get an identity matrix with the MFnCamera::projectionMatrix method
- in fact, i always get an identity matrix whenever i want to retrieve a transformation matrix of an object or of anything else
- i don’t know how to link the projected points in the 3d world to the 2d image and the pixel coordinates.
If someone could at least tell me why i don’t get the projection matrix, that would be great ! thanks !