[SOLVED] Exported mesh texture problem

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.
Post Reply
Linaxys
Posts: 47
Joined: Tue Feb 24, 2009 10:46 pm

[SOLVED] Exported mesh texture problem

Post by Linaxys »

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 :

Image

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...

Image

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 »

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.
Post Reply