Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 8 of 8

Thread: Default lighting behavior?

  1. #1
    Member Regular Contributor
    Join Date
    Sep 2002
    Posts
    384

    Default lighting behavior?

    I can't seem to find a vertex shader that simply mimics OpenGL's default lighting behavior. This is the first step to switching my renderer over to shaders. There are other things I want to do, but first I need to just get the basic lighting to work the same.

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    May 2005
    Location
    Prague, Czech Republic
    Posts
    924

    Re: Default lighting behavior?

    Look at the ShaderGen tool created by 3Dlabs.

  3. #3
    Member Regular Contributor
    Join Date
    Sep 2002
    Posts
    384

    Re: Default lighting behavior?

    Oh man, you don't know how close I was to killing myself before you came along.

  4. #4
    Member Regular Contributor
    Join Date
    Sep 2002
    Posts
    384

    Re: Default lighting behavior?

    Hmmm...I'm getting there. GLSL is pretty funky to use.

  5. #5
    Senior Member OpenGL Guru knackered's Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    3,032

    Re: Default lighting behavior?

    the understatement of the year.
    Knackered

  6. #6
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: Default lighting behavior?

    Can some of you native english speakers explain what 'funky ' really mean ?

    I read up and down this :
    http://www.answers.com/funky

    But I can't understand what you mean with :
    "GLSL is pretty funky to use"

  7. #7
    Junior Member Newbie
    Join Date
    Apr 2002
    Location
    Houston, Tx, USA
    Posts
    25

    Re: Default lighting behavior?

    1. The oldest meaning is "smells bad", as explained on the /funky link.

    2. In the 1960's and 70's, applied to music it meant "cool" and applied primarily to jazz and soul music. Do you remember "Funky Town" or "play that funky music..?"

    3. When used in a technical context, it means that something is not quite what it should be or does not work as you would expect or want it to.. the thing kinda "stinks". Remember the first definition is "smells bad."

  8. #8
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: Default lighting behavior?

    Ok thanks a lot, so there are basically two meanings, one (generic) is negative, the other (music) is positive... I only knew the later

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •