Ogre newbie here.
I've coded game engines before, but I'm trying to figure out how to build one around Ogre now Basically I'm going to go with the "stack of gamestates" idea.
Should each game state have it's own...
a) Root node
b) Scene Manager
c) Or something even higher level...maybe each state clears the scene manager when it comes into scope?
Also, are frame listeners the best way to implement a game logic loop? All the examples use them. Can I call a draw method on the Root node and work with Ogre that way? That way I could do my whole own timing/game logic loop thing with less hassle.
Any suggestions are appreciated Thanks!
wrapping my head around gamestates
-
- Gremlin
- Posts: 150
- Joined: Wed Oct 20, 2004 2:35 pm
- Location: Paris, France
-
- Hobgoblin
- Posts: 508
- Joined: Tue Feb 03, 2004 6:39 am
Check out my tutorials :http://www.ogre3d.org/phpBB2/viewtopic.php?t=6770
And
SSSF (my state framework system): http://www.ogre3d.org/phpBB2/viewtopic.php?t=3411
And
SSSF (my state framework system): http://www.ogre3d.org/phpBB2/viewtopic.php?t=3411
-
- OGRE Expert User
- Posts: 286
- Joined: Fri Nov 01, 2002 3:54 pm
- Location: Berlin & Nuremberg, Germany
- x 1
snowblind: We use a custom loop and make calls to OGRE (renderOneFrame() or sth similar) when we need to render... well, a frame. The rest is ours. For code, have a look at YAKE. But I'm sure it'll be easier to just search the forums for similar keywords (renderOneFrame, custom render loop, ...) as this question came up a few times already (and has been answered, too).
-psy
-psy