English Amiga Board


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

 
 
Thread Tools
Old 26 September 2021, 18:50   #1
chadderack
Registered User
 
chadderack's Avatar
 
Join Date: Jul 2021
Location: Sandy, UT
Age: 55
Posts: 230
(help?) Tiles not lining up

Hi

So I'm having an issue getting a 4x4 set of 16x16 tiles to display
via bitplane pointers (the copper)....

I'm creating a "raw", 4-bitplane image in memory... and I zero everything out. For each bitplane, I'm putting 2 bytes (1 word) of #$FFFF (all bits on) into the image structure for ALL 4 bitplanes.

Apparently each of the bitplanes is offset by 40 bytes ($28) in the source, or it's supposed to be.

I'm expecting to see just black boxes; but there's a white edge on one side and a gray edge on the other side of each block.

Is this because of the background bitplane interacting with the "black" tiles?

ETA: The palette indexes are:

bad white edge: 5
bad gray edge: A
"black": F
brown background: 0



Thanks for any insight.
Chad.
Attached Thumbnails
Click image for larger version

Name:	messed_up.png
Views:	271
Size:	7.4 KB
ID:	73326  
chadderack is offline  
Old 26 September 2021, 18:57   #2
chadderack
Registered User
 
chadderack's Avatar
 
Join Date: Jul 2021
Location: Sandy, UT
Age: 55
Posts: 230
I tried setting the BG color in the copper to the same "black" (0x111) color, but the bars are still there.

Attached Thumbnails
Click image for larger version

Name:	messed_up2.png
Views:	266
Size:	7.5 KB
ID:	73327  
chadderack is offline  
Old 26 September 2021, 19:29   #3
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,170
blitter data needs to be 16 pixel wider because of possible shifting
jotd is offline  
Old 26 September 2021, 20:38   #4
chadderack
Registered User
 
chadderack's Avatar
 
Join Date: Jul 2021
Location: Sandy, UT
Age: 55
Posts: 230
Quote:
Originally Posted by jotd View Post
blitter data needs to be 16 pixel wider because of possible shifting
Thanks. I'm just not familiar with the hardware yet.

It seems like bitplanes 0 and 2 align fine and 1 and 3 align fine.
When combining those, they seem to work fine.

But they don't line up vertically. I'm guessing this has something to do with allowing dual playfields?

In my code I'm just going with the one playfield.

The first set of tiles (top) combine correctly to form color #A
The second (bottom) combine correctly to form color #5.



I was thinking it was maybe some kind of minterm... but I'm not using the blitter (at least directly). Just poking the copperlist with pointers.
Attached Thumbnails
Click image for larger version

Name:	messed_up3.png
Views:	244
Size:	6.2 KB
ID:	73328  
chadderack is offline  
Old 26 September 2021, 20:41   #5
Jobbo
Registered User
 
Jobbo's Avatar
 
Join Date: Jun 2020
Location: Druidia
Posts: 388
Bplcon1 might be nonzero. This register fine scrolls odd and even planes.
Jobbo is online now  
Old 26 September 2021, 20:55   #6
chadderack
Registered User
 
chadderack's Avatar
 
Join Date: Jul 2021
Location: Sandy, UT
Age: 55
Posts: 230
Quote:
Originally Posted by Jobbo View Post
Bplcon1 might be nonzero. This register fine scrolls odd and even planes.
Perfect! You're a genius
(so is jotd, but for other reasons--PacMan, etc )

I'm just not as articulate yet with the Amiga. I owe you one!



Attached Thumbnails
Click image for larger version

Name:	messed_up4.png
Views:	226
Size:	6.2 KB
ID:	73329   Click image for larger version

Name:	messed_up5.png
Views:	216
Size:	51.0 KB
ID:	73330  
chadderack 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
Pirates! - Tiles issue adalsgaard project.Maptapper 8 25 October 2016 22:49
Giana Sisters Tiles BippyM project.Maptapper 6 21 March 2016 17:36
Dragon Tiles Badders request.Old Rare Games 2 28 August 2006 17:19
Found -> Dragon Tiles BippyM Looking for a game name ? 5 21 July 2004 10:05

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 17:30.

Top

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