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
[fixed] Obj export bug vt coordinate changed.
[fixed] Obj export bug vt coordinate changed.
Last edited by thanhle on Sun Jan 18, 2015 12:44 pm, edited 2 times in total.
Re: Obj export bug vt coordinate changed.
I reported this ages ago, I think it's fixed in trunk.
Re: Obj export bug vt coordinate changed.
Thanks mate,
I guess I need to update my version with trunk from now on.
Download trunk version now.
Regards,
thanh
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.
Confimed, this has been fixed in the version in trunk.
Thanks
thanh
Thanks
thanh