Jump to content
  • Advertisement
Sign in to follow this  
bakel

OpenGL viewports openGL

This topic is 4950 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!