View Full Version : change projection matrix every frame?

mister 48
06-06-2011, 06:34 AM

i'm developing some graphics for a game. to implement buttons and other UI elements i want to change my perspective view to Ortho2D view in order to render buttons at the very same display position every frame.

is it recommended to reset the projection matrix every frame? or can this cause any trouble?


06-06-2011, 06:47 AM
There is no such recommendation as you are free to implement anything you want. There is no problem specifying the projection matrix every frame and in some cases it's required (for example mixing 3d and 2d elements)

mister 48
06-06-2011, 06:51 AM
sounds good!

Thanks a lot!