FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

SIO2 Splash Screen

4 posters

Go down

SIO2 Splash Screen Empty SIO2 Splash Screen

Post  andre.brito Wed Mar 25, 2009 10:22 am

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é
andre.brito
andre.brito

Posts : 13
Join date : 2009-01-05
Location : Lisbon, Portugal

http://www.evolve.pt/

Back to top Go down

SIO2 Splash Screen Empty Re: SIO2 Splash Screen

Post  meteors Wed Mar 25, 2009 10:56 am

I'll upload a sample app which shows a good way to do this. Just give me 24 hours.

Best,
-joshua
meteors
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

Back to top Go down

SIO2 Splash Screen Empty Re: SIO2 Splash Screen

Post  sio2interactive Wed Mar 25, 2009 3:55 pm

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.
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

SIO2 Splash Screen Empty Re: SIO2 Splash Screen

Post  sio2interactive Wed Mar 25, 2009 8:39 pm

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!
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

SIO2 Splash Screen Empty Re: SIO2 Splash Screen

Post  andre.brito Thu Mar 26, 2009 3:17 am

It's working great. Thanks very much.
andre.brito
andre.brito

Posts : 13
Join date : 2009-01-05
Location : Lisbon, Portugal

http://www.evolve.pt/

Back to top Go down

SIO2 Splash Screen Empty Re: SIO2 Splash Screen

Post  Jawdy Sat Mar 28, 2009 11:36 am

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!
Jawdy
Jawdy

Posts : 65
Join date : 2009-03-17
Location : UK

http://www.gaslightgames.co.uk

Back to top Go down

SIO2 Splash Screen Empty Re: SIO2 Splash Screen

Post  meteors Sat Mar 28, 2009 1:01 pm

Did you drag the video file into the Resources folder in XCode?


-j
meteors
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

Back to top Go down

SIO2 Splash Screen Empty Re: SIO2 Splash Screen

Post  Jawdy Sun Mar 29, 2009 8:34 am

meteors wrote:Did you drag the video file into the Resources folder in XCode?
-j
I'm using the Splash images - so poweredby_l and _p.jpeg's.

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?
Jawdy
Jawdy

Posts : 65
Join date : 2009-03-17
Location : UK

http://www.gaslightgames.co.uk

Back to top Go down

SIO2 Splash Screen Empty Re: SIO2 Splash Screen

Post  Jawdy Sun Mar 29, 2009 9:06 am

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!
Jawdy
Jawdy

Posts : 65
Join date : 2009-03-17
Location : UK

http://www.gaslightgames.co.uk

Back to top Go down

SIO2 Splash Screen Empty Re: SIO2 Splash Screen

Post  Jawdy Sun Mar 29, 2009 9:17 am

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*
Jawdy
Jawdy

Posts : 65
Join date : 2009-03-17
Location : UK

http://www.gaslightgames.co.uk

Back to top Go down

SIO2 Splash Screen Empty Re: SIO2 Splash Screen

Post  meteors Sun Mar 29, 2009 10:15 am

Heh, we've all been there :-)


-j
meteors
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

Back to top Go down

SIO2 Splash Screen Empty Re: SIO2 Splash Screen

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum