[Resolved] Load IrrEdit scene bug?

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
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

[Resolved] Load IrrEdit scene bug?

Post by sio2 »

JP's IrrEdit scene from IrrPhysX 0.2. Loaded using LoadIrrFile sample:

Irrlicht 1.4.2
Image

Irrlicht 1.5
Image

NOTE: The shack door is around the opposite side with 1.5, but it looks like the mesh is mirrored, not rotated 180 degrees about Y.
Last edited by sio2 on Sun Dec 21, 2008 9:13 am, edited 1 time in total.
night_hawk
Posts: 153
Joined: Mon Mar 03, 2008 8:42 am
Location: Suceava - Romania
Contact:

Post by night_hawk »

Could be a result of the mesh orientation changes they made a while ago... Because all meshes are mirrored.
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

night_hawk wrote:Could be a result of the mesh orientation changes they made a while ago... Because all meshes are mirrored.
Sorry but what are you talking about? I'm not familiar with this change..
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

Wait a minute. 1.4.2 SEEMS WRONG ALSO! WTF?

The House (shack) model is a MilkShape3D model. If I load it in IrrEdit 1.4.2 and load it in MilkShape3D 1.8.4 then the window and door are on the wrong side. So it looks like 1.4.2 is loading MS3D models mirrored in X. :roll:
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

Additional: seems the issue is with (at least) the MilkShape3D loader. If I load the MS3D model in MilkShape, save as B3D and load both in IrrEdit then the the B3D version has the door/window on the correct sides (the MS3D model has the door/window on the wrong side).

This is 1.4.2 BTW. 1.5 has its own weirdness going on.
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

Additional:
Looking at the Irrlicht 1.5 source for the MS3D loader, there's a piece of code that negates the Z value of each vertex; so this is the cause of the 1.5 weirdness for MS3D models (other loaders may still be incorrect though).
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

sio2 wrote:Additional:
Looking at the Irrlicht 1.5 source for the MS3D loader, there's a piece of code that negates the Z value of each vertex; so this is the cause of the 1.5 weirdness for MS3D models (other loaders may still be incorrect though).
yup, there was a bug with ms3d meshes !!! :lol:
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=30489
maybe the scene was created with the buggy version ??? :shock:
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

1.5 should have the proper orientation. I've gone through all right-to-left handed changes etc. and all my ms3d models look correct (compared to other mesh file formats of the same meshes).
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

Acki wrote:
sio2 wrote:Additional:
Looking at the Irrlicht 1.5 source for the MS3D loader, there's a piece of code that negates the Z value of each vertex; so this is the cause of the 1.5 weirdness for MS3D models (other loaders may still be incorrect though).
yup, there was a bug with ms3d meshes !!! :lol:
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=30489
maybe the scene was created with the buggy version ??? :shock:
I think the "fix" (revision 1613) flipped the model front-to-back instead of left-to-right. Plus, it looks like the OP didn't come back in that thread to verify...
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

hybrid wrote:1.5 should have the proper orientation. I've gone through all right-to-left handed changes etc. and all my ms3d models look correct (compared to other mesh file formats of the same meshes).
Hmmm. I think I see. Because JP positioned his MS3D meshes in IrrEdit 1.4.2 based on a broken orientation then when Irrlicht 1.5 loads them correctly they instantly look wrong.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

sio2 wrote:Hmmm. I think I see. Because JP positioned his MS3D meshes in IrrEdit 1.4.2 based on a broken orientation then when Irrlicht 1.5 loads them correctly they instantly look wrong.
that's what I meant here:
Acki wrote:maybe the scene was created with the buggy version ??? :shock:
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

It still seems that with no rotations a model in MilkShape points "towards" you wheareas in Irrlicht it points "away", though this could just be a coordinate system issue.
Post Reply