13 April 2018, 11:05 | #1 |
Registered User
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,302
|
Color Fading
When I coded a fade effect with pc, it was very easy, because I use a "big" quad coupled with alpha effect: job done!
It's that possible to do somenthing with Amiga? I would like to do a fade effect on Ham8 pics |
13 April 2018, 11:38 | #2 |
Lemon. / Core Design
Join Date: Mar 2016
Location: Tier 5
Posts: 1,212
|
You would have to fade not only your base palette, but also the contents of the bitplanes that modify the R,G or B component.
I have no idea how this can easily be done quickly. Perhaps using some kind of blitter subtractive algorithm (similar to shade bobs)... but that would be quite slow. |
13 April 2018, 12:21 | #3 |
Registered User
Join Date: Feb 2010
Location: Espoo / Finland
Posts: 818
|
Yeah, I think the fastest way to fade would probably be to add a sprite layer on top of image and fill that with a dithered pattern to achieve fading. Won't look as good as modifying actual RGB-values, but should be fairly fast
|
13 April 2018, 13:18 | #4 | |
Registered User
Join Date: Mar 2012
Location: Norfolk, UK
Posts: 1,154
|
Quote:
|
|
13 April 2018, 13:32 | #5 | |
Lemon. / Core Design
Join Date: Mar 2016
Location: Tier 5
Posts: 1,212
|
Quote:
Precalculate the noise as a page (for example 1024 pixels wide), with 64 pixel vertical columns of different intensities of noise, and blit the strips (with a random y start offset) into the sprite data |
|
14 April 2018, 17:45 | #6 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,613
|
Yes, a proper fade must be done by processing the bitplane data. HAM8 = more MA slots taken+more to process+same Blitter = substantially slower.
You could process parts of it at a time with a pattern, e.g. "blinds" or bobs and it would appear smoother, or shrink the screen. If you have ~1.1MB free chip or fast you could process 14 frames while showing the pic to be ready in time for the fade. |
14 April 2018, 20:36 | #7 |
Registered User
Join Date: Dec 2014
Location: germany
Posts: 439
|
@robinsonb5: That's a nice method, thanks for sharing!
Hmm, I'd think a HAM8 fade on AGA would be same speed or faster than a HAM6-fade on OCS (both lowres). HAM6 on OCS: ~40,000 chipmem slots per frame free for blitter/copper/cpu if only display dma is active, HAM8 on AGA (FMODE=3): ~60,000 slots free. HAM6 needs to fade 4 planes, HAM8 6 planes - so roughly 10k slots per frame and plane available for both. If you have additional audio/copper dma OCS is more affected because it leaves a smaller percentage of available slots. |
14 April 2018, 23:10 | #8 | |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,613
|
Quote:
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Colour fading? | h0ffman | Coders. General | 17 | 02 December 2018 12:41 |
Color Saturation and Color Tint/Hue | Retro-Nerd | support.WinUAE | 22 | 02 August 2018 10:38 |
Printing in color with WinUAE on color laser | source | support.Apps | 7 | 14 April 2013 00:32 |
CD32 sound fading in and out | Cooljerk | support.Hardware | 4 | 31 October 2011 21:30 |
ISO true color to 256 color algorithm | Lord Riton | Coders. General | 19 | 15 April 2011 17:49 |
|
|