When you load ogre mesh files into irrlicht 1.4.2, you will find that the textures are wrong. The reason is to confuse Index field and Source field in struct OgreVertexElement.
Fix method:
replace "if (geom.Elements.Index==geom.Buffers[j].BindIndex)" with "if (geom.Elements.Source==geom.Buffers[j].BindIndex)" in line 411, 429, 446, 481, 499 and 516 in the file "COgreMeshFileLoader.cpp".
[fixed]Texture error in Ogre mesh loader in irrlicht 1.4.2
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Opened in the tracker.
Could you make some of your resources available, please, so that we can replicate the problem and validate the fix.
Could you make some of your resources available, please, so that we can replicate the problem and validate the fix.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
I can and I could, if I had the Ogre SDK.
Can you help us to help you by just posting the meshes somewhere. Pretty please.
Can you help us to help you by just posting the meshes somewhere. Pretty please.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Problem with this fix
This fix seems a problem with some .mesh files. Please download the file "ember-media-0.5.5.tar.bz2" from http://www.worldforge.org/dev/eng/clients/ember. Unzip it in a directory.
With the 09.Meshviewer example, load the following mesh and then the associated texture:
shared/common/3d_objects/plants/trees/models/oak/oak_youngA.mesh,
shared/common/3d_objects/plants/trees/textures/oak/D.png
It works well with 1.4.2 SDK but it does not work anymore with 1.5. Texture coordinates seem to be broken.
I recompiled the 1.5 lib with the 1.4.2 COgreMeshFileLoader.cpp file, and it worked again.
With the 09.Meshviewer example, load the following mesh and then the associated texture:
shared/common/3d_objects/plants/trees/models/oak/oak_youngA.mesh,
shared/common/3d_objects/plants/trees/textures/oak/D.png
It works well with 1.4.2 SDK but it does not work anymore with 1.5. Texture coordinates seem to be broken.
I recompiled the 1.5 lib with the 1.4.2 COgreMeshFileLoader.cpp file, and it worked again.