Premultiplying matrices with Perspective destroys them

Posted by Shadows In Rain on Game Development See other posts from Game Development or by Shadows In Rain
Published on 2013-06-24T20:02:46Z Indexed on 2013/06/24 22:32 UTC
Read the original article Hit count: 240

Filed under:
|
|
|

If I apply world_to_camera, perspective and camera_to_screen to my mesh, everything is okay. But if I premultiply given matrices (i.e. transform = world_to_camera * perpective * camera_to_screen) before applying, then it seems like only perspective has effect.

If it is important... My 3d framework was written from scratch (test project for job interview). But it works flawlessly, or at least I think so.

So, question. This is expected behaviour, or my implementation is wrong?

© Game Development or respective owner

Related posts about math

Related posts about matrix