GUI rendering over game?

Started by TechNick6425, August 22, 2013, 17:06:36

Previous topic - Next topic

TechNick6425

I was just wondering if I rendered a 3D scene, and then rendered the 2D GUI, would the GUI stay on the screen if the player moved around?

Cornix


TechNick6425

I don't really understand how that is done, I'm just wondering if what I said is what I would do.

Detrox

If you, in your render loop, set the matrix to 3d perspective or whatever you're using, then translate it to the player, then reset the matrix to 2d ortho, the text would not move, since the matrix is reset so not effected by any translation used for the player.

I'm not sure if this awnsers what you ment, but hopefully it helps ;)