Archived

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

basilisk

lighting problem

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
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