.blend File Format

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
andygeers
Posts: 0
Joined: Wed Feb 15, 2006 10:30 am
Location: London
Contact:

.blend File Format

Post by andygeers » Wed Feb 15, 2006 10:36 am

(cross-posted to elYsium forum)

Am I just being blind, or is it surprisingly hard to track down any information on Blender's native file format, .blend? I'd like to implement a .blend importer for my game engine, but can't find anything whatsoever - the documentation seems strangely lacking in this area.

Any pointers would be greatly appreciated.

simonharvey
Posts: 0
Joined: Tue May 18, 2004 8:11 am

Re: .blend File Format

Post by simonharvey » Wed Feb 15, 2006 11:24 am

andygeers wrote:Am I just being blind, or is it surprisingly hard to track down any information on Blender's native file format, .blend? I'd like to implement a .blend importer for my game engine, but can't find anything whatsoever - the documentation seems strangely lacking in this area.
The reason why is because it changes, ie. bits are added and modified in every release.

The stock answer here (since this shows up in the forums ~3 months) is to reverse engineer one of the python exporters that comes with the standard blender installation. So as to export it to a fileformat that your game engine can understand.

Kind Regards
Simon Harvey

Brandano
Posts: 0
Joined: Mon Apr 19, 2004 6:03 pm

Post by Brandano » Tue Feb 28, 2006 5:14 pm

Rather than bits beingmodified between releases, the Blender file format is close to a representation of the Blender memory state at save time. It's not an exact representation, but writing an importer for it can be rather complex. The best option is to write an exporter for your game engine in Python rather than writing an importer for Blender files. That said, someone already managed to write a program that reads Blender files, Jorrit, the author of the CrystalSpace game engine, but even that effort is being superceded by a script collection

Post Reply