Evak
13-04-2006 01:27:53
Woohoo, Finaly got the OSM Scene manager working
in our app, almost everything seems to be working except for one odity, and no animation.
1: The odity is that initialy I thought our implementation wasn't working because all we saw was an empty window set at the ogre viewport colour but no scene was being drawn.
Prior to this we had the scene drawn but the settings for lights etc were not loading.
Anyway, with some experimentation I found that turning on stencil shadows manualy allowed the scene to be displayed almost perfectlyexcept for the background colour (all is good with the skybox etc). Not biggie, just wondering if anyone had any ideas regarding the BG colour.
2: The other thing is that my scene has a 600 frame light animation that works in the OSM_Viewer. I was wondering how I go about animating the scene thats being drawn in my app?
Here's the code I'm using to load the OSM scene:
Any Help would be appreciated
1: The odity is that initialy I thought our implementation wasn't working because all we saw was an empty window set at the ogre viewport colour but no scene was being drawn.
Prior to this we had the scene drawn but the settings for lights etc were not loading.
Anyway, with some experimentation I found that turning on stencil shadows manualy allowed the scene to be displayed almost perfectlyexcept for the background colour (all is good with the skybox etc). Not biggie, just wondering if anyone had any ideas regarding the BG colour.
2: The other thing is that my scene has a 600 frame light animation that works in the OSM_Viewer. I was wondering how I go about animating the scene thats being drawn in my app?
Here's the code I'm using to load the OSM scene:
class oSceneCallback : public OSMSceneCallbacks {
public:
};
DLL void _stdcall LoadScene(const char *file)
{
// 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(file,&oe_Callback);
// create and setup the scene in the root node
oScene.createScene();
sceneMan = oScene.getSceneManager();
};Any Help would be appreciated