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: let there be LIGHT.

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2002
    Location
    Greece
    Posts
    9

    let there be LIGHT.

    Hi.

    Imagine a torus and a icosahedron on a 3d scene. Say ,for example, that each facet of the above objects is rendered with a slightly different color so that the torus
    is colored with shades of blue and the icosahedron with shades of green.
    When i enable lighting on OpenGL , both objects look different from what they were colored.They are colored in a shade of gray.
    Is it possible to have lighting enabled and both objects be colored with their original color shades ?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    3,115

    Re: let there be LIGHT.

    When lighting is enabled, you use materials to set the color of the objects. Have a look at glMaterial.

Posting Permissions

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