If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Linaxys
Posts: 47 Joined: Tue Feb 24, 2009 10:46 pm
Post
by Linaxys » Tue Mar 03, 2009 6:52 pm
Hello,
I am trying to set a texture on my exported blender mesh (it does the same thing with Sketchup), it's COLLADA 1.4, when I put a texture like this :
With this :
Code: Select all
IMesh *floorMesh = cynScene->getMesh("./assets/models/floors/floor001.dae");
ISceneNode *floorNode = cynScene->addMeshSceneNode(floorMesh);
floorNode->setPosition(vector3df(0,-5,-60));
floorNode->setMaterialTexture(0, cynDriver->getTexture("./assets/textures/concrete/conc001.jpg"));
It does this...
Can someone help me please ?
Thanks !
Last edited by
Linaxys on Wed Mar 04, 2009 8:42 pm, edited 1 time in total.
hybrid
Admin
Posts: 14143 Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:
Post
by hybrid » Tue Mar 03, 2009 9:28 pm
Probably no UV coords. You need to UV map the mesh and export those values. Otherwise the upper left pixel is put everywhere on the mesh.