I have downloaded a model from 3dcafe, it is in 3ds format. Any idea why, when textured, the model appears to be "inside out?"
The textures seem to be applied to the inside of the model, and one side of the model cut away, like a cross-section.
I've scoured the material flags in the docs, thinking maybe the material was set wrong. I'm just adding it to the scene name using addAnimatedMeshSceneNode.
Model is inside out?
-
roninmagus
- Posts: 91
- Joined: Fri Oct 31, 2003 5:03 am
Model is inside out?
daveandrews.org - A Christian Programmer's Weblog | Dusty Engine - A Task Engine for Irrlicht
Try something akin to:
scenemanager->getMeshManipulator->flipSurfaces(mesh);
the first time you load the mesh, and only the first time. Irr will only have a single copy of the mesh in memory at one time, and flipping the surfaces once will affect anything that uses that particular mesh, regardless of when it loads it.
scenemanager->getMeshManipulator->flipSurfaces(mesh);
the first time you load the mesh, and only the first time. Irr will only have a single copy of the mesh in memory at one time, and flipping the surfaces once will affect anything that uses that particular mesh, regardless of when it loads it.
-
dogzer