Jump to content
  • Advertisement

Archived

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

basilisk

lighting problem

This topic is 6031 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, i''m rotating the camera a fixed distance around the centre of a square in the z-x plane. The light source is above the centre of the square along the y axis. As i rotate around, the square gets darker or lighter. This dosen''t seem to make sense since the camera is always a fixed distance from the square and the light should be right about the centre of the square. Has anyone else encountered this problem? any help would be appreciated, thanks..

Share this post


Link to post
Share on other sites
Advertisement
It's probably because you are using per-vertex lighting. Either use perpixel lighting, or break the geometry into small pieces.

. . .

Or you're normals are wrong or not normalized.

Edited by - smart_idiot on November 12, 2001 10:39:07 AM

Share this post


Link to post
Share on other sites
thanks,

it turns out that i wasn''t setting the lighting properly, i misplaced a 1 instead of a zero so i had it setup as a light at a finite point rather than a global style lighting from infinity.

-basilisk, the normal kind of idiot

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!