Sorry if this is a bit of a dumb question, but how do you load texturing information for worlds (ie terrain, levels etc) into Irrlicht?
I've made some stuff in maya, and happily loaded the .obj into Irrlicht, but what's the best way go about texturing it? (as objectfiles only contain geometry, it comes out grey). How was that pretty town in the screenshots made?
Irrlicht is great to use btw - keep it up!
Cheers
Texturing Worlds
But isn't there anyway to put textures in obj level mesh?
I was trying to do same thing but....I could not fugure it out yet.
Please help!!
Please help!!
Yesterday is history.
Tomorrow is a mystery.
Today is a gift. That's why it's called the "present."
Tomorrow is a mystery.
Today is a gift. That's why it's called the "present."
From my understanding of the .obj format (I've never used them), it probably works like an md2 instead of a 3ds. Like in the HelloWorld example you have to load/apply the texture in the code, as follows:
scene::IAnimatedMesh* mesh = smgr->getMesh("mymodel.obj");
scene::IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode( mesh );
node->setMaterialTexture(0, driver->getTexture("mytexture.bmp");
scene::IAnimatedMesh* mesh = smgr->getMesh("mymodel.obj");
scene::IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode( mesh );
node->setMaterialTexture(0, driver->getTexture("mytexture.bmp");
Emm....
I know how to load 1 texture...on 1 object.
If I have a levelmesh in .obj format.
We may need more than 1 texture for floor, door, windows,wall....hallway...etc
Should I separate each object to different file and load one by one??
If I have a levelmesh in .obj format.
We may need more than 1 texture for floor, door, windows,wall....hallway...etc
Should I separate each object to different file and load one by one??
Yesterday is history.
Tomorrow is a mystery.
Today is a gift. That's why it's called the "present."
Tomorrow is a mystery.
Today is a gift. That's why it's called the "present."