Jump to content
  • Advertisement
Sign in to follow this  
simpan22

OpenGL beginner lighting(?) problem.

This topic is 2529 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

hello!

i'm a total beginner at OpenGl. I'm doing a simple "testgame" and i'm really stuck:

Ive made an object called Entity that contains vertecies for a cube. it worked just fine to render it until i tried to implement ligting.now some sides of the cube appears transparent (when you place more than one in the scene)? i've tripplechecked the facenomals and they are all of length 1.

when i try it with only one cube in the scene it works fine.

all answers appreciated!

Share this post


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