Page 1 of 1

[SOLVED] Exported mesh texture problem

Posted: Tue Mar 03, 2009 6:52 pm
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 !

Posted: Tue Mar 03, 2009 9:28 pm
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.