SIO2 Splash Screen
4 posters
SIO2 Splash Screen
Hello.
I've just downloaded the new SDK 1.3.5 and I'm trying to use the provided landscape splash screen. I noticed the image file is 512x512 and that the part that contains the actual image to be displayed is conveniently a 320x480 sub-part of the main image.
I'm guessing that I'm supposed to somehow assign the widget's material to display only those 320x480 pixels of the image, but I really don't know how to do that. Any help is greatly appreciated.
Thanks in advance,
André
I've just downloaded the new SDK 1.3.5 and I'm trying to use the provided landscape splash screen. I noticed the image file is 512x512 and that the part that contains the actual image to be displayed is conveniently a 320x480 sub-part of the main image.
I'm guessing that I'm supposed to somehow assign the widget's material to display only those 320x480 pixels of the image, but I really don't know how to do that. Any help is greatly appreciated.
Thanks in advance,
André
Re: SIO2 Splash Screen
I'll upload a sample app which shows a good way to do this. Just give me 24 hours.
Best,
-joshua
Best,
-joshua
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Re: SIO2 Splash Screen
Let me know if you need some help, my suggestion would be to create 2 template 1 for landscape and 1 for portrait. Make the logo stay up visible for 1.5 sec and fade it to 0 in the next 0.5 sec and return the control to the user.
Re: SIO2 Splash Screen
Ok forget it I compile a new version of the SDK and create tutorial17 that show you how to load and render an SIO2 splash screen in landscape and portrait mode...
I would suggest that everyone that have downloaded the SDK before the date of this post download it again... other issues have also been fixed.
Tks!
I would suggest that everyone that have downloaded the SDK before the date of this post download it again... other issues have also been fixed.
Tks!
Re: SIO2 Splash Screen
I've just updated to the latest 1.3.5 release, and am trying to use the code from Tutorial17 in my own app - so I can have an SIO2 splash screen.
I've been having 2 problems.
The first is that I get EXC_BAD_ACCESS when trying to load the splash screen, but my code is just a copy and paste of Tutorial17 (fiddled a little to work in my render loop).
The second is that I decided to copy MY code into Tutorial17, link my resources etc and this now works. The template.mm files are now identical, but this one loads the splash screen - however, the splash screen just flashes and then disappears and my code executes as normal.
I've tried the above on both the simulator and the device - any help would be appreciated!
I've been having 2 problems.
The first is that I get EXC_BAD_ACCESS when trying to load the splash screen, but my code is just a copy and paste of Tutorial17 (fiddled a little to work in my render loop).
The second is that I decided to copy MY code into Tutorial17, link my resources etc and this now works. The template.mm files are now identical, but this one loads the splash screen - however, the splash screen just flashes and then disappears and my code executes as normal.
I've tried the above on both the simulator and the device - any help would be appreciated!
Re: SIO2 Splash Screen
Did you drag the video file into the Resources folder in XCode?
-j
-j
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Re: SIO2 Splash Screen
I'm using the Splash images - so poweredby_l and _p.jpeg's.meteors wrote:Did you drag the video file into the Resources folder in XCode?
-j
The weird thing is, is that there is a 2.5 second "blank" screen, then the SIO2 logo flashes, and then my code executes.
I'm wondering if I've messed up my environment somehow - I originally had SDK2.1, then 2.2.1 over the top. Would it be worthwhile wiping my SDK or even my whole Mac and starting fresh?
Re: SIO2 Splash Screen
I've been fiddling with it and here is what I've found so far:
If I use sio2's code straight from Tutorial17 then it works.
If I take out his array items and GLdrawing to make the square (and make it spin), then it seems to load the logo but only for a split second.
I thought maybe I'm not rendering it correctly, so I added an sio2Sleep( 100 ) after the sio2WidgetRender(...) part, but the screen remains black until right at the last moment it flashes the SIO2 logo and then moves on to executing my code.
The only "unique" thing I'm doing is I use sio2->_SIO2window->_SIO2windowrender twice. I use it in my load function to bring in all my images, materials etc, then go to a "splashLoad( void )" method to display the splash screen and once that's done, I use the _SIO2windowrender to go to my main render loop.
If that's where it's going wrong, then I may stab myself.
With a fork!
If I use sio2's code straight from Tutorial17 then it works.
If I take out his array items and GLdrawing to make the square (and make it spin), then it seems to load the logo but only for a split second.
I thought maybe I'm not rendering it correctly, so I added an sio2Sleep( 100 ) after the sio2WidgetRender(...) part, but the screen remains black until right at the last moment it flashes the SIO2 logo and then moves on to executing my code.
The only "unique" thing I'm doing is I use sio2->_SIO2window->_SIO2windowrender twice. I use it in my load function to bring in all my images, materials etc, then go to a "splashLoad( void )" method to display the splash screen and once that's done, I use the _SIO2windowrender to go to my main render loop.
If that's where it's going wrong, then I may stab myself.
With a fork!
Re: SIO2 Splash Screen
Oh. *#£$!
I am SO sorry to everyone for posting another stupid stupid problem - I promise I wont code late into the night and fabricate a problem that isn't a problem at all.
I was using a check that was "=" instead of "==". Goddamn equivalency checking :-/
It works now... so all is well, you may return to your homes... nothing to see here
*ahem*
I am SO sorry to everyone for posting another stupid stupid problem - I promise I wont code late into the night and fabricate a problem that isn't a problem at all.
I was using a check that was "=" instead of "==". Goddamn equivalency checking :-/
It works now... so all is well, you may return to your homes... nothing to see here
*ahem*
Re: SIO2 Splash Screen
Heh, we've all been there :-)
-j
-j
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Similar topics
» Problem with drawing on the screen in a 3d game
» Movie... not Splash...
» Blank Screen Every Render
» Black Screen AFTER Loading on Device
» Placing emitter at touch location - viewport size smaller than screen - tutorial 12
» Movie... not Splash...
» Blank Screen Every Render
» Black Screen AFTER Loading on Device
» Placing emitter at touch location - viewport size smaller than screen - tutorial 12
Permissions in this forum:
You cannot reply to topics in this forum