[fixed] Obj export bug vt coordinate changed.

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
thanhle
Posts: 325
Joined: Wed Jun 12, 2013 8:09 am

[fixed] Obj export bug vt coordinate changed.

Post 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
Last edited by thanhle on Sun Jan 18, 2015 12:44 pm, edited 2 times in total.
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Obj export bug vt coordinate changed.

Post by hendu »

I reported this ages ago, I think it's fixed in trunk.
thanhle
Posts: 325
Joined: Wed Jun 12, 2013 8:09 am

Re: Obj export bug vt coordinate changed.

Post by thanhle »

Thanks mate,
I guess I need to update my version with trunk from now on.
Download trunk version now.

Regards,
thanh
thanhle
Posts: 325
Joined: Wed Jun 12, 2013 8:09 am

Re: Obj export bug vt coordinate changed.

Post by thanhle »

Confimed, this has been fixed in the version in trunk.
Thanks
thanh
Post Reply