gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > 3D textures help

#107817 - Cthulhu - Thu Nov 02, 2006 9:40 am

Hi!

First of all sorry for my bad english. I've been working for some time in a Dark Legions remake for the DS, i have a grid with textures for the map and a first version of the GUI (all the graphics are ripped from the original game data, I plan to add new graphics and models when i get all working), the problem comes because i render the map in 3d mode, i load all the textures and render them, but only 4 of the textures gets rendered, all the other textures are plain white, I tried to reduce the texture size from 128x128 (about 32kb) to 64x64 and 32x32 but it gets horribly rendered, the colors messed up and well, real weird. I've read in other post (dont remember where, sorry) that in the libnds the size of the textures is hardcoded to 128x128 so i cant use other sizes than that (and if i use, the textures gets... weird), is it true?

Any help will be appreciated!

By the way, i'm using PAlib but i'm planning to switch to "plain" libnds.

#107840 - ronbravo - Thu Nov 02, 2006 3:56 pm

I think this is the post you mean:

http://forum.gbadev.org/viewtopic.php?t=11295&highlight=texturesize

And I think the last reply on the post implies that you would need to go through the ndslib to change it.

#108187 - Payk - Mon Nov 06, 2006 12:31 pm

YOu can use 32x32,64x64 and 128x128 (maybe e 16x16 too).
256x256 didnt worked for me.
Even on 16bit mode you could load that 4 times.
Whitetexture always means that there was no data:
-Loaded on wrong way (cant figure out how you would do that...)
-Not enought vram
-No glbind was called before rendering the mesh

I hope that helps. If it still dont work you could try to contact me.
I am sure we can get that working ;)
(but we would parse to libnds!)

#108199 - Sausage Boy - Mon Nov 06, 2006 5:11 pm

I've used 256x256 texturs several times, it works fine.
_________________
"no offense, but this is the gayest game ever"