OpenGL: "Opacity maps"

Started by
4 comments, last by Someone 24 years, 2 months ago
Hi! I''m just wondering if it''s possible using some commands in OpenGL to mix 2 texture maps together. Meaning, I load an image as the base texture and then load another one to affect only one of the color components (i.e. like only loading it to affect the alpha values of the first texture)? Is there some command to achieve this? The only way I''ve figured out so far is to edit the actual bits of the first texture. Is there a better way?
Advertisement
You''ll have to use extensions in order to do multitexturing.

I believe the extension is EXT_ARB_MULTITEXTURE, or something like that. I haven''t come to extensions yet with OpenGL so I really don''t know how to use them.

You know where I can find documentation on the extensions? Can''t find any in the MSVC++ 6.0 Help...
try www.opengl.org
try OpenGL Developer Tools
SGI recently moved their extension registry to their open source site. Here''s the link:

http://oss.sgi.com/projects/ogl-sample/registry/

although ARB_MULTITEXTURE doesn''t seem to be there. Michael Gold (of NVIDIA) has a list of the extensions their chips support. It has a short description of ARB_MULTITEXTURE, a link to the spec, and an example program.

http://www.berkelium.com/OpenGL/NVIDIA/extensions.html



Scott Franke [druid-]
sfranke@usc.edu
druid-'s GL Journal
http://www.gamedev.net/opengl

This topic is closed to new replies.

Advertisement