English Amiga Board


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

 
 
Thread Tools
Old 06 November 2021, 13:16   #1
sandruzzo
Registered User
 
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,344
Blitters' interleaved modulo issue

I'm trying to draw by 256*256 pixel with half of its height, by setting source blitter modulo at (256/8). With regular bitplanes layout I have no problems, but with interleaved bitplanes, it doesn't work: is there anything that I have to change? Bitplanes pointers, bitplanes modulo are ok.

Correct version:



Here with interleaved: source modulo is: (256/8)*NumPlanes

sandruzzo is offline  
Old 06 November 2021, 13:33   #2
sandruzzo
Registered User
 
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,344
I'm doing my math: maybe isn't possible at all with interleaved.
sandruzzo is offline  
Old 06 November 2021, 13:40   #3
DanScott
Lemon. / Core Design
 
DanScott's Avatar
 
Join Date: Mar 2016
Location: Tier 5
Posts: 1,213
Only possible if the source and destination width are the same.
DanScott is offline  
Old 06 November 2021, 15:26   #4
sandruzzo
Registered User
 
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,344
@DanScott

I can't do that, cos I'm using that picture as lookup table for both x and y zoom
sandruzzo is offline  
Old 06 November 2021, 15:30   #5
a/b
Registered User
 
Join Date: Jun 2016
Location: europe
Posts: 1,054
Quote:
Originally Posted by sandruzzo View Post
Here with interleaved: source modulo is: (256/8)*NumPlanes
(Width/8)*(NumPlanes-1) since you want to display 1 bitplane and then skip the rest to get to the correct next line.
a/b is offline  
Old 06 November 2021, 15:33   #6
sandruzzo
Registered User
 
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,344
@a/b

It doesnt work, like I wanted: doing all with one blitter pass..
sandruzzo is offline  
Old 06 November 2021, 15:49   #7
a/b
Registered User
 
Join Date: Jun 2016
Location: europe
Posts: 1,054
a->d blit:
moda = (width/8)*numplanes
modd = 0
size = (height/2)<<6+((width/8)*numplanes)/2

copper:
mods = (width/8)*(numplanes-1), plane0= bitmap+0*(Width/8), plane1 = bitmap+1*(Width/8), ...

Does this work?
a/b 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
Horizontal split screen with modulo trick ovale Coders. Asm / Hardware 43 03 August 2023 17:26
Raw Interleaved Graphics Hungry Horace Coders. General 12 28 January 2023 23:30
When is the modulo added to the bitplane pointers? DanScott Coders. Asm / Hardware 3 07 March 2016 18:24
How does AGA impact modulo? NorthWay Coders. Asm / Hardware 56 24 October 2015 02:21
Min. and Max. modulo values? AGS Coders. Asm / Hardware 7 07 February 2014 12:40

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 01:37.

Top

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