some questions

ealis2001

03-03-2006 14:11:21

I want to begin working on a RPG and decided to use The OFusion add-on(nice job Lioric, btw).

1) I use the next code in order to use a scene:

OSMScene oScene;
OSMSceneCallbacks oe_Callback;
oScene.initialise("scene.osm", &oe_Callback);
oScene.createScene();
mSceneMgr = oScene.getSceneManager();
All I get after running this is a black screen. I think the problem is that I don't place the scene files in the right place. Where should I place those files(.osm, .material, .mesh, etc)? Or what else should be added to my project in order to become functional?

2) I have a sword in 3DSMax and it's made by 6 sub-objects. Each one has a different texture. When I export this I get 6 .mesh files and one .material file that contains all the information about the materials used on that object. How can I import this sword in Ogre without importing every sub-object separately and how can I add the material again in Ogre?

3) It is possible to import multiple scenes in one big scene? Because I'm thinking of exporting every object in 3dsmax as a scene and import them back in Ogre?

Thanks for your time!

Lioric

04-03-2006 01:51:12

1 The resources should be in any of the folders referenced in the resouce.cfg file your application uses to locate files. See your ogre.log file for information on what is the problem

You should create a camera and set it as the active camera at loading, see the demo application for reference, if a camera named "FirstCamera" is loaded, it set it as the default camera

2 Can you send me that file?, when you say sub-meshes, you mean "a group of objects"?. If the object is made of several attached[\b] objects it should be exported as a single object

3 You can load additional scenes after you load the main scene with this


oScene.initialise("additional osm scene file name");
oScene.createScene();


The main/first scene will set the global scene properties, like shadows, scene manager, world geometry, sky settings