Problems with loading x files
Problems with loading x files
Hi. I tried to load x file exported from blender. When I use meshviewer everything loads fine, the model looks just as I wanted so as all the textures. But when I try to load it by myself, everything is messed up. Textures are on opposite sites of walls and it doesn't look like one I made. What am I doing wrong? Can someone write code to load x file?
You have to show us your code, otherwise we have no way of seeing what you did wrong.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
In irrlicht media folder is file dwarf.x. To load this file I simple use
All works fine, but dwarf doesn't move and it is what I wanted (I hope). But when I try to use it with my file, mesh loads but it is messed as I wrote earlier.
Code: Select all
AnimatedMesh* mesh = smgr->getMesh("xxx/irrlicht-1.7.1/media/dwarf.x");
scene::IMeshSceneNode* Model = 0;
Model = smgr->addMeshSceneNode(mesh->getMesh(0));
Code: Select all
mesh->getMesh(0)
Working on game: Marrbles (Currently stopped).