Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Kinoko on Fri 24/09/2004 03:57:21

Title: Full white tint/White Fade in-out room transition
Post by: Kinoko on Fri 24/09/2004 03:57:21
Can I use SetAmbientTint or any other function to get an object to be completely white? I'm trying to get a kind of saturated sunlight effect and at the moment, I've had to animate the object going from completely white to partly white on my own, and then use SetAmbientTint at full blast to carry it on from there. I realise it's a -tint- and probably shouldn't saturate full white anyway but... is there a way around this?

Also, is there any way to get a white fade in/out room transition?
Title: Re: Full white tint/White Fade in-out room transition
Post by: Pumaman on Sat 25/09/2004 22:59:17
Have you tried

SetAmbientTint(255, 255, 255, 100, 100);

or did this not white them out enough?
Title: Re: Full white tint/White Fade in-out room transition
Post by: TerranRich on Sun 26/09/2004 01:53:34
As for white room transitions, you might have to use a large white object. Otherwise, I think CJ should implement a way to set/change the default fade-out transition color...IF at all possible. :)
Title: Re: Full white tint/White Fade in-out room transition
Post by: Kinoko on Sun 26/09/2004 12:02:26
I used SetAmbientTint(255, 255, 255, 100, 100); and was really surprised that it only seemed to partially tint the picture. It was still very visible. If you want, I'll upload a picture later that demonstrates to what extent it tints (I can't just now though).

Neither of these problems are terribly important, but a white room transition would be nice (for that very much overused Hollywood effect) and a complete white "tint" would just save my game some disk space.
Title: Re: Full white tint/White Fade in-out room transition
Post by: Pumaman on Sun 26/09/2004 18:26:23
Ah yes, due to the colourization method it uses, that will actually just turn the image to greyscale.

A whiteout screen transition would be perfectly possible - I'll add it to my list.
Title: Re: Full white tint/White Fade in-out room transition
Post by: TerranRich on Mon 27/09/2004 02:13:28
Well, I was kind of thinking of a way for the user to specify a certain color. But if that's not possible, then a whiteout only additon would be awesome. :)
Title: Re: Full white tint/White Fade in-out room transition
Post by: on Mon 27/09/2004 02:13:59
The few times I ever needed a fade to white effect, I just set the transition to crossfade and then faded into an all-white room. From that room, I reset the transition and went to the next room.

Not the most elegant solution and it does add a room (and rules out 256 color games), but it worked well in a pinch until CJ makes something easier available.
Title: Re: Full white tint/White Fade in-out room transition
Post by: TerranRich on Mon 27/09/2004 02:17:44
You could also have an all-white fullscreen object fade in on the first room, then another corresponding all-white object fade out on the other, with an instant transition (or lack thereof) between rooms.
Title: Re: Full white tint/White Fade in-out room transition
Post by: Phemar on Mon 27/09/2004 14:23:32

Couldn't you also change the black color in the palette (I know it's locked, but you can change it with scripting) and in theory that should change the fadin color.

EDIT: Well, no it doesn't work, but if you're running a 320x200 game and your game is to letterbox res then the black borders at the top and bottom will appear white.

Off-topic: BTW, I noticed a function called SetPalette (color*); <- What on Earth does that do? It's not in the manual.
Title: Re: Full white tint/White Fade in-out room transition
Post by: strazer on Tue 28/09/2004 00:36:37
Keep an eye on FadeInColor/FadeOutColor (http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=387). :)