Added ReadBlend, a data extraction API for Blender's .blend files

This can come in handy, to author physics data for Bullet from Blender, and directly get the physics data straight from the .blend file

Thanks a lot to Adam D. Moss, to digg up this code and make it available under the MIT license
It was mentioned several years ago in this thread:
http://archives.seul.org/linuxgames/Apr-2005/msg00002.html
This commit is contained in:
erwin.coumans
2008-10-06 03:53:51 +00:00
parent 30a13d5b5d
commit 2998d2a8f3
9 changed files with 3511 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
ReadBlend, a data extraction API for Blender's .blend files
quick notes on the logical .blend file format as presented
by readblend:
BLENDFILE
|
|--BLENDFILE_VERSION
|
|--NUM_BLOCKS ... number of blocks in the file
|--BLOCK[NUM_BLOCKS] ... array of blocks
|
|--BLOCK_TAG ... general 'DATA', otherwise specialized type
|
|--OBJECT_TYPE ... the block is an array of objects of this type
|--OBJECT_COUNT ... this is the number of objects in the block
|--OBJECT[OBJECT_COUNT] ... array of objects
|
|--OBJECT
an OBJECT...
= ATOMIC type (uchar, float, etc)
or
= STRUCTURE (array of assorted OBJECTs, nested)
or
= POINTER (a reference to another BLOCK)