Jump to content
  • Advertisement
Sign in to follow this  
ic0de

Writing export scripts for blender

This topic is 2442 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!