Unable to export to.mesh

exodus

07-09-2006 20:23:28

Hello

How can I export my model into .mesh

Currently i have the option to export to osm


Also, does anyone have any code to load an osm in ogre?


If anyone wants to help by converting my max/3ds model to a .mesh add me to msn

thanks for your help

Evak

07-09-2006 20:34:46

Try it, all your meshes in max will be exported as seperate meshes named what you called them in 3dsmax.

The OSM file just describes your scene and isn't required if your loading your mesh files manualy. I'm not sure about the community edition as I use the pro version. If you uncheck the scene file option in the exporter dialogue box, then the name you specified for a filename is ignored and no OSM is exported. Just the Mesh, material etc files.

Lioric

07-09-2006 20:37:41

For the code to load OSM files, download the OSM Scene Loader library to add OSM support in to your applications and the Scene Loader demo for an example aplication, from the downloads page

exodus

08-09-2006 08:44:46

Thanks, when max creates the .osm it does create many .mesh files (around 50 as my models made up of many different cubes) which is why i'd prefer it to merge it all to one .mesh file, but if ogre can load .osm if I learn how to load them there will be no need for the .mseh

is this the code people use to load .osm

// Create the scene loader
OSMScene oScene;

// Create an oE_Loader Callback object to post-process created objects
oSceneCallback oe_Callback;

// Initialises with the scene to be loaded and the callback if requiered
oScene.initialise("teste.osm", &oe_Callback);

// create and setup the scene in the root node
oScene.createScene();


mSceneMgr = oScene.getSceneManager();

mCamera = oScene.getCameraList().at(0);

Lioric

08-09-2006 16:52:29

That is the minimun code needed to load the scene (the callback object is optional if you dont use it) but you need to handle cases where your scene dont have any cameras

The scene loader demo code should have all the information you will need