Jump to content
  • Advertisement


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


lighting with glide

This topic is 7024 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´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

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