Results 1 to 4 of 4

Thread: Power of Light

  1. #1
    Guest

    Power of Light

    Hi,

    How can I set a power of light that I put the light source in center of room and I cant see the door, but if I incresse power of light and I'll see the door? I dont mean that power of light it is a RGBA tab, Iwant that power of light is a distance from light source to place wchich you I can see (it's lighted)

  2. #2
    Senior Member Regular Contributor
    Join Date
    Jul 2001
    Posts
    352

    Re: Power of Light

    Not sure I understand what you want, but when specifying a light's color, you may use components >1.
    For example, for a very bright white color, you can specify its color as 10,10,10 and it'll be 10x brighter than an "usual" 1,1,1 white light.

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

    Re: Power of Light

    Youd have to do your own lighting calculations since im pretty sure OpenGL lighting does not take into account distance from the lightsource when determining vertex colours.
    :: Sleep is a poor substitute for caffeine ::

  4. #4
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: Power of Light

    Sure it takes distance into account when calculating lighting. It's just that the default attenuation parameters are set so that you don't get any fading over distance. For fading over disatnce, set linear and/or quadratic attenuation factors to something other than zero.

Similar Threads

  1. non power of two textures
    By dukey in forum OpenGL: Advanced Coding
    Replies: 6
    Last Post: 02-20-2011, 05:35 AM
  2. Non-power-of-two 3D textures
    By dobradusa in forum OpenGL: GLSL
    Replies: 1
    Last Post: 11-21-2006, 03:35 AM
  3. non-power of two performance?
    By canuckle in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 07-21-2005, 08:25 PM
  4. Non Power Of 2 Texture
    By powerpad in forum OpenGL: Advanced Coding
    Replies: 10
    Last Post: 06-05-2005, 06:41 AM
  5. Textures: To the Power of 2 or Not to the ...
    By 31337 in forum OpenGL: Advanced Coding
    Replies: 12
    Last Post: 05-06-2003, 10:35 PM

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