Jump to content
  • Advertisement

Archived

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

Kingpin393

Problem with lighting

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

I have: ambient light set to 48, 48, 48 a point light at 0,0,0, with range 1000 a loaded .x file object at 0,0,-200 when i render the scene i want the side of the object facing away from the light to be darker, why isn''t it? i think it has something to do with the normals... thanks for any help Kevin

Share this post


Link to post
Share on other sites
Advertisement
You''re probably right about the normals.

Just to be sure - you are sure that you are looking at the object correctly? (meaning - you''re sure that you''re looking at what you think you''re looking at...)

Also, is any side being lit at all (is the light even on)?

Is some side being lit, but it''s the wrong side? That could be normals, or it could be that it is correct, but you are looking at it / thinking about it wrong.

Please post more details.

Share this post


Link to post
Share on other sites
i made the object in 3d studio max, and exported it, when i open the .x file i can see a list of normals, along with the coords and textures

Kevin

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I don''t want to sound like I''m stating the obvious so if I am, my apologies.
If its bright from all sides, lighting may not be turned on.

Share this post


Link to post
Share on other sites
I believe the answer is "Diffuse". Use the Diffuse lighting instead of Ambient. I think Ambient causes everything to light up, there''s no dark side.

Share this post


Link to post
Share on other sites
i tried playing with just about every combo of the lights spec, diff, and ambient light, to no avail, when i turn off ambient it makes the object dark...as it i turned off the light...

Kevin

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!