Jump to content
  • Advertisement

Archived

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

Tarique

Spotlight question.

This topic is 6935 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 been playing around with the spotlights and noticed a couple of things (This is in version 3.00. Not sure what's it's like in the later release as I can't seem to download the bloody thing!!!)

(1) If you rotate your camera, the spotlight rotates with you. Basically, the target position is relative to the camera position. I thought everything was supposed to be in world coords?

You can see this effect if you set the position of the spotlight to the camera position and set the target position to (0.0, 0.0, -10.0) (ie. why -ve I don't know!!!). You'll notice in this case that whereever the camera points the spotlight follows!

I thought that the target position was a world coord (as mentioned in one of Chris's earlier posts). This is in fact, not the case.

(2) The falloff value makes no difference to the spotlight. It seems to go on forever. I get objects in the distance being lit!

I thought it was me, but I had a look at the spotlight demo and this exhibits the same peculiarities.

Please let me know if this is fixed in the later releases!

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!