Jump to content
  • Advertisement

Archived

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

colinisinhere

Limiting light area?

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

Advertisement
also, set it to a point light, from there you can set the light's radius and other things...

both nehe.gamedev.net and gametutorials.com fail to teach you lights in detail. there are three different types, spots, points, and directional. spots are spot lights, just like a spot light in a theater pointing at an actor on the stage. Point lights are like light bulbs in your house. According to position, radius, and some other values, the light will light things around it depending on these values. Directional lights are like a huge light such as the sun, and only the surfaces that are facing that direction will be lit.

Check out the open gl red/blue books to get some insight to what type of GLenum params you can use in the glLightfv (dont know what the other's ones are for.. (glLight,glLightv,etc..)) function

also dont forget that look at must happen before moving lights around

[edited by - fireking on October 13, 2003 3:54:22 PM]

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.

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!