Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Fade-in/fade-out
2006-05-03 10:18
Axel
Account closed

Registered: Apr 2006
Posts: 42
Fade-in/fade-out

How to fade-in and fade-out Multicolor picture?
How to code it?
 
... 3 posts hidden. Click here to view all posts....
 
2006-05-03 21:32
TNT
Account closed

Registered: Oct 2004
Posts: 189
Oswald: the people I know think it's self-explanatory already :) As Raven already told - upper and lower nybbles have wanted color sequence where index is old color, table value is the new one. Lets take first 16 entries for fading only red/blue:

00 0f 09 0e 02 0c 00 0c 09 00 02 00 0b 05 06 0c

High nybble stays zero as it was already black, white goes through 01-0f-0c-0b-00, red 02-09-00 etc. To expand the table to 256 entries you use the same 16-byte sequence for low nybbles, but change the high nybble every 16 bytes. Using single table forces the same end sequence to all colors having same color anywhere in the sequence, so multiple tables for different steps gives nicer result. That way you can also make colors reach black/white with correct relative speed.
2006-05-03 21:52
Oswald

Registered: Apr 2002
Posts: 5020
tnt, well done :)

anyone ever done a fader so that all colors reaches black/white at the same time ? I'd like to check some examples.
2006-05-04 06:11
Hein

Registered: Apr 2004
Posts: 933
You can create a table which has such values. There was a period in Amiga democreating people created fades with certain shades, like blue fades, red fades and such. Allthough c64 colourspectrum is too small to get a good result.

Final part in Cosmail has such fade, it fades to blue first before it fades to black.

2006-05-04 06:22
Zyron

Registered: Jan 2002
Posts: 2381
Hmm, didn't Spirit use fades like that in Spiritual Dreams?
2006-05-04 07:56
Spinball

Registered: Sep 2002
Posts: 87
to get your fades the easy way you can also use hires-fader v1/2 from grize shazam. (can be found here: Shazam Tool Collection )
2006-05-04 08:10
WVL

Registered: Mar 2002
Posts: 886
A while ago i made a small tool for Pinball dreams to optimize bitmaps for fading.

Maybe I should release it someday.. it allows to fade every char at a specific time, (even all at the same time if you like it). The routine easily runs at 50fps for 99% of the bitmaps.

If there are enough ppl asking for it, I will release it to the public, including the c64 sources..

maybe it's better if i explain how it works :)

The tool analyzes the picture, and checks how many colors are used in each char. If it is only one color (excluding d021), it will put this color in the $d800 bitcombo. If there are 2 colors, it will put them in the $0400 bitcombo.

This way you can very easily generate some speedcode which only needs to update the minimum number of bytes -> faster -> you manage in 1 frame.
2006-05-04 08:38
Ninja

Registered: Jan 2002
Posts: 405
Release it! You never know when it gets useful for someone. :D

That reminds me that I could release my C-Koala-Remapper, too, somewhen. It really helps when packing GFX. Sigh, so much to do...
2006-05-04 12:15
Jak T Rip

Registered: Feb 2002
Posts: 39
Don't remind me of all the unreleased tools that lie around here... :) Does anyone know a good bitmap to char converter that does consider also the color ram and does check if the colors used in the bitmap are not stupidly mapped?
If anyone needs one-colour hires remapping you can use my hires editor update.

Axel, did you proceed with the fading? The easiest way to understand fading is probably to get a fader tool like the one from shazam mentioned earlier and browse through the code. (that's how I did it)
2006-05-04 15:31
Axel
Account closed

Registered: Apr 2006
Posts: 42
Thx, I already made fade-out and fade-in routines.
2006-12-27 07:13
Stainless Steel

Registered: Mar 2003
Posts: 966
Quoting WVL
A while ago i made a small tool for Pinball dreams to optimize bitmaps for fading.


By all means Werner, please release it!

Previous - 1 | 2 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Alakran_64
MaD ][/Starship
Krill/Plush
Guests online: 120
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Diskmag Editors
1 Jazzcat  (9.4)
2 Magic  (9.4)
3 hedning  (9.2)
4 Elwix  (9.1)
5 A Life in Hell  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.083 sec.