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: Darkness with Multitexturing

  1. #1
    Intern Newbie
    Join Date
    Mar 2002
    Location
    Vienna Austria
    Posts
    33

    Darkness with Multitexturing

    Hi, I've written a MapFile Loader for my format and display it with Blending or with Multitexturing, if it is supported.

    Why does the Multitexture way is, way darker than the blending method ?

    How can I change the method, the Textureunits are merged ?


    Thanks,
    StryX
    ***EOF***

  2. #2
    Junior Member Regular Contributor
    Join Date
    Mar 2002
    Location
    Pori, Finland
    Posts
    190

    Re: Darkness with Multitexturing

    Why does the Multitexture way is, way darker than the blending method ?
    I think it depends on the blend func you are using, but the ARB_multitexture (if that's what you are using) only does base*lmap calculations, so the result may be darker, becouse the brighest resulted color is the base texture's color.

  3. #3
    Intern Newbie
    Join Date
    Mar 2002
    Location
    Vienna Austria
    Posts
    33

    Re: Darkness with Multitexturing

    I've found out the poroblem:

    i had set GL_MODULATE in both texture units.

    To get the normal brightness I must use

    GL_REPLACE for the texture and GL_MODULATE for the Lightmap.

    It works now,
    Thanks anyway,

    StryX
    ***EOF***

Posting Permissions

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