Results 1 to 6 of 6

Thread: OpenGL Lighting!

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2000
    Location
    Naples,FL,USA
    Posts
    8

    OpenGL Lighting!

    Hi all! I have a quick question. I was wondering if OpenGL really limits the number of lights you can have in a scene to 8..? Does this seem like a small number, or is it just me? Thanks!
    -Shane Parker

  2. #2
    Guest

    Re: OpenGL Lighting!

    Yes and no.....

    OpenGL guarantees at least 8 lights but on some hardware there is more..... (not on many mind you)

    the real limitation is that you may only use 8 (or hardware limit) lights at a time not in a program...

    This does not seem too limiting in my opinion espcecially if you want to maintain realtime performance...

  3. #3
    Junior Member Newbie
    Join Date
    Dec 2000
    Location
    Naples,FL,USA
    Posts
    8

    Re: OpenGL Lighting!

    Hum. Thanks! I suppose if you're flexible and unload lights and such when they're not needed, it really doesn't matter...
    -Shane Parker

  4. #4
    Guest

    Re: OpenGL Lighting!

    right, but by unloading I think you mean redefining (if you want to use it eslewhere) or turning it off if it is unused in the particular part of a scene

  5. #5
    Senior Member Regular Contributor
    Join Date
    Jun 2000
    Location
    B.C., Canada
    Posts
    367

    Re: OpenGL Lighting!

    Yes, 8 lights may not seem like many.

    But the fact is that usually by about 4 or so lights the scene is completely saturated in some areas, and adding more lights doesn't improve it at all; you just get big white spots where the scene is too bright.

    Like you both have been saying, you can use virtual lights and only turn a light on if it has a noticeable effect on an object.

    j

  6. #6
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Sydney, NSW, Australia
    Posts
    426

    Re: OpenGL Lighting!

    Just out of interest MrShane, are you ripping off my name? Not that I really care
    :: Sleep is a poor substitute for caffeine ::

Similar Threads

  1. Lighting in OpenGL ES
    By demonpants in forum OpenGL ES
    Replies: 0
    Last Post: 04-10-2009, 06:08 PM
  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