Enterprise Forever

:UK => Enterprise DevCompo => Enterprise DevCompo #2 => Topic started by: g0blinish on 2017.April.24. 17:28:50

Title: Dither256b
Post by: g0blinish on 2017.April.24. 17:28:50
ye olde algo xD
Title: Re: Dither256b
Post by: geco on 2017.April.24. 19:18:12
Looks cool, tomorrow i will download it and watch on emulator also :-)
Title: Re: Dither256b
Post by: gflorez on 2017.April.24. 20:03:58
Very good effect!

Thanks.
Title: Re: Dither256b
Post by: g0blinish on 2017.April.24. 21:13:26
I think some values for LPT must be fixed:
C000: character map
C400: font data ($C400/128 = $188)
Title: Re: Dither256b
Post by: g0blinish on 2017.April.25. 06:36:56
fixed&improoved
Title: Re: Dither256b
Post by: Zozosoft on 2017.April.25. 07:56:34
One hint: if you use EXOS LPT then you can use 27 character lines + status line = 28 total lines.
Title: Re: Dither256b
Post by: endi on 2017.April.25. 09:42:47
cool effect. I use this in my demo, but with rotating dots: https://youtu.be/5Eg14WLJmEk?t=329
try it with mixing this shade effect with some rotating.
Title: Re: Dither256b
Post by: g0blinish on 2017.April.25. 09:46:28
Same effect with Ork used at ZX Spectrum at demo what name I forgot. I am afraid tile data over 256 bytes.
Title: Re: Dither256b
Post by: g0blinish on 2017.April.25. 09:52:04
And I used same effect:
http://www.pouet.net/prod.php?which=68499

(caution:some boobs at screen)
Title: Re: Dither256b
Post by: SlashNet on 2017.April.25. 20:06:31
https://youtu.be/5TcsC1cVDoQ

dith256.com - 237 bytes
One minute of dith256.avi for YouTube - 1 665 778 644 bytes
:lol:
Title: Re: Dither256b
Post by: geco on 2017.April.26. 13:14:23
If you have time, you can try it with 4 colour character mode with half horizontal resolution also, I think it would be also very impressive :)
Title: Re: Dither256b
Post by: endi on 2017.April.26. 13:45:14
If you have time, you can try it with 4 colour character mode with half horizontal resolution also, I think it would be also very impressive :)

yes! and you can use GraCha editor for drawing the characters.
but not only 4 colors, 2*4!
Title: Re: Dither256b
Post by: IstvanV on 2017.April.26. 14:28:56
If you have time, you can try it with 4 colour character mode with half horizontal resolution also, I think it would be also very impressive :)

[attachurl=1]
[attachurl=2]
Title: Re: Dither256b
Post by: geco on 2017.April.26. 14:53:46
Looks cool :)
Title: Re: Dither256b
Post by: geco on 2017.April.26. 14:55:06
fixed&improoved
One hint for getting bit more CPU and speed, if you set port 0bfh to 0ch then waits are eliminated :)
Title: Re: Dither256b
Post by: IstvanV on 2017.April.26. 21:08:44
5 colors:
[attachurl=1]
Title: Re: Dither256b
Post by: geco on 2017.April.27. 08:35:58
5 colors:
(Attachment Link)
Better than I expected :)
Title: Re: Dither256b
Post by: IstvanV on 2017.April.27. 10:31:44
The optimization could be better, creating the character set takes up the majority of the code. :oops:

Edit: it could also be simplified by reducing the character height to 8 pixels, that way the dither has a tile size of 4*8 instead of 4*9, or even 4*4 (the lower half of the character is the same as the upper) which is ideal for 16 levels.
Title: Re: Dither256b
Post by: g0blinish on 2017.April.27. 10:38:35
I have another little algorithm for generating dither, but generation of 128 chars takes same space.
Title: Re: Dither256b
Post by: IstvanV on 2017.April.27. 21:36:43
Some optimizations allowed for saving 12 bytes, leaving enough space for synchronization to vertical blanking:
[attachurl=1]
Another modified version with 8 pixel character height, 40x28 screen, EXOS compatible reset routine, and some other minor changes:
[attachurl=2]

The effect can be changed with some minor edits, for example:
Code: ZiLOG Z80 Assembler
  1. A   0167  16 0E        LD    D, 0E
  2.  
  3. A   0178  15           DEC   D
Perhaps instead of the reset routine, the saved space could be used for changing the parameters with the keyboard, or the plasma effect could be made more complex and interesting.
Title: Re: Dither256b
Post by: SlashNet on 2017.September.08. 18:53:31
Another modified version with 8 pixel character height, 40x28 screen, EXOS compatible reset routine, and some other minor changes:
dith256_8.out

Video on Zozosoft request
https://youtu.be/tmma1KatmlY