| |
btuck Account closed
Registered: Apr 2002 Posts: 5 |
a little question..
Not quite sure this is the place to ask but since there should be coders here I'll give it a try.. :)
I'm new to the coding part of the c64 scene and I've been browsing the net for information regarding different Graphic modes. I found this HiRes mode wich used multiplex sprites allowing the coder to use 2 constant colors and 2 individual colors per 8*8 char. I was wondering if there's any other way to use let's say 4 colors in hires mode.. mebe ploting the pixels one by one into location.. is that possible? if not, I don't exactly know how multiplexing works but could I change the resolution of the HiRes mode? from 96*200 to like 144*120 something? thanks.. |
|
| |
Dwangi
Registered: Dec 2001 Posts: 129 |
Hello btuck...
read this page... its about different gfx modes on teh c64...
http://www.studiostyle.sk/dmagic/gallery/gfxmodes.htm |
| |
btuck Account closed
Registered: Apr 2002 Posts: 5 |
Oh, great page :) now..
Let's take a look at the "Super Hires" mode, the res is 96*200 pixels/16 colors Using a hires background and several multiplexed hires sprites.
I'm wondering since I don't know that much about multiplexing (like how many sprites can be displayed on the same scanline and whatever) if the resulotion could be changed in an other way.
SHires = 96*200 (actually 96*167 if I'm not mistaking)
sprites are 24*21 pixels so 24 x 4 = 96 that would mean that there are four sprites in a horizontal line, while 21 x 8 = 168 so we got 8 sprites in a vertical line.
Now if we could move the sprites around to make a more "square" like image.. let's take 24 x 6 = 144 and 21 x 6 = 126 that would make a res of 144*126
the only problem I can come to think about is the "rules" of multiplexing.. could this be done? or can't I show more than 4 sprites per horizontal line or something like that?
thnks
|
| |
Dwangi
Registered: Dec 2001 Posts: 129 |
You can have maximum 8 sprites per line. That means that you can have 6 sprites side by side like you wanted, but in SHI mode they use 2 sprite-layers (4 sprites side by side overlapping another 4 sprites) so if you want 6 sprites side by side you can only have ONE sprite layer.
you can as many sprites you want in y-direction though... just set new sprites every 21th rasterline ... |
| |
btuck Account closed
Registered: Apr 2002 Posts: 5 |
that was exactly what I needed to know.. Thanks a bunch :) |