Sign in to follow this  
medevilenemy

OpenGL OpenGL Lighting

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this