Stupid question related to the o_scene Demo... ¬_¬

txikomb

22-08-2006 21:50:01

Hi everyone,

I have been researching a lot about 3DMax, Ogre3D and oFusion lately but I'm still a little bit...lost :| I wanted to know if I can make a whole scene in 3DMax and then export it with oFusion to Ogre3D. I know I can make models and they are exported as meshes, but at the moment I'm focusing on creating a terrain with some models and a skybox/skydome and export all of it to Ogre3D.

Ok, so I found oFusion and it seemed it could be useful :shock: It seems I need to learn how to deal with oScene, right? So i downloaded the o_scene demo to learn how it works but, unfortunately, my framework (Visual Studio .Net 2003) is not compatible with that project and can not open it. After creating my own project and including all the .cpp and .h files in it, I tried to execute it but I get the next image:



Does anyone know how can I execute this demo?? I'm kinda lost with all the Ogre3D, oFusion and the rest of the things and if I can use this demo maybe it helps :( Honestly, sorry for the stupid question... as soon as I enhance my knowledge I'll make more difficult ones, I promise :P

Thanks a lot in advance. Cheers!

Lioric

22-08-2006 22:03:22

Is the path for the scene and the other resource files in your resource.cfg file?

txikomb

22-08-2006 22:10:50

No :( in my resources.cfg file, which is in the "C:\OgreSDK" folder, I have the next information:


# Resource locations to be added to the 'boostrap' path
# This also contains the minimum you need to use the Ogre example framework
[Bootstrap]
Zip=Media/packs/OgreCore.zip

# Resource locations to be added to the default path
[General]
FileSystem=Media
FileSystem=Media/fonts
FileSystem=Media/materials/programs
FileSystem=Media/materials/scripts
FileSystem=Media/materials/textures
FileSystem=Media/models
FileSystem=Media/overlays
FileSystem=Media/particle
FileSystem=Media/gui
FileSystem=Media/DeferredShadingMedia
Zip=Media/packs/cubemap.zip
Zip=Media/packs/cubemapsJS.zip
Zip=Media/packs/dragon.zip
Zip=Media/packs/fresneldemo.zip
Zip=Media/packs/ogretestmap.zip
Zip=Media/packs/skybox.zip


Also I haven't got any directory called "d:/ogredev/dagon/"...I guess it has to do with the project file which I couldn't open, don't know... :|

txikomb

23-08-2006 10:15:24

Have anyone been able to run this demo properly???? Any help would be really appreciated!! Please!

Lioric

23-08-2006 15:38:37

You need to put all your scene and its resource files in a directory that is part of your resource locations, or add the folder where they are to the resource.cfg file so the your application can open them

txikomb

23-08-2006 15:59:00

Wohoooooooo!!! I'm not more stupid because I can not ¬_¬U... I have finally solved the problem, which was, of course, the most silly thing all over the galaxy!

A few things for future people with the same problem. First, if you can not open the project -due to version problems- just visit this page to modify the project file and open it without problems:

http://blogs.ittoolbox.com/visualbasic/operating/archives/vs-net-error-unable-to-open-project-file-5010

In that case remember that it may be necessary to modify the additional library files, which will be included by the application, in the project properties.

The problem I had was due to the relative paths of the project, which are not the same (at least) if you are using the SDK (my case!! ^_^). You can modify them manually and won't take you more than 5 minutes.

The scene.osm file that made the demo crash is referenced in the file oSceneLibDemo.h, so just go there and substitute that name with any other .osm file you have exported from 3DMax... and don't forget to place the files in the proper folder:

- .material in "(OGRE_HOME)/materials/scripts/"
- the texture file (jpg, png...) in "(OGRE_HOME)/materials/textures/"
- .mesh & .osm in "(OGRE_HOME)/models/"

Hope it helps for future newbies... :wink: