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

Thread: Specular hilight and texturemapping...

  1. #1

    Specular hilight and texturemapping...

    Is it standard for specular hilights with textures to not work right, or is it that implementations of opengl do not want to support correct specular hilights with texture mapping?

    Its a very annoying to set up your specular hilights correctly and then to put a texture on your object to find out the specular gets screwed up. Now it seems I am going to have to put specular highlighting on a transparent layer, does that sound like the only solution? (If I am going to do that maybe I should even go ahead and try doing per-texel lighting as well )

  2. #2
    Advanced Member Frequent Contributor cass's Avatar
    Join Date
    Feb 2000
    Location
    Austin, TX, USA
    Posts
    913

    Re: Specular hilight and texturemapping...

    Yes, correct specular color requires a separate pass in vanilla OpenGL. The extension below solves this problem.
    http://oss.sgi.com/projects/ogl-samp...ular_color.txt
    Cass Everitt -- cass@xyzw.us

  3. #3

    Re: Specular hilight and texturemapping...

    Thanks, I looked it up and implemented it, unfortunetly my video card doesn't support it, so I don't know if it really works, alternatively I set up the code to support drawing the specular of an object by redrawing the object black and using additive blending, and it looks much much better ...

Posting Permissions

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