Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / A Problem with fading (part 2)

Author
Message
DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 25th Jul 2004 18:44
Hi

a bit back i asked how to fade from one screen to another. Thanks to one individual (i forgot who) i got it sorted out but now ihit a dead end.

if any of u have tried fading in full screen mode u might of niticed that the flicker when it changes background.

and what i noticed is that u can't alter the background or any images to that matter when altering the gamma values.

although i did get a fade off and on running it wouldn't change the background untill everything had stoped.

in brief it did this:
=========================
1. loaded background1

2. faded out

3. faded in

4. change background image
==========================

and what i want it to do is:

==========================
1. loaded background1

2. faded out

3. change background image

4. faded in
==========================

in other words swap 3 and 4 around.

any help of this problem would be usefull

thanks in advance
empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 26th Jul 2004 04:39
Have you tried something like this



Play Nice! Play Basic! Check it out. Now!

nFinity Emulator. Coming soon...
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 26th Jul 2004 06:36
Just an additional note to that - you will need to be running your program in fullscreen-exclusive mode to get the gamma adjustment to show.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 26th Jul 2004 08:17
i know about the gamma thing in ful screen exclusive mode.

the problem i seem to have is the fact that it fades out and then fades back in without changing the screen.

i given u my code to have a look at. it seems right to me but somethings just not quite right with it.
empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 26th Jul 2004 19:00 Edited at: 26th Jul 2004 20:13


Play Nice! Play Basic! Check it out. Now!

nFinity Emulator. Coming soon...
DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 27th Jul 2004 02:53
thank u so much.

how the hell could i miss the SYNC command out. what a dufus
DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 27th Jul 2004 03:24
tried what u put and still nothing. just a black screen. i'll give it a miss for the time being and i'll try and sort it out later on when i got the game working
empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 27th Jul 2004 18:12
Actually the sync command isn't required as set gamma automatically calls sync. But in the second for/next loop (the one that fades in) you have:
for i = 0 to 255 step -1

Just delete step -1 and it should run fine.

Play Nice! Play Basic! Check it out. Now!

nFinity Emulator. Coming soon...
DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 28th Jul 2004 02:25
that was a mistake by me. i noticed it strait away. thanx for pointing it out to us at least.

another one to go in the credits i see

the more the merrier i say

Login to post a reply

Server time is: 2024-11-27 02:41:11
Your offset time is: 2024-11-27 02:41:11