Results 1 to 3 of 3

Thread: multitexturing texture mess

  1. #1
    Senior Member Frequent Contributor
    Join Date
    Apr 2003

    multitexturing texture mess


    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?


  2. #2
    Senior Member Frequent Contributor
    Join Date
    Nov 2002

    Re: multitexturing texture mess

    As far as I know, you have to use multitex allways But, usually all you need is glDisable/glEnable neded unit, that's not so hard
    BTW, you mentioned something about glmultitex notation. I am going to move my project to glDrawArrays, but I have multitexture there I can't use glTexCoordPointer for 2nd texture, could you please refresh my memory, what was syntax for multitexture pointer arrays glMultTexPointer, glMultCoord?

  3. #3
    Senior Member Frequent Contributor
    Join Date
    Jan 2003

    Re: multitexturing texture mess

    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.

    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).]

Similar Threads

  1. Possible shader mess up
    By oliveryas01 in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 11-15-2015, 10:10 AM
  2. Co-ordinates mess up
    By programmer17 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 01-09-2012, 12:06 PM
  3. Rage - what a mess
    By H. Guijt in forum OpenGL: User Software
    Replies: 27
    Last Post: 12-14-2011, 09:26 AM
  4. Rendering mess (white box texture error)
    By blessman11 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-18-2011, 01:24 PM
  5. Rotating mess
    By Plüss Roland in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-02-2001, 01:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean