Splashscreen - Loading bar

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
Anthea
Kobold
Posts: 25
Joined: Tue Oct 28, 2014 1:03 pm

Splashscreen - Loading bar

Post by Anthea » Mon Nov 24, 2014 4:23 pm

Hey,

i'd like to implement a splash screen for our game that is shown during loading of resources. Unfortunately I only found rather old examples that don't work.
Can anyone show how to do this in Ogre 1.9?

http://www.ogre3d.org/forums/viewtopic.php?t=15040 <-- not working in Ogre 1.9 since OgreCore.lib is missing
So far I tried:

Code: Select all

    Ogre::ResourceGroupManager::getSingleton().initialiseResourceGroup("Essential");

	initOIS();
	createFrameListener();

	mTrayMgr->showLoadingBar();
	Ogre::ResourceGroupManager::getSingleton().initialiseResourceGroup("General");
	mTrayMgr->hideLoadingBar();

	createCamera();
	mRoot->addFrameListener(mCameraManager);
All I get is a black screen...

Thanks in advance!
0 x

User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4291
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 2
Contact:

Re: Splashscreen - Loading bar

Post by spacegaier » Mon Nov 24, 2014 4:32 pm

Anthea wrote:http://www.ogre3d.org/forums/viewtopic.php?t=15040 <-- not working in Ogre 1.9 since OgreCore.lib is missing
What do you mean by that? Nowadays it is called OgreMain, but either way you of course need to link it (and tell the linker where to find it) if that is what the error is complaining about.
0 x
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...

User avatar
c6burns
Beholder
Posts: 1511
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines

Re: Splashscreen - Loading bar

Post by c6burns » Mon Nov 24, 2014 5:47 pm

Works for me. I'm using the tutorial framework. In BaseApplication::setup I add the resources for the traymgr before calling BaseApplication::loadResources. So it looks like this:

Code: Select all

	Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../../Media/packs/SdkTrays.zip", "Zip", "sdktrays");
	Ogre::ResourceGroupManager::getSingleton().initialiseResourceGroup("sdktrays");
	createFrameListener();

	mTrayMgr->showLoadingBar();
	loadResources();
	mTrayMgr->hideLoadingBar();
0 x

Anthea
Kobold
Posts: 25
Joined: Tue Oct 28, 2014 1:03 pm

Re: Splashscreen - Loading bar

Post by Anthea » Wed Nov 26, 2014 9:31 am

Okey, I reverted to the Basetutorial and that worked for me. Seems that I played to much in code :p

Is there anywhere a tutorial how I can change the background or theming of the loading screen?
0 x

User avatar
c6burns
Beholder
Posts: 1511
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines

Re: Splashscreen - Loading bar

Post by c6burns » Wed Nov 26, 2014 9:36 am

Unzip SdkTrays.zip and you can see how it has been themed. All the materials and textures are in there.
0 x

Post Reply