phased software sprites, too!

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andrew Davie

In this version I've fixed the NOP wait loop bug (described in previous post), and also tripled the vertical resolution of the software sprites. It's a bit astounding, really - the whole phased chronocolour (pCC) system works on phased colour changes in triplets of lines. In theory, each 'pixel unit' is a combination of 3 scanlines which I call a 'trixel'.  Within the trixel, the colours are cycled. 

I was looking at the relatively 'jerky' nature of the y movement (3 scanline resolution) and I just had a play with moving one line at a time. That works insofar as the sprites are drawn with the correct shape - but they were the wrong colours.... depending on which of the 3 phase lines they started drawing on.

But this wasn't a problem, but instead a great opportunity. If I also give the sprites themselves a phase, then the two phases (y position and sprite colour) can be summed to produce a consistent phase for the sprite regardless of the sub-pixel line it's inside. And as a bonus I get fine single-scanline movement.

So I did that - and it works! Beautifully!  Compare the y movement in this video with previous versions. And note that there are now 3 different colour lemmings - all drawn, incidentally, from exactly the same graphical data. It's just a byproduct of the single line resolution and phasing for the lemmings themselves that allows this.

I'm a bit surprised, actually, that it works. Not only works, but works well.  Various glitches on the screen are because this isn't fully cleaned up yet. Won't take long!


The above video shows the new system.  Previous system is shown in the video below for easy comparison of the differences (sprite colours, but most importantly the much courser vertical movement and general visuals).


Andrew Davie

Minor updates + a jump to the Lemmings just to show how many there are when they're all stuck in one place.  There's a binary attached for you to see it for yourself.