Results 1 to 3 of 3

Thread: lighting complications

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2002
    Posts
    5

    lighting complications

    hi
    i think i understand the basics of opengl lighting, but i'm getting all sorts of nasty side effects
    in particular, to animate the motion of my character i cycle through frames (using display lists that are generated from 3d models)...and when it cycles the lighting of the world and character turns completely off, or sometimes just the lighting of the character turns off

    is it because i'm calling glDisable(GL_VERTEX_2D) in some places? why would enabling/disabling texturing have an effect on lighting?
    or if this is way off, then what else could have this aftereffect on my lighting? i'm never calling glDisable(GL_LIGHTING)...

    thanks as always for your help

  2. #2
    Member Contributor
    Join Date
    Nov 2002
    Posts
    96

    Re: lighting complications

    1) Make sure you have modulating on... DON'T turn on GL_REPLACE with glTexEnv. Lighting is a modulation sort!

    2) make sure you have the lighting normals defined properly.

    3) ..... eh... that's all I can thing of so far...

  3. #3
    Junior Member Newbie
    Join Date
    Nov 2002
    Posts
    5

    Re: lighting complications

    sorry i meant glDisable(GL_TEXTURE_2D) not vertex

Similar Threads

  1. Per-Vertex Lighting vs. Per-Pixel Lighting
    By New2CPP in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-14-2010, 09:11 AM
  2. How to introduce Specular and Diffuse lighting into Bumped lighting
    By Liable in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 12-06-2004, 05:48 PM
  3. Lighting problem (opengl + shader lighting)
    By ox1d_47 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-19-2004, 09:43 PM
  4. lighting back facing triangles _without_ using two sided lighting
    By Nicolas Lelong in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 02-07-2003, 03:05 AM
  5. About lighting (not OpenGL lighting, but general lighting)
    By Anonymous Coward in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-04-2001, 09:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean