Visualc++
09-01-2002, 03:13 PM
i need move the texture in the scene, i try that:
glLoadIdentity();
glMatrixMode(GL_TEXTURE);
glTranslatef(textras,textras,textras);
glMatrixMode(GL_MODELVIEW);
glFlush();
glLoadIdentity();
glColor4d(0,0,0,0.5);
glBlendFuncGL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
glRotatef(lookupdown,1.0f,0,0);
glRotatef(sceneroty,0,1.0f,0);
glTranslatef(xtrans-50, ytrans-1, ztrans-550);
glRotatef(-90.0f,1.0f,0.0f,0.0f);
glRotatef(90.0f,0.0f,0.0f,1.0f);
glScalef(2.0f,2.0f,2.0f);
glCallList(AguaG);
glFlush();
the problem is this code move all the textures in the scene, not only the textures in the list, i try with glpop and glpushmatriz but not work.... what is wrong?
glLoadIdentity();
glMatrixMode(GL_TEXTURE);
glTranslatef(textras,textras,textras);
glMatrixMode(GL_MODELVIEW);
glFlush();
glLoadIdentity();
glColor4d(0,0,0,0.5);
glBlendFuncGL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
glRotatef(lookupdown,1.0f,0,0);
glRotatef(sceneroty,0,1.0f,0);
glTranslatef(xtrans-50, ytrans-1, ztrans-550);
glRotatef(-90.0f,1.0f,0.0f,0.0f);
glRotatef(90.0f,0.0f,0.0f,1.0f);
glScalef(2.0f,2.0f,2.0f);
glCallList(AguaG);
glFlush();
the problem is this code move all the textures in the scene, not only the textures in the list, i try with glpop and glpushmatriz but not work.... what is wrong?