PDA

View Full Version : Darkness with Multitexturing



stryx
05-17-2002, 09:18 PM
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

blender
05-18-2002, 06:05 AM
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.

stryx
05-18-2002, 06:18 AM
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