.material file loading problem!

pumpkin_zch2u

12-12-2008 12:36:05

I use Ofusion to export a basic scene with only one object named stone. The exporter generates a .osm, stone.mesh, and a .material file. I don't use the .osm file. Instead, I copy .mesh and .material file and textures into the "media" folder. In my program I use Entity *ent = pSceneManager->createEntity("stone", "stone.mesh"); to load my stone mesh. the problem is I only get a mesh without material with it. But if i use ninja.mesh, no problems!
in order to check the problem, l load the stone.mesh file in to mesh viewer. I got the correct display. So I don't know what the problem is. I also wanna know what's the difference bettween ninja.mesh and the stone.mesh? why one can have the texture displayed and the other cannot?
ps: I guarantee that all the locations in the resources.cfg are avaliable and correct!

Lioric

12-12-2008 16:38:55

See the ogre.log file from your application, it might have more details on why your textures are not applied

It might be that the textures or materials are not loaded (in this case the log file will show this) or it might be that the material and texture are loaded but you cant see them because you need a light in your scene or set the "emissive" material parameter to white

Or post here you ogre.log file