Jump to content
  • Advertisement
Sign in to follow this  
darkrapture

OpenGL Background Problem

This topic is 4219 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 guys. I am new in OpenGl so can i ask you for help? I am interested in that how can i draw a background in 3d dimension. For example if my scene is in the space, i want to see stars everywhere around me. Stars, suns, meteors will be texture but how can i draw it in this way? Thank you very much!

Share this post


Link to post
Share on other sites
Advertisement
I've only done it using premade textures I found online.

I imagine making the textures line up right would be quite difficult, but it would probable be easier in your case since it is a space background, and thus largely black.

Share this post


Link to post
Share on other sites
One more stupid question. When i start the program with that background (stars, suns and so on...), moving(for example) the camera back, soon i see the color(glClearColor) even in the cube (i want to mark that i am into the cube when the color appears). I think is some kind of buffer, but i don't know how to set it.

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!