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:
26
Extras/readblend/README.blendstruct
Normal file
26
Extras/readblend/README.blendstruct
Normal 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)
|
||||
Reference in New Issue
Block a user