It looks like Irrlicht has a bug where, when loading a second object with the same texture filename as one that is already loaded, it uses the already-loaded texture, and not the new one. For example, if you load an object called "taxi.3ds" that has a
blue texture called "color.tga", then you load another object, from a different directory, called "taxi.3ds", and it has a
red texture called "color.tga" (this color.tga file is a different color than the aforementioned one). Then BOTH taxi objects will appear blue in the engine. (You would expect that one would be blue and the other red).
Code: Select all
_chdir("C:\\irrlicht-1.0\\examples\\RaceGame\\Objects\\Taxi_Blue");
scene::IAnimatedMesh* meshCar = smgr->getMesh("taxi.3ds");
car1 = smgr->addOctTreeSceneNode(meshCar);
_chdir("C:\\irrlicht-1.0\\examples\\RaceGame\\Objects\\Taxi_Red");
scene::IAnimatedMesh* meshCar2 = smgr->getMesh("taxi.3ds");
car2 = smgr->addOctTreeSceneNode(meshCar2);
A work-around is to edit the object, and change the names.