Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Lighting bug

This topic is 5313 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''ve got a problem with illumination in opengl. I started out with creating a terrain using GL_TRIANGLES and created the vertex normals, and positioned a single light above the terrain. That worked great. Then I created a stupid cube robot, made of glut cubes. Problem is, that once I put the robot in the scene, the lighting on the terrain suddenly shows only on half of the terrain. This happens when I move the camera with the mouse (implemented mouse movement function). any ideas?

Share this post

Link to post
Share on other sites

  • 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!