PDA

View Full Version : Blender Export Script



wraggster
March 10th, 2008, 19:30
via drunkencoders (http://www.drunkencoders.com/)

News from Dovoto


A python script which exports vertex and normal data as DS display list data in c source file format.

Excerpt from site:

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.

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)

http://hackerpilot.org/dsblender.php