Archived

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

lighting with glide

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

Hello

I´m trying to make a rendering engine which uses 'Glide' to show some objects.
This almost workes pretty good but there is still a problem.
To add some light I´m using the common algorithm to calculate the unit normal of a face then this vector is compared to the vector that comes from the light source to the object´s surface. Now the angle between these two vectors is calculated and the smaller the angle the 'more' the face is hit by the light. I´m not quite sure if this way
is the right one because sometimes it workes
and sometimes it doesn´t.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
It's not clear what is the problem with your lighting. My guess is that you're not using any estaplished algorithm. You might consider taking a look at the tutorials in the programming section/graphics/shading Phong Lighting and specular Highlights. It's well written.

Share this post


Link to post
Share on other sites