[fixed] Obj export bug vt coordinate changed.
Posted: Sun Jan 18, 2015 9:14 am
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
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