View Full Version : multitexturing texture mess
05-04-2003, 05:29 PM
another question regarding multitexturing: the multitextured parts of the scene look fine, but all others are messed up.. is it possible that when you once use multitexturing in an app (which means, glMultiTexCoordARB instead of glTexCoord), you ALWAYS have to use it, using only texture 0 when there is only one? And how is the second texture disabled?
05-05-2003, 01:34 AM
As far as I know, you have to use multitex allways http://www.opengl.org/discussion_boards/ubb/frown.gif But, usually all you need is glDisable/glEnable neded unit, that's not so hard http://www.opengl.org/discussion_boards/ubb/biggrin.gif
BTW, you mentioned something about glmultitex notation. I am going to move my project to glDrawArrays, but I have multitexture there http://www.opengl.org/discussion_boards/ubb/frown.gif I can't use glTexCoordPointer for 2nd texture, could you please refresh my memory, what was syntax for multitexture pointer arrays glMultTexPointer, glMultCoord?
05-10-2003, 10:02 PM
I know its kinda old and you both probably already figured out whatever you needed, but I just figured it out, so I figured I'd share just in case. http://www.opengl.org/discussion_boards/ubb/smile.gif
Once you start using glActiveTextureARB, it appears you are stuck using it, but you can disable each of the ARB texture units by calling glActiveTextureARB with the texture unit you want to disable and then calling glDisable(GL_TEXTURE_2D). It will only disable that ARB texture unit. Once all ARB texture units are disabled, you can call the glDisable(GL_TEXTURE_2D) once more to disable GL_TEXTURE_2D completely.
Call glClientActiveTextureARB with the ARB texture unit you want the multitexcoord array to be for and then call glTexCoordPointer. Call both for each ARB texture unit you need to use.
[This message has been edited by shinpaughp (edited 05-11-2003).]
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.