Skip to main content
GameDev.net gamedev.net
🔒 Locked

Writing export scripts for blender

Started by Jake S. C++ Dec 12, 2011 at 1:07 AM 0 replies 2.3k views
Original Post
Jake S. C++
Jake S. C++
Does anyone know any tutorials for writing an export script for blender 2.5/2.6, I need write a script to export 3d models for my game. If anyone knows an existing script that I can modify to fit my purposes could they post a link, my format is pretty simple:

For each face output three vertices:



-0.5 -0.5 -0.5 0.0 0.0 0.0 -1.0 0.0
0.5 -0.5 -0.5 0.5 0.0 0.0 -1.0 0.0
-0.5 -0.5 0.5 0.0 0.5 0.0 -1.0 0.0



each line represents a vertex and the attributes of said vertex in the order: x y z u v nx ny nz, where the last three numbers represent the normal vector.

It does other stuff like define textures and normal maps but the script doesn't need to do that as i could input them manually.

So once again my question is where could I find a tutorial to write blender exports scripts or does anyone know of a similar existing script that I could modify?
MGB
MGB
Probably a good idea to look at the bundled exporter scripts to start (i.e. the DirectX one).

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.