English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General > Coders. Tutorials

 
 
Thread Tools
Old 05 November 2015, 21:43   #1
Leffmann

 
Join Date: Jul 2008
Location: Sweden
Posts: 2,025
Post Copper-driven tile map

Here's a quick example of the technique discussed here:
http://eab.abime.net/showthread.php?t=62682&page=9

This is the closest you can get to a character generator on the Amiga. The Copper program drives the Blitter to do all conversion and drawing of data. Once it's running it's fully automatic, and the user only needs to poke a single byte to update a full tile on the screen.
Attached Files
File Type: zip autotilemap.zip (18.9 KB, 158 views)

Last edited by Leffmann; 08 November 2015 at 16:35.
Leffmann is offline  
AdSense AdSense  
Old 05 November 2015, 23:42   #2
Lonewolf10
AMOS Extensions Developer
Lonewolf10's Avatar
 
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 38
Posts: 1,917
Thanks for sharing
Lonewolf10 is offline  
Old 06 November 2015, 05:54   #3
ReadOnlyCat
Code Kitten

 
Join Date: Aug 2015
Location: Montreal/Canadia
Age: 46
Posts: 1,012
Quote:
Originally Posted by Leffmann View Post
Here's a quick example of the technique discussed here:
http://eab.abime.net/showthread.php?t=62682&page=9

This is the closest you can get to a character generator on the Amiga. The Copper program drives the Blitter to do all conversion and drawing of data. Once it's running it's fully automatic, and the user only needs to poke a single byte to update a full tile on the screen.
Wow, thanks for sharing! You should put this on Aminet.

I haven't had time to look at it yet (but will definitely this week end) but I guess the setup code is assembly?
Also, I wonder how feasible it would be to make this OS compatible? After all, this is "just" a big copperlist which graphics.library should be able to merge just fine, so with a little bit of tinkering the OS could maybe be extended into offering text-mode screens.

Hum... on second thought that might be tricky since the OS will want to use the blitter at times but I seem to recall that graphics.library allows programs to monopolize it.
It is such a shame I have so many others things to do.
ReadOnlyCat is offline  
Old 08 November 2015, 16:44   #4
Leffmann

 
Join Date: Jul 2008
Location: Sweden
Posts: 2,025
The example here claims the display and the Blitter, but leaves the OS and other programs running in the background. The Copper program needs to modify itself every frame for this to work, and you need full ownership of the Blitter, so I'm not sure you can incorporate this into a regular dragable Intuition screen.

I just posted it here since you guys had a discussion on this technique and I had a working example, it's not really worth using since there are more efficient ways of drawing tile graphics.
Leffmann is offline  
Old 09 November 2015, 03:48   #5
ReadOnlyCat
Code Kitten

 
Join Date: Aug 2015
Location: Montreal/Canadia
Age: 46
Posts: 1,012
You're right obviously but the idea of having a fully hardware-based tile mode supported by the OS really sounds really nice to my hears.

I just looked at the code and it is really a nice piece of assembly, short, clear and to the point. I really like the fact that the copper prepares its blit-list entirely autonomously and that there really is no extra fat anywhere.
It would be a really good example to use in a "copper and blitter" course.

Also, I like your
setsystem.s
file, impressively meticulous and exhaustive! Is it available under a particular license?
ReadOnlyCat is offline  
Old 11 November 2015, 18:17   #6
Leffmann

 
Join Date: Jul 2008
Location: Sweden
Posts: 2,025
setsystem.s is in the public domain, if you'd like to use it.
Leffmann is offline  
AdSense AdSense  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for Scene (Tile Map) Editor for use with Turbo Plus extension/Amos Michael Parent request.Apps 0 28 July 2015 22:18
Blitter busy flag with blitter DMA off? NorthWay Coders. Asm / Hardware 9 23 February 2014 22:05
Codetapper's new graphics, tile, level and map ripper! Codetapper project.Maptapper 56 22 June 2013 17:25
Tile map sample Blip Coders. General 1 18 July 2007 14:53
Tile Map Editor stainy request.Apps 4 04 April 2007 02:09

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:11.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.12521 seconds with 13 queries