[Resolved] Load IrrEdit scene bug?
[Resolved] Load IrrEdit scene bug?
JP's IrrEdit scene from IrrPhysX 0.2. Loaded using LoadIrrFile sample:
Irrlicht 1.4.2
Irrlicht 1.5
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.
Irrlicht 1.4.2
Irrlicht 1.5
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.
Irrlicht Demos: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=6&t=45781
-
- Posts: 153
- Joined: Mon Mar 03, 2008 8:42 am
- Location: Suceava - Romania
- Contact:
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.
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.
Irrlicht Demos: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=6&t=45781
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.
This is 1.4.2 BTW. 1.5 has its own weirdness going on.
Irrlicht Demos: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=6&t=45781
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).
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).
Irrlicht Demos: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=6&t=45781
yup, there was a bug with ms3d meshes !!!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).
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=30489
maybe the scene was created with the buggy version ???
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
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...Acki wrote:yup, there was a bug with ms3d meshes !!!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).
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=30489
maybe the scene was created with the buggy version ???
Irrlicht Demos: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=6&t=45781
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.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).
Irrlicht Demos: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=6&t=45781
that's what I meant here: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.
Acki wrote:maybe the scene was created with the buggy version ???
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
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.
Irrlicht Demos: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=6&t=45781