VERA FX 1 Demo (FLD effect preview)

Chat about anything CX16 related that doesn't fit elsewhere
Post Reply
Geehaf
Posts: 25
Joined: Sun May 03, 2020 5:08 am

VERA FX 1 Demo (FLD effect preview)

Post by Geehaf »


I did publish this link on the FB group earlier but just in case you missed it

A very small sneak peek at one of the effects I've coded for my upcoming X16 demo:

VERA.FX 1

Inspiration came from a C64 Flexible Line Distance (FLD) routine I wrote back in the 1980s!

Hopefully the full demo will be released soon...(all fingers crossed ? ).

Not a sprite in sight!

 





 

Chris L
Posts: 2
Joined: Tue Jan 12, 2021 7:06 pm

VERA FX 1 Demo (FLD effect preview)

Post by Chris L »


Man, that is an awesome effect demo - well done!

User avatar
desertfish
Posts: 1092
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

VERA FX 1 Demo (FLD effect preview)

Post by desertfish »


is this sumulated by drawing graphics or have you actually replicated the same effect on the Vera? :classic_ohmy:

Guybrush
Posts: 63
Joined: Fri Jul 10, 2020 10:38 pm

VERA FX 1 Demo (FLD effect preview)

Post by Guybrush »


It's most probably made by changing a bitmap layer's tile data address for each scanline.

Geehaf
Posts: 25
Joined: Sun May 03, 2020 5:08 am

VERA FX 1 Demo (FLD effect preview)

Post by Geehaf »


Thanks for the interest! It works by generating a pair of line interrupts for each visible line of tiles, then adjusting the vertical scroll position for the Tile layer accordingly based upon a sine wave pattern, i.e. the 1st line interrupt "switches on" the tile line and the 2nd "switches off" the tile line and is then repeated for all visible moving lines. 

Tile graphics data is not manipulated as such.

Initially I did consider basing the effect on updating the tile base address register but the "grain" of this address is limited to a multiple of 2048 bytes.

?

User avatar
desertfish
Posts: 1092
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

VERA FX 1 Demo (FLD effect preview)

Post by desertfish »


Ah I see.  It's using the documented stuff to scroll tiles, not somehow disabling all video output during a certain time and then re-enabling it again a few raster lines later  (as it had to be done with the FLD effect on the c64 I believe?)

Geehaf
Posts: 25
Joined: Sun May 03, 2020 5:08 am

VERA FX 1 Demo (FLD effect preview)

Post by Geehaf »



28 minutes ago, desertfish said:




Ah I see.  It's using the documented stuff to scroll tiles, not somehow disabling all video output during a certain time and then re-enabling it again a few raster lines later  (as it had to be done with the FLD effect on the c64 I believe?)



Yes, all documented VERA registers etc. The routine does disable the tile layer between each tile line to stop VERA outputting any tile graphics (this is the space highlighted in yellow below) and dynamically determines the next relative vertical scroll position for the layer in relation to the end position of the previous line. 

Cheers.

image.png.599c2bff771bd96c21b1e871e43a971f.png

Post Reply