oScene.initialise error

deshan

12-12-2009 07:27:13

Hi
This is my first run with ofusion.
I am getting an error in following line
oScene.initialise( "file:C:/tree.osm");
Application just close when it comes to this line

This is my code
OSMScene oScene(gameEngineData->mSceneMgr,gameEngineData->win);
oScene.initialise( "file:C:/tree.osm");
oScene.createScene();


This is osm code
<oe_scene>
<sceneManager type="0" />
<bkgcolor r="0.490196" g="0.490196" b="0.490196" />
<lightColor r="0.5" g="0.5" b="0.5" />
<shadowTechnique type="0" tex_size="512" tex_count="1">
<color r="0" g="0" b="0" />
</shadowTechnique>
<entities>
<entity name="objtree001" hidden="false" filename="objtree001.mesh" CastShadows="yes" ReceiveShadows="yes">
<position x="0" y="0" z="-0" />
<rotation x="0" y="0" z="-0" w="-1" />
<scale x="0.099999994" y="0.099999994" z="0.099999994" />
</entity>
</entities>
</oe_scene>


I have placed the objtree001.mesh in ogresdk\media folder.

Am I did the things right?

deshan

12-12-2009 08:18:49

I was wrong. I have placed tree.osm in seperate location. It has to put in same media folder alongside with mesh.
Now that works.