Nintendo DS Blender Export Script
This is a Python script for exporting 3d models into a format that the Nintendo DS can understand. This script outputs a C source code file that can be compiled and linked into your DS homebrew application. See the DrunkenCoders Documentation on the format of the display list.
Use
Use the export script to save your model to a C file. Keep in
mind that the DS will not handle high-polygon meshes well. Place
this file inside your "source" directory (assuming that your
project follows the directory structure of the ndslib examples).
Then create a .h file that looks like this:
const extern u32 Suzanne[]; where "Suzanne" is the
name of your mesh. Check the .c file to make sure they match.
Then, inside of your code, you can just call
glCallList((u32*)Suzanne); to display the model.
(Again being sure to replace "Suzanne" with the actual name of
your mesh)
Notes
This is far from complete as of this writing (3/8/08). Only the triangles and normals of the mesh are exported. Texturing and colors will come later.