18 May 2021, 21:26 | #1 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,409
|
Copper Chunky example + source
Ever since starting my Amiga development adventures, I've been wanting to create a Copper Chunky screen. Some time ago, I thought it might be nice to turn that into one of my video's & articles. And with that, the next episode in my Amiga Tech series was created.
Naturally, I've included the full source code and a download of the program itself on my website. I had a lot of fun experimenting with this one. Note that my example uses the startup code by Photon of Scoopex and requires at least 1MB of RAM (of which 512KB Chip RAM). The article/source can be found here: http://powerprograms.nl/amiga/copper-chunky.html Here's the YouTube video: [ Show youtube player ] Note that emulating this using an AGA configuration requires the 'Subpixel Display Emulation' setting to be activated. Last edited by roondar; 18 May 2021 at 21:33. Reason: Fixed the link to my website :S |
18 May 2021, 21:53 | #2 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
Excellent and complete article!
|
18 May 2021, 22:10 | #3 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Good stuff indeed, great effort!
|
18 May 2021, 22:27 | #4 |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
Indeed fabulous stuff!
|
18 May 2021, 23:12 | #5 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,409
|
Thanks all. Experimenting with the Copper is always fun
|
18 May 2021, 23:17 | #6 |
J.M.D - Bedroom Musician
Join Date: Apr 2014
Location: los angeles,ca
Posts: 3,519
|
Was this done on AGA? (no, wasn't) What about a 3d floor effect?
Listening to the tutorial you say will need a LUT for every degree of rotation, but i think that you take a limited amount, like 16 or 32 you can still have a decent approximation depending on what you want to do Last edited by saimon69; 18 May 2021 at 23:34. |
18 May 2021, 23:41 | #7 | ||
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,409
|
Quote:
Quote:
It may be worth trying something different here for a 'real' release/demo, but for an introduction/example I think this is good enough |
||
19 May 2021, 01:12 | #8 |
Registered User
Join Date: Dec 2017
Location: Austin, TX
Age: 41
Posts: 405
|
Nice! I played with copper chunky a while back but didn't get beyond 8 pixel resolution.
|
19 May 2021, 08:11 | #9 |
Registered User
Join Date: Dec 2017
Location: Denmark
Posts: 179
|
Looks sweet.
With this you could easily do per line zooming, with different zoom values for every X or Y line, to make a wobble/wave like effect. Guess the tables could also make a ring-ripple effect from center. |
19 May 2021, 10:27 | #10 |
Registered User
Join Date: Feb 2008
Location: Northampton/UK
Posts: 524
|
Beautifully explained. Behind the smoke and mirrors of Demo effects. Loved it!
|
19 May 2021, 10:34 | #11 |
OCS forever!
Join Date: Mar 2019
Location: Birmingham, UK
Posts: 418
|
Awesome. I need to go through this in detail because on first glance I'm like "wtf how what"
|
19 May 2021, 11:05 | #12 | ||
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,409
|
Quote:
Quote:
|
||
19 May 2021, 12:24 | #13 |
Registered User
Join Date: Feb 2018
Location: Poland
Posts: 352
|
As always great finding Roondar, and also explained smoothly!
|
19 May 2021, 12:47 | #14 |
Inviyya Dude!
Join Date: Sep 2016
Location: Amiga Island
Posts: 2,770
|
Always something new to learn from Amiga coding guru Roony.
|
19 May 2021, 12:58 | #15 |
Registered User
Join Date: May 2004
Location: Somewhere secret
Age: 50
Posts: 364
|
Really good explanation of everything, thanks!
I always thought that rotozoomers precalced 90 degrees of rotation and just used 4 pre-rotated versions of the source image (pre-rotated during startup/init) to avoid having so many tables? But that is possibly a false economy depending on the source image size :P |
19 May 2021, 13:03 | #16 | |
Lemon. / Core Design
Join Date: Mar 2016
Location: Tier 5
Posts: 1,211
|
Quote:
eg. move.w XX(a0),YY(a1) move.w XX(a0),YY(a1) move.w XX(a0),YY(a1) move.w XX(a0),YY(a1) ...... ...... ...... ...... rts with XX being the text source offset, and YY being the copper list address offset |
|
19 May 2021, 14:16 | #17 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,409
|
To be clear, this is my take on the rotozoomer - it's certainly possible other or better ways exist. It seemed to be the best option to me at the time. I did try to make use of the symmetry in rotation by only creating 90 degrees of pre-calculated table, but I couldn't make it work in time for this to be released so I gave up (it was either too slow or just didn't draw the correct images).
I'm interested in knowing how that code-precalculation is supposed to work though, any info on what exactly is being done? |
19 May 2021, 17:21 | #18 |
old bearded fool
Join Date: Jan 2010
Location: Bangkok
Age: 56
Posts: 775
|
roondar,
Thanks for the lesson, learned something again, and subscribed. I had no idea these chunky tricks were done in precalculated copper tables, although was aware of the cosinus/sinus tables for integer speed. |
19 May 2021, 17:54 | #19 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,162
|
roondar I like the video, and also the humility you put in that video.
Why can't we change 1 color per 1 pixel line damnit ? I wonder what was used in the "Brian the lion" title screen with Brian letters wobbling all over. Isn't it possible to "pipeline" the changes and create 1 pixel color with enough colors? say 8 colors? (possibly what I'm saying is stoopid) |
19 May 2021, 22:17 | #20 |
Zone Friend
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
|
Great tutorial, Also thumbs up for mentioning dr dobbs, I love looking at the articles in that and byte magazine, so much code from the golden days
Good on you for giving love to Amanita Muscaria, I haven't eaten those in years, I prefer psilocybin |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Combining copper scrolling with copper background | phx | Coders. Asm / Hardware | 16 | 13 February 2021 12:41 |
Requested: Chunky Copper Tutorial | sandruzzo | Coders. General | 27 | 16 August 2020 19:35 |
Copper Chunky Calvin & Hobbes rotozoom? | ReadOnlyCat | support.Demos | 5 | 10 July 2018 10:47 |
Best way to mix blitting with copper and copper effects | roondar | Coders. Asm / Hardware | 3 | 12 September 2016 13:12 |
Copper source wanted. | Six | Coders. General | 4 | 24 November 2004 16:08 |
|
|