PDA

View Full Version : LW 10.1 - OBJ Export broken for German/European Language Settings



evilemil
10-23-2011, 01:19 PM
There were quite a few posts about the OBJ exporter not working correctly in 10.1 - yet there was no deeper investigation.

Perhaps i can help fixing the issue for us 'Europeans':
I use an English XP32 Professional system with German language settings, which ends up in a broken OBJ format.
Obj expects the decimal separator to be a full stop '.', but the German separator is a comma ',' for Windows XP.
10.1 creates wrong numbers, whereas 9.6 has always worked fine without any problems.
Please compare the two exported OBJ files below (both form the same LWO, 1x1x1m cube, without UVs).

If I switch the decimal separator to a '.', the OBj export works fine, but it screws all my other programs.
It would be nice if this could be fixed in the next release as I do not see the point to change me whole system setup for just LW.

LW 9.6

####
#
# OBJ File Generated by LightWave3D
# LightWave3D OBJ Export v2.3
#
####
o box_96.obj
mtllib box_96.mtl
g default
v -0.5 0 0.5
v 0.5 0 0.5
v 0.5 0 -0.5
v -0.5 0 -0.5
v -0.5 1 0.5
v 0.5 1 0.5
v 0.5 1 -0.5
v -0.5 1 -0.5
usemtl Default
f 4 3 2 1
f 2 6 5 1
f 3 7 6 2
f 8 7 3 4
f 5 8 4 1
f 6 7 8 5

LW 10.1

####
#
# OBJ File Generated by LightWave3D
# LightWave3D OBJ Export v2.3
#
####
o box_10.obj
mtllib box_10.mtl
g default
v -0,5 0 0,5
v 0,5 0 0,5
v 0,5 0 -0,5
v -0,5 0 -0,5
v -0,5 1 0,5
v 0,5 1 0,5
v 0,5 1 -0,5
v -0,5 1 -0,5
usemtl Default
f 4 3 2 1
f 2 6 5 1
f 3 7 6 2
f 8 7 3 4
f 5 8 4 1
f 6 7 8 5

wrench
10-23-2011, 03:46 PM
Hi Evilemil,

Did you post to Fogbugz about this? Better support for non-US languages is important to me as a teacher in a French art school too.

B

walfridson
10-24-2011, 03:35 AM
also note no vertex normals are written.. my fogbugz for that is still open

evilemil
10-24-2011, 02:09 PM
@wrench
no, i have used fogbugz to report the bug.
i hope that this forum is sufficient to report a bug of this severity.

funk
10-25-2011, 07:07 AM
The forum is not sufficient for bug reports. You need to report it on fogbugz. https://fogbugz.newtek.com/default.asp?pg=pgPublicEdit

evilemil
10-26-2011, 04:18 AM
@funk
thanks. i added a bug to the database.
it was actually simple with your link.

john_the_blind
11-05-2011, 07:25 AM
i have had the same problem... the "." is replaced by a "," in european version of LW..the best way is to go in windows preference. In "region and langue/formats/parametre supplementaires/symbole monetaire" simply change the "," by a "." in decimal symbol. it will fix the problem. BUT : all files created before the change will not open in LW now...you have to open the LW scene in text editor and change manually all "," by a "." (it work for your current obj too)

I hope this help you.

ps : sorry for french words, i have a french version of windows...

Sensei
11-05-2011, 07:47 AM
Sounds like LW is using operating system function to output floating point numbers. That's why it's localization dependent output.

evilemil
11-07-2011, 05:52 AM
I got an email confirming the fix for the next release.
In fact it not only created problems in modeler for the OBJ export.
All the old scene files were not working and all camera related acions were broken (VPR, viewport update...).
Looking forward to see this fixed.

lardbros
11-07-2011, 06:03 AM
Good stuff! Thanks for taking the time to report the bug!

Walfridson... have you heard back about your report yet? :)