SIO2 Splash Screen

View previous topic View next topic Go down

SIO2 Splash Screen

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

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

View user profile http://www.evolve.pt/

Back to top Go down

Re: SIO2 Splash Screen

Post  meteors on 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
avatar
meteors

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

View user profile

Back to top Go down

Re: SIO2 Splash Screen

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

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: SIO2 Splash Screen

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

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: SIO2 Splash Screen

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

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

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

View user profile http://www.evolve.pt/

Back to top Go down

Re: SIO2 Splash Screen

Post  Jawdy on 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!
avatar
Jawdy

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

View user profile http://www.gaslightgames.co.uk

Back to top Go down

Re: SIO2 Splash Screen

Post  meteors on Sat Mar 28, 2009 1:01 pm

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


-j
avatar
meteors

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

View user profile

Back to top Go down

Re: SIO2 Splash Screen

Post  Jawdy on 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?
avatar
Jawdy

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

View user profile http://www.gaslightgames.co.uk

Back to top Go down

Re: SIO2 Splash Screen

Post  Jawdy on 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!
avatar
Jawdy

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

View user profile http://www.gaslightgames.co.uk

Back to top Go down

Re: SIO2 Splash Screen

Post  Jawdy on 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*
avatar
Jawdy

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

View user profile http://www.gaslightgames.co.uk

Back to top Go down

Re: SIO2 Splash Screen

Post  meteors on Sun Mar 29, 2009 10:15 am

Heh, we've all been there :-)


-j
avatar
meteors

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

View user profile

Back to top Go down

Re: SIO2 Splash Screen

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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