Hi
i use qt+ogre
and i make animation to my object
it work good
but i have problem in update
when i clic on the window or i clic on dockwidget
it stop animation, but it start when i move the mouse only
(if i stop the moving of mouse the animation stop too)
that's my code
{
ogreRoot->_fireFrameStarted();
ogreRoot->_fireFrameRenderingQueued();
ogreRenderWindow->update();
ogreRoot->_fireFrameEnded();
number_frame=number_frame+10;
if(number_frame<framme.size())
animation1();
ogreRenderWindow->update();
animation2();
ogreRenderWindow->update();
e->accept();
ogreRenderWindow->update();
//update();
}
void OgreWidget::paintEvent(QPaintEvent *e)
{
ogreRoot->_fireFrameStarted();
ogreRoot->_fireFrameRenderingQueued();
ogreRenderWindow->update();
ogreRoot->_fireFrameEnded();
number_frame=number_frame+10;
if(number_frame<framme.size())
animation1();
ogreRenderWindow->update();
animation2();
ogreRenderWindow->update();
e->accept();
ogreRenderWindow->update();
//update();
}
To copy to clipboard, switch view to plain text mode
if i do not delete "update()" it show/delete/show/delete.....(paint and repaint ) the scene
Bookmarks