I want to parse Blender-Made Files directly into my homemade Lisp program. I've been pulling data out of .X3D files manually. Is this the best format to focus on writing a parser for?
Thanks!
|
I want to parse Blender-Made Files directly into my homemade Lisp program. I've been pulling data out of .X3D files manually. Is this the best format to focus on writing a parser for? Thanks! |
|||
|
|
Write an exporter. No, really. That way you can output exactly the data you need in the format you want. When you start from one of the existing plugins, it's actually quite easy. |
|||
|
|
I've always found OBJ files easiest to parse, but they tend to be large because they're "human readable." However, they're public and standardized. If you need it, the Obj Specification: |
|||
|
|
|
Milkshape (MS3D) format was quite easy to implement a reader for, in C++ and C#. Here's the spec I used: |
|||
|
|
|
The .obj is of course the easiest to to parse, but if you need something a little more powerful (with animations) then get the .md2 file format. If I can dig up some of my code from high school I might be able to find a md2 loader I wrote. |
|||
|
|
The easiest to load is OBJ (which is human readable), others are horribly complex. |
|||
|
|