i have a 2D texture that i want to be mapped onto my DL. i am having some problems. the problem is that the half the texture is being repeated. i am using the GL_REPEAT option, but i guess if i specify the 4th parameter of the coefficient right, then i dont think it should make any difference right? i have used texgen with 1D textures before and this is the first time i am using it with 2D textures. herez a piece of code that might help
currentCoeff(0) = 1 / (dblXmax - dblXmin)
currentCoeff(1) = 0#
currentCoeff(2) = 0
currentCoeff(3) = (dblActualXMin) * currentCoeff(0)
currentCoeff1(0) = 0#
currentCoeff1(1) = 1 / (dblYmax - dblYmin)
currentCoeff1(2) = 0#
currentCoeff1(3) = (dblActualYMin) * currentCoeff1(1)
glBindTexture glTexture2D, 11
glTexParameteri glTexture2D, tpnTextureWrapS, GL_REPEAT
glTexParameteri glTexture2D, tpnTextureWrapT, GL_REPEAT
glTexParameteri glTexture2D, tpnTextureMagFilter, GL_LINEAR
glTexParameteri glTexture2D, tpnTextureMinFilter, GL_LINEAR
glTexImage2D glTexture2D, 0, GL_LUMINANCE8, 256, 256, 0, tiLuminance, pxlFloat, intTexture(0)
glTexGeni GL_S, GL_TEXTURE_GEN_MODE, tgmObjectLinear
glTexGenfv GL_S, tgObjectPlane, currentCoeff(0)
glTexGeni GL_T, GL_TEXTURE_GEN_MODE, tgmObjectLinear
glTexGenfv GL_T, tgObjectPlane, currentCoeff1(0)
glTexEnvf tetTextureEnv, tenTextureEnvMode, tepDecal
thank u