Thread: Shininess lighting GLUT OpenGL

  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    37

    Shininess lighting GLUT OpenGL

    Hi peeps,

    Ive drawn shapes using GL_QUADS and TRAINGLE_FAN. Its my 3d checkers game. The whole game is completed and i just want to add shininess to the game to make it look more realistic. Ive seen so many examples and i just cant get it to work. I've got rid of my lighting setup completely and i was hoping someone could help me through the setup of of the light and shininess. Im using c++ and OpenGL with GLUT. If any one would like to see the source code i will send it thru on request.

    I have a main.cpp where my GL environment is setup. I draw the shapes in Square.cpp and Draught.cpp but call the draw methods elsewhere. If anyone could help it would be great.

    Thanks

  2. #2
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    You should look into normals. Basically normals are vectors that allow light to realistically interact with a particular shape. http://en.wikipedia.org/wiki/Surface_normal

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OpenGL lighting
    By Zishaan in forum Game Programming
    Replies: 6
    Last Post: 04-21-2007, 03:24 PM
  2. OpenGL lighting
    By BabyG in forum Game Programming
    Replies: 3
    Last Post: 08-29-2004, 09:58 AM
  3. errors with opengl & glut in windows
    By korbitz in forum Game Programming
    Replies: 12
    Last Post: 03-14-2004, 02:54 PM
  4. SDL or GLUT for Opengl?
    By drdroid in forum Game Programming
    Replies: 1
    Last Post: 07-17-2003, 01:54 AM
  5. need help with opengl lighting!!
    By genghis37 in forum Game Programming
    Replies: 1
    Last Post: 06-22-2002, 12:28 AM