[Bf-python] Problem with obj exporter.

Manuel manuelbastioni at tin.it
Mon Jul 11 22:06:39 CEST 2005


I've tried to import an obj made by Blender into another application 
(Ayam). It don't work because there is a little 'problem' in obj. This 
is the reply from Ayam developer:
-----------------------------------------------------------
Thanks. Blender writes all faces with an extra whitespace at the end
of the face statement:
"f vi1 vi2 vi3 " instead of "f vi1 vi2 vi3"
tricking the Ayam parser into "there is another vertex index left
to be read"-mode after reading the last vertex index. This next vertex
index is never given, instead EOL appears and Ayam thinks this an
error, throwing away the whole face.
It is debatable, whether this is actually a malformed OBJ file according
to the Spec, as the Spec does not speak too much about whitespaces...
There is no easy fix available as the OBJ parser is coded in C,
you will currently need to fix the OBJ file by running it through a
processor of some sort.
------------------------------------------------------------

Ciao,

      Manuel



More information about the Bf-python mailing list