For my application I have an animated splash screen that is supposed to show up when the application does not have any events happening. The splash screen is supposed to stay on for 10 seconds to play the whole animation. I am implementing it with an overlay and using anim_texture in the material for the overlay.
The animation works fine, but it does not always start on the first frame. Is there a way to handle this?
Also, I am syncing it up to show for 10 seconds using this code:
Code: Select all
if(mSplashEnabled && mSplashTimeElapsed > 0.0)
{
//Show the splash screen
mSplashTimeElapsed -= evt.timeSinceLastFrame;
m_pSplashOverlay->hide(); //Disable the standby splash screen
m_pCountDownOverlay->show(); //enable the countdown splash screen
}
Does that have any effect?
Thanks!