Stepper?

gugus

21-01-2007 09:02:37

hello
I don't realy understand how the stepper work.
Can somebody explain me?What is the steplistner,will he step automaticaly or do i need to step manualy,when will he step,...
I have read ODE manual,but i didn't understand at all what the stepper do.

PS:you should write some tutorial,it is very hard to start with only 3 demos,and many poeple use nxOgre because he is better documented than OgreOde.

luis

21-01-2007 10:58:38

StepHandler derives from Ogre::FrameListener, by calling:

_stepper->setAutomatic(OgreOde::StepHandler::AutoMode_PostFrame,root);

OgreOde will register the instance as a another framelistener in Ogre's root:

void StepHandler::setAutomatic(StepHandler::AutoMode mode, Root* root)
{
....
_root->addFrameListener(this);
....
}


so you dont have to manually call the step and synchronise methods, those are the tasks that OgreOde Stepper do ;)

I have read ODE manual,but i didn't understand at all what the stepper do.

I doubt that ODE manual will ever mention OgreOde stepper :) OgreOde is just a wrapper to ODE, and since there is no OgreOde manual, the only documentation is the code :(

PS:you should write some tutorial,it is very hard to start with only 3 demos,and many poeple use nxOgre because he is better documented than OgreOde.

there is 3 demos, but if you see simplescenes it has 6 totally different tutorials inside.

OgreOde doesn't have many documents, but i beleive the code is pretty simple to understand, mostly because ODE calls are so well hidden that you dont either have to understand how ODE works.

gugus

21-01-2007 15:37:50

thank a lot,i understand much better now.

I doubt that ODE manual will ever mention OgreOde stepper Smile OgreOde is just a wrapper to ODE, and since there is no OgreOde manual, the only documentation is the code Sad

I was speaking of ODE stepper(worldquickstep).
But is the stepper doing a quickstepp or a normal one?

luis

21-01-2007 16:12:43

I was speaking of ODE stepper(worldquickstep).
sorry i misunderstood the post....

See the constructor, the second parameter is the 'StepModeType'.
For example the ForwardFixedStepHandler uses worldquickstep by default.

gugus

21-01-2007 18:29:52

Ok thank.
But for tutorial,it would be largely faster to learn OgreOde if there were tutorial like Ogre one's.So i am trying to make some small tutorial in french,but i need to understand well how OgreOde work.