Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
bitplane blurs
Posted by: damog Sep,23.2013-00:53 

hello all!

it's that time of the month where I plea for some assistance with a little something i'm working on.. it's driving me nuts.. mostly because i've done this before easily but for some reason i just can't get it going this time round :/

i've a 1 plane fx that i want to apply the cheap'n'cheerful bitplane trail/blur effect on. i just cant get it working properly!

here's the gist of the loop:

main_loop
lea blurpal132,a0 ;first palette
moveq #0,d0
move.w plane,d0 ;current plane
lsl.w #4,d0 ;x16
lea (a0,d0.w),a0
movem.l (a0),d0-d7
movem.l d0-d7,$ffff8240
do_fx
bsr plane_clear
bsr draw_to_plane

bsr screen_swap ;swap logic and physic, wait for vbl
update_plane
addq.w #1,plane_wait ;every other frame
andi.w #1,plane_wait
bne.s no_plane_reset

add.w #2,plane
cmp.w #6,plane ;rotate across 3 planes
bne.s no_plane_reset
move.w #0,plane

no_plane_reset
bra.s main_loop

so i update the plane offset every 2 frames, and at the top of the loop push the correct palette according to the plane variable.. i then draw the effect to the screenbase+plane offset..

my palette plane dominance order is:

vbl 1: 1,3,2
vbl 2: 1,3,2
vbl 3: 2,1,3
vbl 4: 2,1,3
vbl 5: 3,2,1
vbl 6: 3,2,1

and loop...

incase its not obvious i only want to trail across 3 planes..

can anyone see what i'm doing wrong?!!!

d
x










[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
bitplane blurs damog Sep,23.2013-00:53
  Re: bitplane blurs ggn Sep,23.2013-08:23
  Re: bitplane blurs Bod/STAX Sep,23.2013-10:12
    Re: bitplane blurs damog Sep,23.2013-10:29
      Re: bitplane blurs ggn Sep,23.2013-10:46
        Re: bitplane blurs damo-rg Sep,23.2013-11:45
          Re: bitplane blurs ggn Sep,23.2013-11:56
            Re: bitplane blurs damo Sep,23.2013-12:14
              Re: bitplane blurs damo Sep,23.2013-13:48


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson