Jump to content
  • Advertisement
Sign in to follow this  
Danny Gilbert

Lighting in scene

This topic is 4272 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 ! Something I don't understand. I have a scene with a sky box and a mapheight for mountains and river. When I want to shutdown the light (ambient light), only the sky box disapears in the dark and I can still the mountain and the river. My screen is not black as I expected. I want to add some flash light (directionnal light) but I need to remove first the ambient light. I don't use ambient light in my code. I don't work with light at all. Everything was shown and it was OK. But now, I want to use light effects. I use the command SetRenderState( D3DRS_LIGHTING, FALSE) to shutdown light Only the sky box disapears. Is there something about mapheight that I forgot ? What I understand is that I build mesh with normals (direction of the reflecting light) and I use textures. I expect that SetRenderState( D3DRS_LIGHTING, FALSE) remove all lights.

Share this post


Link to post
Share on other sites
Advertisement
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!