OBJ export dont work correct

Bug #115178 reported by Bostich
2
Affects Status Importance Assigned to Milestone
Freyja
Fix Released
Low
Unassigned

Bug Description

Any model i exportet to obj wont be open in other tools.

Freyja Version: 0.9.5.8-20070514, Win32 binary snapshot.

For export i use

File -> Export -> Wavefront OBJ.

Scale is in most case 1.0.

a test file can be found here http://files-upload.com/232433/anakim_01.obj.html

Revision history for this message
Terry 'Mongoose' Hendrix (mongooseichiban) wrote :

What locale and OS are you using?

I see the comma instead of decimal like they use in Germany:

v 0,824290 9,221645 -10,306935

POSIX:

v -0.847301 41.707569 3.201557

Perhaps your problem is that other programs don't support your locale! Other than that the file is completely 'correct', however the model appears to have invalid UVs. Try doing a search and replace of comma with period. It should import into maya correctly. I suppose I could fix this by always forcing period, however some software won't like that either.

From the printf manpage:

<blockquote>
       For some numeric conversions a radix character (‘decimal point’) or
       thousands’ grouping character is used. The actual character used
       depends on the LC_NUMERIC part of the locale. The POSIX locale uses ‘.’
       as radix character, and does not have a grouping character. Thus,
                   printf("%’.2f", 1234567.89);
       results in ‘1234567.89’ in the POSIX locale, in ‘1234567,89’ in the
       nl_NL locale, and in ‘1.234.567,89’ in the da_DK locale.
</blockquote>

Revision history for this message
Terry 'Mongoose' Hendrix (mongooseichiban) wrote :

Try adding this plugin to your plugins/model/ directory. It will force your floating point output to use the "C" locale, which is standard. Maya and other modelers should read it now. Wavefront OBJ papers I've seen don't take a stand on how to handle locales, but I assume most modelers only use "C" locale.

Das kosten los. Bitte sehr. ;)

Revision history for this message
Terry 'Mongoose' Hendrix (mongooseichiban) wrote :

Proposed fixed confirmed via message board testers.

Changed in freyja3d:
importance: Undecided → Low
status: Unconfirmed → Fix Committed
Changed in freyja3d:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.