Starfield

9

rilden 2020-09-15 18:21

This program is inspired by Jeanmilost's Stars 3D program (https://lowresnx.inutilis.com/topic.php?id=1398).

starfield.nx | Open in app
2020-09-15 18:21

Timo 2020-09-15 20:23

Looks like a new trick to create a fullscreen pixel buffer :)


rilden 2020-09-15 21:12

This is not a new trick :) pxl library direct display uses the same trick:
https://lowresnx.inutilis.com/topic.php?id=806
But i think my method to set a pixel using lookup tables is faster.


Timo 2020-09-16 06:38

Ok, I didn't really check the code of the pxl library before. This trick is very clever, I didn't think there was a way without raster interrupts.


was8bit 2020-09-16 08:17

(We are in the presence of greatness!!!)


nathanielbabiak 2020-12-04 01:18

I'm super jealous - you beat me to publication for the lookup tables idea!

Your implementation with one 2D array is a few clock cycles faster than mine too - good work. :-)


nathanielbabiak 2021-04-06 23:12 (Edited)

I don't think I mentioned this yet, but the 2-color display trick and the buffer can be combined at the same time. The Pxl BG Tool does this (https://lowresnx.inutilis.com/topic.php?id=1502). This trick (2-color display) is what's implemented if you set COLORS=2. And you can turn on a buffer at the same time using BUF.WIDTH>0.


Log in to reply.