viewports openGL
Hi,
i made a 3D biljart game, and even better.. it works :D ...
now i wanted to make a OnScreenDisplay ( i just call it OSD). I tried to use viewports for this, but encountered a problem:
- the second vieport gives me every problem yha can imagine.. are there ppl who allready created a OSD to show stats meanwhile the game is running? and are there examples??
in short: how to make stat menu under in screen just like quake has
thnks in advance
You mean like a 2d view right. Like in NES games where time, coins, and lives are written apart and always on screen. Just switch to a 2d view and draw the text and textures after drawing everything else. Switch to the Ortho mode, reset the matrix, draw the stuff.
yeah use an orthographic for overlays or a 2d gui.
if you are trying to do Picture in Picture, you may want to use a scissor rect to define where each viewport is that way you aren't rendering unnecessary pixels.
whats biljart? like billards?
if you are trying to do Picture in Picture, you may want to use a scissor rect to define where each viewport is that way you aren't rendering unnecessary pixels.
whats biljart? like billards?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement