Loading OSM scenes into our projects....

Darkness

11-02-2006 17:54:42

I just created a .OSM scene and I want to load the scene into my project. What do I need to do in order to do this? Is it a .scene format with a different name? Or is there something else that needs to be added to the code in order to use it?


-Darkness

praetor

11-02-2006 18:05:36

there is an osm reader provided on their site. It's a couple C++ files you can include right in your project, and it handles the reading of the osm file and the setting up the scene as well. I haven't yet tried it myself, but that's the blurb on it.

Lioric

11-02-2006 19:33:03

As preator posted all you need is the oScene loader library, in the users' guide, refer to the "Scene Loader" chapter, there you can see the "integrating in your application" page where you get step by step instructions on implementing the loader in your project

I will sumarize the procedure

Include the header file
Create the scene loader object
Initialize with the scene filename to be loaded (and a callback if you need to post-process the scene objects)
Call "createScene" method

Depending on your procedure, you migth ask to the loader for the automatically created scene manager , or you can pass your manually created scene manager to the constructor of the scene loader object

Download the Demo application, there you can see the loading procedure, put the demo files in the "samples" folder of your Ogre (SDK) installation, like any of the default ogre demo applications

Darkness

12-02-2006 06:10:27

Thanks a bunch. I got all of the information I need. I'm going to try to see if I can get this incorporated into my project tomorrow. Lioric, you don't know how much this program has saved me. I have been having a hell of a time getting meshes and scenes working properly. I've ran some of the generated meshes in my project and they loook great. This really helps me a bunch. Much love for you, my man. :D


-Darkness