Jump to content
  • Advertisement


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


Lighting bug

This topic is 5400 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!