News for hackers. Stuff that matters.
Re:Nine – seemingly impossible C64 demo by kbelder on Tuesday February 04, 2025 @07:34PM (#42941610)
Neat. Having more than 8 sprites on screen is not hard, it just requires some well-timed interrupts to move a sprite from above the current raster location to below it, so that the same sprite is drawn multiple times.

But I'm not sure about the end of the demo where they are all rotating on the same line. I guess it could be done with interrupts occurring partway through the horizontal scanline, but I didn't think they could be that precise?

Re:Nine – seemingly impossible C64 demo by egypturnash on Tuesday February 04, 2025 @07:44PM (#42941729)
Nope, that’s not it. There’s a video out there already that dissects it and figures out the trick.
Re:Nine – seemingly impossible C64 demo by peterleiser on Tuesday February 04, 2025 @10:21PM (#42943289)
I don't know the trick, but take a look at the "7". It looks like it's made from the vertical line in "4" and a portion of another number.
Re:Nine – seemingly impossible C64 demo by badc0ffee on Wednesday February 05, 2025 @01:38AM (#42944741)
This is true, but not relevant to the trick.
Re:Nine – seemingly impossible C64 demo by o11c on Tuesday February 04, 2025 @07:41PM (#42941688)
Youtube comments said something about "multiple apparent sprites per actual sprite, with stretching"?
Re:Nine – seemingly impossible C64 demo by pwrrr on Wednesday February 05, 2025 @05:49AM (#42946719)
Yeah, you can x and/or y expand a sprite, then change it to make it look like it contains more data by cleverly drawing the sprite because 1 pixel becomes 2 pixels wide in expanded mode.
Re:Nine – seemingly impossible C64 demo by boltzmann-brain on Tuesday February 04, 2025 @08:20PM (#42942139)
you can't multiplex sprites so that more than 8 appear on the same line.

the secret is to pretend you have a 9th sprite by emulating it with characters that look exactly like one of the sprites would.

Re:Nine – seemingly impossible C64 demo by jchw on Tuesday February 04, 2025 @08:40PM (#42942379)
But in this case, that (alone) can't be it because all 9 sprites clip (smoothly) in and out of the border. So they've really gotten cheeky with this one.
Re:Nine – seemingly impossible C64 demo by egypturnash on Tuesday February 04, 2025 @08:39PM (#42942370)
That stops working when you open the borders and put sprites outside the area the video chip will render characters/bitmaps.
Re:Nine – seemingly impossible C64 demo by eru on Tuesday February 04, 2025 @10:11PM (#42943226)
Yes, but the demo is really cheeky about that.

The borders are open when you can still do the normal multiplexing, because there's lots of vertical separation between the sprites.

Later, when they put the sprites together on the same line, the borders are closed.

Re:Nine – seemingly impossible C64 demo by Dylan16807 on Tuesday February 04, 2025 @11:55PM (#42943979)
I don't like how you worded this post. You know the demo's point is having all 9 go at the same time, so it's quite misleading to start off describing something that sounds like the demo's point, but is not the demo's point, and saying it's "not hard". Your second paragraph mostly corrects that false impression, but I dislike that you gave a false impression to start with.
Re:Nine – seemingly impossible C64 demo by Underphil on Wednesday February 05, 2025 @01:09AM (#42944518)
This is an extremely common type of comment on articles like this. The commenter has to ensure everyone knows their credentials before offering any sort of praise to the creator. I also despise this type of self-serving comment.
Re:Nine – seemingly impossible C64 demo by flohofwoe on Wednesday February 05, 2025 @02:46AM (#42945281)
9 sprites on screen at the same time is trivial (this is known as sprite multiplexing), 9 sprites on the same raster line is the actual 'aha effect' because the C64 can only do 8 sprites per line.
Re:Nine – seemingly impossible C64 demo by Dylan16807 on Wednesday February 05, 2025 @03:59AM (#42945887)
I'm not sure why you replied to me? Are you nitpicking that I said "go at the same time" because I think it's clear enough in context.
Re:Nine – seemingly impossible C64 demo by pinoy420 on Wednesday February 05, 2025 @02:35AM (#42945186)
All you need is a little “Just”(TM) and everything is possible.

Typical HN comment minimising the immense effort required to do %thing% due to their own arrogance.

Re:Nine – seemingly impossible C64 demo by flohofwoe on Wednesday February 05, 2025 @02:45AM (#42945268)
The VIC-II reads the data for each sprite at hardwired horizontal positions outside the visible area, so this sort of 'horizontal multiplexing' shouldn't work.