Results 1 to 2 of 2

Thread: Lighting

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

    Lighting

    Why there is a limited number of availble light sources that can be used into scene, and is there any way to avoid this limitation?

  2. #2
    Super Moderator OpenGL Guru imported_dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,966

    Re: Lighting

    There are practical limits to what cost effective hardware can provide in a fixed function pipeline. In addition times have changed and the minimum requirements for lights were set at 8 a decade ago. So the limit is not absolute it is a minimum requirement for OpenGL conformance.

    glgetintegerv with a GL_MAX_LIGHTS token will tell you how many lights are supported, with a minimum of 8 guaranteed by OpenGL.

    This presentation and example code by Mark Kilgard shows how to squeeze more lights into a scene than the available OpenGL lights:
    http://www.opengl.org/resources/code/rendering/mjktips/VirtualizedLights/Virtua lizedLights.html



    [This message has been edited by dorbie (edited 03-03-2004).]

Similar Threads

  1. 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
  2. Lighting problem (opengl + shader lighting)
    By ox1d_47 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-19-2004, 09:43 PM
  3. debug lighting vs release lighting
    By haust in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 10-30-2003, 10:43 AM
  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