Jump to content

  • Log In with Google      Sign In   
  • Create Account


lighting with glide


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Zeus   Members   -  Reputation: 122

Like
Likes
Like

Posted 28 July 1999 - 11:13 AM

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.



Sponsor:

#2 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 28 July 1999 - 11:13 AM

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.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS