• Advertisement
Sign in to follow this  

Lighting in scene

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