#90476 - delfare - Fri Jun 30, 2006 11:25 am
hi,
I have a texture problem :
I use this texture :
http://delfare.pizz.biz/ALTAsol.bmp
I use TexConv.exe to convert the texture and I get a .bin the .bin is correct when I test in a simple cube
but when I use more textures in more cube, I have a bug :
[Images not permitted - Click here to view it]
the demo is here : http://delfare.pizz.biz/ALTAbug.nds
I use this code to load my texture :
and I use this code to use texture :
_________________
If I speak badly, it's because I speak french and I am 15
PA 3d tutorial : http://delfare.pizz.biz
I have a texture problem :
I use this texture :
http://delfare.pizz.biz/ALTAsol.bmp
I use TexConv.exe to convert the texture and I get a .bin the .bin is correct when I test in a simple cube
but when I use more textures in more cube, I have a bug :
[Images not permitted - Click here to view it]
the demo is here : http://delfare.pizz.biz/ALTAbug.nds
I use this code to load my texture :
Code: |
int load_texture(u8 *data) { int textureID; glGenTextures(1, &textureID); glBindTexture(0, textureID); glTexImage2D(0, 0, GL_RGB, TEXTURE_SIZE_128 , TEXTURE_SIZE_128, 0, TEXGEN_TEXCOORD | GL_TEXTURE_WRAP_S | GL_TEXTURE_WRAP_T, data); return textureID; } |
and I use this code to use texture :
Code: |
glBindTexture(0, objet_texture[i]); |
_________________
If I speak badly, it's because I speak french and I am 15
PA 3d tutorial : http://delfare.pizz.biz