miko
03-02-2003, 07:27 AM
i rendered a single 3d textured tri and... my engine slowed from 65 fps to 20fps http://www.opengl.org/discussion_boards/ubb/frown.gif that texture was 16x16x16. what could be wrong? my code looks like this:
glEnable(GL_TEXTURE_3D);
glBindTexture(GL_TEXTURE_3D, my1st3dtex);
glBegin(GL_TRIANGLES);
glNormal3f(0,1,0);
glTexCoord2f(0,0);
glVertex3f(1.5,0,-5);
glTexCoord2f(1,0);
glVertex3f(.5,.5,-5);
glTexCoord2f(0,1);
glVertex3f(.5,0,-5);
glEnd();
glDisable(GL_TEXTURE_3D);
...and this small piece of code blows my engine to hell
and one more question: how are 2d and 3d textures combined together. because when i remove that enable/disable each glBingTexture(GL_TEXTURE_2D,*) does not seem to have any effect...
i'm running win98, geeforce2mx, my window is 640x480 on 1024x768 16 bit color desktop...
so that's the problem, if you have some idea, plz tell me...
glEnable(GL_TEXTURE_3D);
glBindTexture(GL_TEXTURE_3D, my1st3dtex);
glBegin(GL_TRIANGLES);
glNormal3f(0,1,0);
glTexCoord2f(0,0);
glVertex3f(1.5,0,-5);
glTexCoord2f(1,0);
glVertex3f(.5,.5,-5);
glTexCoord2f(0,1);
glVertex3f(.5,0,-5);
glEnd();
glDisable(GL_TEXTURE_3D);
...and this small piece of code blows my engine to hell
and one more question: how are 2d and 3d textures combined together. because when i remove that enable/disable each glBingTexture(GL_TEXTURE_2D,*) does not seem to have any effect...
i'm running win98, geeforce2mx, my window is 640x480 on 1024x768 16 bit color desktop...
so that's the problem, if you have some idea, plz tell me...