Results 1 to 4 of 4

Thread: Specular reflectance with textures.

  1. #1
    Member 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
    Junior Member Newbie
    Join Date
    Feb 2001
    Location
    Marlboro, MA, USA
    Posts
    25

    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
    Member 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,342

    Re: Specular reflectance with textures.

    I think most cards have it.

Similar Threads

  1. Specular and pow
    By satan in forum OpenGL: GLSL
    Replies: 9
    Last Post: 06-02-2008, 08:57 AM
  2. Problems Calculating Surface Reflectance in Shader
    By CelticDaddio in forum OpenGL: GLSL
    Replies: 6
    Last Post: 11-15-2006, 08:34 PM
  3. specular lighting + 1D textures
    By mithun_daa in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 06-02-2004, 10:54 AM
  4. Specular Reflectance
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-22-2001, 03:39 AM
  5. Specular Map
    By paolom in forum OpenGL: General
    Replies: 4
    Last Post: 02-19-2000, 06:57 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