Jump to content
  • Advertisement
Sign in to follow this  
dale_x

OpenGL opengl background images

This topic is 4830 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 can somebody can help me i load imaage as background and i want when i press space to load another picture for background can somebody any idea how to do this thx

Share this post


Link to post
Share on other sites
Advertisement
Here's something you can try: Every frame, you're probably clearing the depth and frame buffers, right? Instead of clearing both, only clear the depth buffer, then disable the depth buffer and draw a rectangle with a texture of your background on it. It may take a little getting used to for the exact size, but if you understand billboarding, it shouldn't be a big deal. This will then be a background.

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!