View Full Version : Subimages??!?!
06-25-2001, 05:37 PM
Ive used glTexSubimage2d() to put a blank square in a texture by making a 2d array filled with zeros, but how do I put 1 texture on another texture to make something such as a explosion scar? The scar wont be transparent so I hope I dont need to resort to multitexturing...
[This message has been edited by iNsaNEiVaN (edited 06-25-2001).]
Everything you can do with multitexturing can be done with multiple passes. Multitexturing is used for better performance.
It seems to be several solutions to your problem.
1. Use a premade combination of the two textures.
2. Modify the texture at runtime
3. Render the scar as a second pass. Probably involves alpha testing and polygon offsets.
The first seems to be both the easiest and fastest way to do it.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.