New demo uploaded: Black and White

All aspects of programming on the Commander X16.
Post Reply
CursorKeys
Posts: 82
Joined: Tue Jan 12, 2021 9:52 pm

New demo uploaded: Black and White

Post by CursorKeys »




Black and White




View File






X16 Forum

This is my third "Double PETSCII" demo.

But this time around, the colors are gone. It is only black and white.

This is a converted PETSCII picture,

the trick was to see if with no colors still some nice effects could be done.

Besides PETSCII, there are also a few effects.

The demo is written in KickC, and the PETSCII editor is once more the

alfa version of HyperPetscii.

The link to this can be found here: https://hyperpyxel.com/?p=229

Note: It is still pretty unstable and does not work well on a browser in the MAC for some reason.

If you cannot run it on an emulator, you can see it on youtube here: https://youtu.be/3x7OieGqQCg

Keep cool, and keep it (DOUBLE) PETSCII.






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

New demo uploaded: Black and White

Post by desertfish »


wait... how did you manage that vertical wave effect???   I tried something like that but couldn't get the vera to do what i wanted with the vertical scaling register

Elektron72
Posts: 137
Joined: Tue Jun 30, 2020 3:47 pm

New demo uploaded: Black and White

Post by Elektron72 »



4 minutes ago, desertfish said:




wait... how did you manage that vertical wave effect???   I tried something like that but couldn't get the vera to do what i wanted with the vertical scaling register



I believe this kind of effect is done by changing the vertical scroll register on each scanline, rather than vertical scaling.

x16tial
Posts: 177
Joined: Sun Feb 07, 2021 8:23 pm

New demo uploaded: Black and White

Post by x16tial »


So, adding to my review  and your reply @CursorKeys...

I'd suggest putting in a hotkey to instantly reveal the text: esc, spacebar, or just any key.  And then another press to continue on.  Forcing your user to read at a fixed rate is just bad juju, thanks ?

CursorKeys
Posts: 82
Joined: Tue Jan 12, 2021 9:52 pm

New demo uploaded: Black and White

Post by CursorKeys »



On 6/18/2021 at 1:59 AM, desertfish said:




wait... how did you manage that vertical wave effect???   I tried something like that but couldn't get the vera to do what i wanted with the vertical scaling register



 


On 6/18/2021 at 2:06 AM, Elektron72 said:




I believe this kind of effect is done by changing the vertical scroll register on each scanline, rather than vertical scaling.



This is correct. And for double wave effect, I change both H and V registers, and since it's two layers, I am change 4 registers.

Also I found it works pretty well every second line, but I am getting weird effects if I do it every scan-line. Anyway every second scan line is pretty good for the effects I want to do.



The interrupt looks more or less like this.

__interrupt void irq_line() {



*VERA_L1_HSCROLL_L = WAVES[loffset];

*VERA_L0_HSCROLL_L = WAVES[loffset];

loffset+=2;



// Reset the LINE interrupt magic below

 *VERA_IRQLINE_L = (unsigned char)loffset & 0xFF;

 if(loffset > 255) { *VERA_IEN |= 128;  }

 else { *VERA_IEN &= 255-128; }

*VERA_ISR = VERA_LINE;

 

Post Reply