Jump to content
  • Advertisement

Archived

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

Ysaneya

OpenGL OpenGL lighting doesn't work :(

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

Well, my scene isn''t lit at all (the polygons are rendered as if lighting was disabled), and i don''t see what i''m missing. - lighting is activated, - i specify a normal for each vertex (the vector is already normalized), - i use a single light (GL_LIGHT1) using ambient and diffuse parameters, - the position of the light seems to be correct, - the material has been created, - i use GL_MODULATE when i bind the textures, - the model used is GL_SMOOTH. In addition i compiled another program which is using lighting and there is no problem. It ''s not a hardware/drivers problem.. Any suggestion ? Y.

Share this post


Link to post
Share on other sites
Advertisement

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