Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: 3d shading

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2004
    Posts
    3

    3d shading

    How can I do 3d shading? When I draw some verteces and start rotating the image there is now shading its all one color.

  2. #2
    Intern Contributor
    Join Date
    Feb 2004
    Location
    Gainesville, Florida
    Posts
    50

    Re: 3d shading

    hi,
    the answer to your problem lies in NORMALS. you see, each vertices of the object have something known as normals that is perpendicular to it. this describes the lighting calculations as the light lits each vertices. lighting is a pretty complex subject. so you have face normals and vertex normals. the face normals shows the object faceted and vertex normals renders the object in a smooth kind of way(this is because, you average the normals of the surround normals sharing the same vertices).

    you can find a lot of these details in the red book. or just do simple google search.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •