#126595 - wykz - Wed Apr 25, 2007 2:10 am
I knows that palib not a big fan of 3d but i love it and I have a serious memory problem now when using palib and 3d.
When I use PA_3DCreateSpriteFromTex to lode more then one sprite together whit 3d texture (glTexImage2D) it will overwrite / remove my texture that I use for my 3D objects. Is there any way to restrict 3DCreateSpriteFromTex to only use (RAM_A_TEXTURE_SLOT0
VRAM_A_TEXTURE_SLOT1 or any other god solution to this problem.
I have tried to use 64x64 texture and 128x128 texture but it no different they just vanish
Some pic that shows the problems
1
Three 3D object and one 3D sprite working fine;
[Images not permitted - Click here to view it]
2
Six 3D object one sprite working fine
[Images not permitted - Click here to view it]
3
three 3D objects and two 3D sprits .. the texture is gone on the 3D objects
[Images not permitted - Click here to view it]
the nds files can be find here
http://ninja.ingame.se/nds/
gratefully for any help or hint
When I use PA_3DCreateSpriteFromTex to lode more then one sprite together whit 3d texture (glTexImage2D) it will overwrite / remove my texture that I use for my 3D objects. Is there any way to restrict 3DCreateSpriteFromTex to only use (RAM_A_TEXTURE_SLOT0
VRAM_A_TEXTURE_SLOT1 or any other god solution to this problem.
I have tried to use 64x64 texture and 128x128 texture but it no different they just vanish
Some pic that shows the problems
1
Three 3D object and one 3D sprite working fine;
[Images not permitted - Click here to view it]
2
Six 3D object one sprite working fine
[Images not permitted - Click here to view it]
3
three 3D objects and two 3D sprits .. the texture is gone on the 3D objects
[Images not permitted - Click here to view it]
the nds files can be find here
http://ninja.ingame.se/nds/
gratefully for any help or hint