SIO2Splash fade - not fading with multiple render windows

View previous topic View next topic Go down

SIO2Splash fade - not fading with multiple render windows

Post  Jawdy on Mon May 04, 2009 7:53 am

I'm having an interesting issue with the SplashScreen that I've avoided looking into until now.

I use multiple _SIO2windowrenderer lines and sub-methods, so that I can clearly separate all my menus etc. The first thing to be displayed is the "Powered by SIO2" splash screen, from Tutorial 17.
When I run Tutorial 17 (or start a new template and copy&paste the code) the splash screen fades out nicely. If I drop it into one of the windowrenderer places, it displays and shows for the correct time, but never fades.

I'm quite possibly (again) doing something daft, but it never seems to process the alpha channel - at least, that's my first guess.

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: SIO2Splash fade - not fading with multiple render windows

Post  sio2interactive on Mon May 04, 2009 4:24 pm

Have you tried with the original tutorial? If it fade properly in the original template it means that you are missing something somewhere... there's no black magic here:

_SIO2material->blend = SIO2_MATERIAL_ALPHA;

>> This will make the widget alpha

_SIO2widget->_SIO2material->diffuse->w = splash_time;

>> This will modify the alpha value...

Its that simple...

_________________
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 : 37
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: SIO2Splash fade - not fading with multiple render windows

Post  Jawdy on Tue May 05, 2009 2:10 pm

You sir, are a star!
Nay, a magician!

I was using some Widget code off a different tutorial and hadn't set the ->blend = SIO2_MATERIAL_ALPHA, it was on _DIVIDE instead. A simple changeover and bang, it's working perfectly.

Like I said, a STAR! sunny
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: SIO2Splash fade - not fading with multiple render windows

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