Can you please add interlace support also in SAM COUPE mode(s) ? GFX mode 4 with 256x348 pixels with different palettes for each videoram....
Can you please add interlace support also in SAM COUPE mode(s) ? GFX mode 4 with 256x348 pixels with different palettes for each videoram....
hobot (28.02.2021)
ss4: 256*192, each pixel is a 4bit index pointing to a 16color palette. Each byte stores 2 pixels (4 bits for left, 4 bits right).
So, there is 256*192 * 4bit = 24576 bytes of pixel data, then 16 bytes of palette are stored, making overall file size 24592.
Palette color is stored in a format:
-GRBPgrb
- bit7 - non used
G bit6 - high-order bit for green
R bit5 - high-order bit for red
B bit4 - high-order bit for blue
P bit3 - brightness bit.
g bit2 - low-order bit for green
r bit1 - low-order bit for red
b bit0 - low-order bit for blue
What I'm using in ZX-Image for converting the Sam's color to RGB:
red=(R * 4 + r * 2 + P) * 36
green=(G * 4 + g * 2 + P) * 36
blue=(B * 4 + b * 2 + P) * 36
RGB = red * 256 * 256 + green * 256 + blue.
I don't remember where this magical 36 is coming from, but I've seen some kind of service manual which described all of this.
zxart.ee - архив программ, графики и музыки ZX Spectrum.
Прошу прощения, плохо читать умею
zxart.ee - архив программ, графики и музыки ZX Spectrum.
All interlace formats is ideal make as two standard screen files conect to one output file (if file size is not so big).
Then SS4+SS4. Here may be size of output file very big and not so comfortable for loading. Here may be better save interlaced SAM graphic as two separate SS4 files (separate file for each videoram). Use same filename similar as this:
picture.ss1 (24kB+palette)
picture.ss2 (24kB+palette)
If size of output interlaced file is very big then is for Z80 based computers better use two separate files. This is easy for loading from basic loader.
Super. Now I see difference in vertical hi-res (interlace). But can you accept in interlace better color mixing as in zx gigascreen? Of cource you must ignore hi-res details and accept only color mixing/combinations. Gigascreen pictures are visible in interlace mode on LCD TV if we switch two different screens under interrupt. Please add also SAM gigascreen visible as interlaced tv lines (256x384)
I have some ideas:
All low res screens as ZX 256x192 show automatically as 512x192 pixels on PC monitor (each zx pixel = 2x2 PC pixels). Then after select interlace mode will be picture size on PC monitor always same = 512x192 pixels (each zx interlace pixel = 2x1 PC pixel). On modern FULL HD or 4K PC monitors is ZX screen 259x192 very small for see details...
Interlace/gigascreen may be used for all SAM and ZX modes.
Next idea: add possibility show all ZX gigascreen and multigiga modes as interlaced screen instead mixed colors.
Next idea: add switch for disable attribute grid in gigascreen conversion. Then without grid will contain both videorams consistent pictures (better for show on LCD TV in interlace)
Последний раз редактировалось VELESOFT; 02.03.2021 в 23:28.
I can add gigascreen for SAM but in interlaced mode the picture will be worse than the one that is created specifically for interlaced mode.
I will add Zoom option.
I use different algos for gigascreen and interlaced screen. And in my opinion artist should convert image to the mode in which he plans to show the image.
А почему, когда в стандартный спековский экран цветной конвертишь все способы предлагаемого дитеринга - червячки? Почему нет режимов в регулярными заливками аля чанки?
Эту тему просматривают: 1 (пользователей: 0 , гостей: 1)