Jump to content
  • Advertisement
Sign in to follow this  
medevilenemy

OpenGL OpenGL Lighting

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

For a few weeks now, i've been trying to add lighting to my game Project Phoenix (medevilenemy.f2o.org in the products section). So far, I havent been able to get it to work at all. The ships/torpedos are all OBJ models, the particles are all quads, and the background is a big textured quad. Anyone have any ideas/suggestons? [Edited by - medevilenemy on July 20, 2006 12:45:13 PM]

Share this post


Link to post
Share on other sites
Advertisement
Well, what have you tried?

I hope you know all about GL_LIGHTING and the eight GL_LIGHTx (x = 0 to 7) as well as the glLight{i,f,fv} GL commands. If not, read up on those.

If you want good lighting, I suggest you look into GLSL (shaders) and per-fragment or per-vertex lighting.

Share this post


Link to post
Share on other sites
I know about GL_LIGHTING and the predefined lights, and i've tried them. No effect. It might have something to do with the normals in my models, but I really have no clue.

Share this post


Link to post
Share on other sites
Can you tell more about the problem you have?

Is everything ok when you don't use lighting?
Do you define your materials correct?
Are you using only spotlights? Because there can be a problem with them (and with specular highlights) when used with Gouraud shading and large polygons.

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!