English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 25 November 2022, 12:32   #1
roondar
Registered User
 
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,408
Dual Layer Graphics example + source

Ever since making the Free Form Sprite Layer example a few years ago, I've been wanting to have another go at creating a dual layer screen on my A500 without using Dual Playfield mode. I eventually ended up with two ideas floating around in my head and decided that the best way to deal with these ideas was to turn them into my next video/article.

For comparison, I also added the standard repeating pattern Sprite background as used in several games. All in all, I ended up with an example program that shows three different ways of creating a dual layer screen.

As always, I've included the full source code and a download of the program itself on my website. Note that my example uses the startup code by Photon of Scoopex, a random number generator I found on EAB, written by Meynaf and uses tiles ripped from Turrican II. It requires at least 1MB of RAM (of which 512KB Chip RAM*).

The article & source can be found here:
https://powerprograms.nl/amiga/dual-layer.html

Here's the YouTube video:
[ Show youtube player ]

*) the example uses a lot of Chip Memory because everything for all three variants is kept in memory all the time. It needs at least 420KB of free Chip RAM to run.
roondar is online now  
Old 25 November 2022, 13:26   #2
vulture
Registered User
 
Join Date: Oct 2007
Location: Athens , Greece
Posts: 1,840
Very nice and very informative, thx roondar!
vulture is offline  
Old 25 November 2022, 14:43   #3
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
Very good article, as usual.
In particular the part about the dual layer with blitter in single playfield mode, which is not documented so precisely and exhaustively anywhere else.
ross is offline  
Old 25 November 2022, 15:28   #4
roondar
Registered User
 
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,408
Quote:
Originally Posted by vulture View Post
Very nice and very informative, thx roondar!
Thanks
Quote:
Originally Posted by ross View Post
Very good article, as usual.
In particular the part about the dual layer with blitter in single playfield mode, which is not documented so precisely and exhaustively anywhere else.
Thanks, it was a lot of fun to fiddle around with the Blitter and the palette settings. I had been wanting to one of these for aaaaages, but real life kept getting in the way.
I'm especially happy it managed to perform roughly identical to a simple Sprite layer
roondar is online now  
Old 25 November 2022, 17:01   #5
Jobbo
Registered User
 
Jobbo's Avatar
 
Join Date: Jun 2020
Location: Druidia
Posts: 386
Really nice work!

It must take a ton of effort to make those videos and the write ups, even compared to how much time it takes to make the code.

Love hearing about these sorts of experiments in great detail, much appreciated!
Jobbo is online now  
Old 25 November 2022, 19:12   #6
roondar
Registered User
 
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,408
Quote:
Originally Posted by Jobbo View Post
Really nice work!

It must take a ton of effort to make those videos and the write ups, even compared to how much time it takes to make the code.

Love hearing about these sorts of experiments in great detail, much appreciated!
Thanks!

Yes, the work on the article and video is "non-trivial"
I don't have an exact split, but it feels to me like it's a roughly 50/50 split between the code and the article/video.
roondar is online now  
Old 25 November 2022, 19:59   #7
alkis
Registered User
 
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
Very nice work, thank you.
Liked and subscribed of course.
alkis is offline  
Old 25 November 2022, 20:07   #8
robinsonb5
Registered User
 
Join Date: Mar 2012
Location: Norfolk, UK
Posts: 1,153
Very nice - I really like the tabbed presentation on the webpage, too.
robinsonb5 is offline  
Old 26 November 2022, 14:40   #9
paraj
Registered User
 
paraj's Avatar
 
Join Date: Feb 2017
Location: Denmark
Posts: 1,098
Very nice article! :
One small comment about the page is that the fixed margins makes it very hard to read on a small screen (e.g. phone).
paraj is offline  
Old 26 November 2022, 15:02   #10
roondar
Registered User
 
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,408
Quote:
Originally Posted by paraj View Post
Very nice article! :
One small comment about the page is that the fixed margins makes it very hard to read on a small screen (e.g. phone).
I'll have to take a look at that. It didn't use to do that, it used to size alongside the display side (i.e. no margins on phones). Thanks for pointing it out!

Edit: should be fixed now, though you may have to force a browser cache clear on your phone first before it'll sort itself out.

Last edited by roondar; 26 November 2022 at 15:18.
roondar is online now  
Old 26 November 2022, 16:14   #11
buzzybee
Registered User
 
Join Date: Oct 2015
Location: Landsberg / Germany
Posts: 526
Great feature, thank you for putting that together and sharing it. May I add that my games from the "Reshoot" series use the "fake" Dual Playfield mode that you mention, based on the benefits of AGA-chipset.

With the 256 color registers of the AGA-chipset, you may set up two playfields with 15 individual colors each; or two playfields with 15/7 individual colors. That way, sufficient color regs remain to set up sprite colors of your choice. Feels very desirable for a shoot-em-up game.

On AGA the color glitches mentioned in your video may be turned into a fake 3 or 4-bit alpha channel, thus providing the illusion of transparency. That is if the palette is chosen wisely.
buzzybee is offline  
Old 26 November 2022, 16:23   #12
paraj
Registered User
 
paraj's Avatar
 
Join Date: Feb 2017
Location: Denmark
Posts: 1,098
Quote:
Originally Posted by roondar View Post
I'll have to take a look at that. It didn't use to do that, it used to size alongside the display side (i.e. no margins on phones). Thanks for pointing it out!

Edit: should be fixed now, though you may have to force a browser cache clear on your phone first before it'll sort itself out.
Yep, fixed now, and the tabs work much better. Now I can properly enjoy your articles on my morning commute
paraj is offline  
Old 27 November 2022, 12:43   #13
roondar
Registered User
 
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,408
Quote:
Originally Posted by buzzybee View Post
Great feature, thank you for putting that together and sharing it. May I add that my games from the "Reshoot" series use the "fake" Dual Playfield mode that you mention, based on the benefits of AGA-chipset.

With the 256 color registers of the AGA-chipset, you may set up two playfields with 15 individual colors each; or two playfields with 15/7 individual colors. That way, sufficient color regs remain to set up sprite colors of your choice. Feels very desirable for a shoot-em-up game.

On AGA the color glitches mentioned in your video may be turned into a fake 3 or 4-bit alpha channel, thus providing the illusion of transparency. That is if the palette is chosen wisely.
That's a very clever way to use the extra bitplanes AGA offers for sure. I especially like those translucent clouds you added to Reshoot III.
roondar is online now  
Old 28 November 2022, 03:09   #14
lmimmfn
Registered User
 
Join Date: May 2018
Location: Ireland
Posts: 672
Quote:
Originally Posted by roondar View Post
That's a very clever way to use the extra bitplanes AGA offers for sure. I especially like those translucent clouds you added to Reshoot III.
Also a good for implementing shadows similar to HB mode.

Great video BTW, I really enjoyed that!!!
lmimmfn is online now  
Old 15 December 2022, 21:58   #15
ovale
Registered User
 
Join Date: Jun 2014
Location: milan / italy
Posts: 174
Thank you for the effort. What tools you used to make the animations in the video?
ovale is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Form Sprite Layer example + source roondar Coders. Asm / Hardware 51 02 December 2018 17:43
Dual Playfield 'Fast Bobs' example + source roondar Coders. Asm / Hardware 10 12 July 2017 16:11
Open-source graphics library Don_Adan Coders. System 32 15 January 2013 22:15
A600 dual kickstart, dual boot drive TreacleWench Hardware mods 41 18 May 2012 12:02
Graphics converter - RAW to source pmc request.Apps 19 18 May 2007 22:42

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 14:19.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09118 seconds with 15 queries