Page 1 of 1

[fixed] Obj export bug vt coordinate changed.

Posted: Sun Jan 18, 2015 9:14 am
by thanhle
Hi Guys,
I'm using Irrlicht 1.81 with updated code version to save obj file with scaling and translation.

I found there is a problem with the obj writer.

If we read in an obj file. The export into a different obj file, the vt coordinate for y values changes.

e.t. file1.obj

vt -0.000000 -5.250000
vt -0.000000 -7.000000
vt 45.000000 -7.000000
vt 45.000000 -5.250000
vt 0.000000 -7.000000
vt 0.000000 -5.250000
vt -45.000000 -5.250000
vt -45.000000 -7.000000
vt 1.750000 -5.250000
vt -0.000000 -5.250000
vt 0.000000 -7.000000
vt 1.750000 -7.000000
vt -0.000000 -7.000000

file2.obj
t -0.000000 -6.250000
vt -0.000000 -8.000000
vt 45.000000 -8.000000
vt 45.000000 -6.250000
vt 0.000000 -8.000000
vt 0.000000 -6.250000
vt -45.000000 -6.250000
vt -45.000000 -8.000000
vt 1.750000 -6.250000
vt -0.000000 -6.250000
vt 0.000000 -8.000000
vt 1.750000 -8.000000

Notice the y-values reduces by -1.

Updated: The issue has been fixed in trunk.
Regards
thanh

Re: Obj export bug vt coordinate changed.

Posted: Sun Jan 18, 2015 9:53 am
by hendu
I reported this ages ago, I think it's fixed in trunk.

Re: Obj export bug vt coordinate changed.

Posted: Sun Jan 18, 2015 11:42 am
by thanhle
Thanks mate,
I guess I need to update my version with trunk from now on.
Download trunk version now.

Regards,
thanh

Re: Obj export bug vt coordinate changed.

Posted: Sun Jan 18, 2015 12:43 pm
by thanhle
Confimed, this has been fixed in the version in trunk.
Thanks
thanh