05-21-2003, 12:17 PM
I`m from slovakia ..
I try to make some game & i have some problems.
I like to know how do i create a polygon with 3 or more textures on it using multitexturing, not blending & multiple draving of the scene.
My source is working with 2 textures well.
If i try to work with 3, the second texture is not displayed & the light is turned off.
It is possible that my geforce2 mx 32mb does not suport it ??
I`m pasting the code of setting multitextures.
glActiveTextureARB(GL_TEXTURE0_ARB);
glEnable(GL_TEXTURE_2D);
glDisable(GL_BLEND);
glBindTexture(GL_TEXTURE_2D, textures[0].texID);
glTexEnvi( GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE, GL_MODULATE);
and so with GL_TEXTURE1_ARB & 2
Second problem is.. that I don`t know how to bring my OpenGL program to get higher framerates as 60 fps in fullscreen
I think that it hangs on setting the fulscreen mode,& therefore refreshrate of the monitor because i hear that FPS of OpenGL hangs on it. I have tried to set it thru dmScreenSettings.dmDisplayFrequency =..
but it is`nt working.. Help me please.. Mail me to kakao@host.sk ... Thanx 4 your help! +)
KAKAO
I try to make some game & i have some problems.
I like to know how do i create a polygon with 3 or more textures on it using multitexturing, not blending & multiple draving of the scene.
My source is working with 2 textures well.
If i try to work with 3, the second texture is not displayed & the light is turned off.
It is possible that my geforce2 mx 32mb does not suport it ??
I`m pasting the code of setting multitextures.
glActiveTextureARB(GL_TEXTURE0_ARB);
glEnable(GL_TEXTURE_2D);
glDisable(GL_BLEND);
glBindTexture(GL_TEXTURE_2D, textures[0].texID);
glTexEnvi( GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE, GL_MODULATE);
and so with GL_TEXTURE1_ARB & 2
Second problem is.. that I don`t know how to bring my OpenGL program to get higher framerates as 60 fps in fullscreen
I think that it hangs on setting the fulscreen mode,& therefore refreshrate of the monitor because i hear that FPS of OpenGL hangs on it. I have tried to set it thru dmScreenSettings.dmDisplayFrequency =..
but it is`nt working.. Help me please.. Mail me to kakao@host.sk ... Thanx 4 your help! +)
KAKAO