View Full Version : Multitexture without blending

03-13-2002, 01:08 AM

I have a question to You, I have thought that You will be able me to help, if You not against.
I use GL_ARB_multitexture for imposition of the second texture on polygon.
This works well, but only for lightmaps.

I want to hear possible with use GL_ARB_mutlitexture:

1) Do the second texture not blending and possible control this blending?

2) Possible impose on polygon environment texture, as the second texture
and do her blending or on the contrary?

I have advised to use GL_EXT_texture_env_combine.
I tried to use this extension, but I have not got the due result.

Please if You know as this do, help me, if possible that show this
in the manner of source code.

Sorry for my English.

Tom Nuydens
03-13-2002, 01:19 AM
What is the point of using multitexture and NOT blending the two textures? If the second texture just replaces the first, why would you use the first at all?

I'll assume that this isn't really what you meant to ask, so can you explain precisely what it is you're hoping to achieve?

-- Tom

03-13-2002, 01:24 AM

One texture with alpha channel (transparent)
Second texture with no blending


One texture with alpha channel (transparent)
Second texture with blending
Third texture with env mapping no blending

Sorry if You not understand

03-13-2002, 01:37 AM
I think you do not understand what blending is. I suggest you get some documentation about it.

Basically blending enables you to "mix" two colors (textures) according to a blending function (add, subtract, multiply, ...).

If your application does not need to mix two textures, then you do not need blending but you do not need multitexture either.

I must say I did not understand your examples: can you explain them more precisely ?



03-13-2002, 02:12 AM
If you can, please run Quake III Arena
and start level q3dm10. See on env effects on walls.

How me do this with multitexture extensions like ARB.

Good examples, i think.

Tom Nuydens
03-13-2002, 06:15 AM
Use glTexEnv*() to configure the way multiple textures are combined. Here's a list of possible operations from the GL_ARB_texture_env_combine spec (which you should read carefully):

MODULATE Arg0 * Arg1
ADD Arg0 + Arg1
ADD_SIGNED_ARB Arg0 + Arg1 - 0.5
INTERPOLATE_ARB Arg0 * (Arg2) + Arg1 * (1-Arg2)

For environment maps, you'll want GL_ADD.

-- Tom

03-14-2002, 01:11 AM
Very big thanks.

03-14-2002, 08:47 AM
I'm also interested about this topic and would like know also how to controll blending with multitextures?