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 4 of 4

Thread: Specular reflectance with textures.

  1. #1
    Intern Contributor
    Join Date
    Mar 2000
    Posts
    94

    Specular reflectance with textures.

    I can't seem to find a straight answer for specular reflectance using textures...I can get it to work without textures...but what is the procedure to add it to a polygon that has a texture onj it?

    I'm trying to get a little sparkle to an enviornment maped water surface...

  2. #2
    Intern Newbie
    Join Date
    Feb 2001
    Location
    Marlboro, MA, USA
    Posts
    40

    Re: Specular reflectance with textures.

    I hope this is the answer you're looking for:

    Normally, specular color is applied to a poly before texturing. So, texturing will basically, "cover up" specular highlights. (If you look at the big funky chart included in the OpenGL 1.2 Reference, you can see this order of operations).

    You can use the EXT_separate_specular_color extension so the specular highlights will show through your texture.

    Take a look at this demo in the ATI Radeon SDK: http://www.ati.com/na/pages/resource_cen...teSpecular.html

  3. #3
    Intern Contributor
    Join Date
    Mar 2000
    Posts
    94

    Re: Specular reflectance with textures.

    Thanks! That's exactly what I needed. This is a first for me using extensions. I wonder if this extension is available on other cards (for compatability)?

    Thanks again!

  4. #4
    Senior Member OpenGL Guru Humus's Avatar
    Join Date
    Mar 2000
    Location
    Stockholm, Sweden
    Posts
    2,444

    Re: Specular reflectance with textures.

    I think most cards have it.

Posting Permissions

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