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 > DS/libnds: How to create display lists (.h or .bin)?

#140213 - hi2u - Fri Sep 14, 2007 7:34 am

I want to use models created in 3ds Max and/or Maya in my NDS games.

When I compile a 3D example application (a NeHe conversion, I think), a display list stored as .bin in the data folder seems to be converted into a .h file in the include folder.

I have used display lists in OpenGL, but not much. Though, as far as I can remember, those I created where generated as the program was running.

How do I create these premade display lists? I tried using this, but using models I exported with it makes No$gba crash and iDeaS doesn't show the models.

Thanks in advance.

Edit: Anyone got a working link for this?
_________________
hi2u

#140227 - Peter - Fri Sep 14, 2007 12:56 pm

hi2u wrote:
I want to use models created in 3ds Max and/or Maya in my NDS games.

i started to write a mesh converter, see Mesh Conversion Tool (ogre2n3d.exe). The source code is included, but it's nothing really special yet, but worked so far for me. I have a newer version on my computer that supports more commands, in case you want it, let me know.

Here is a brief overview how to export/convert a 3ds max object into a N3DCMDSTREAM. The N3DCMDSTREAM is basically just a displaylist with a header. If it's of interest I can add an option to leave the header away or you modify the source code yourself.
_________________
Kind Regards,
Peter