Jump to content
  • Advertisement
Sign in to follow this  
f001error

Moving Directional Light's not working in DX

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

G'day I'm trying to set up a moving directional light that just cycles between (0,1,1) and (0,-1,1). I've got the vector calculations working fine, and the _D3DLIGHT9 structure is being updated properly but the light doesn't appear to move. I also tried calling SetLight() each time I update the vector, but that doesn't seem to change anything either. Any ideas ?

Share this post


Link to post
Share on other sites
Advertisement
Directional lights are just that--directional. They have no position, so you can't move them. You can only change their direction. Thus, it makes sense to use them for far-away light sources, like the sun.

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!