Hacker News

206

I put a real-time 3D shader on the Game Boy Color

by adunk177056813124 comments
Awesome looking results. As far as I understand it's a "3D" shader in the sense that it looks 3D but it's a prerendered 2D normal map which is then lit using the resulting world space normal.

Here are the frames: https://github.com/nukep/gbshader/tree/main/sequences/gbspin...

by speps1770573991
It’s nice getting real hacker material on hackernews
by glouwbug1770575033
Hi, author here. I heard it got posted here and decided to make an account, so I can hop in here. Thanks for sharing!

I'm also looking into simplifying it a bit more with environment maps, which I shared on my Bsky: https://bsky.app/profile/dannyspencer.bsky.social/post/3mecu...

by otterstack1770586416
> An overall failed attempt at using AI > I attempted to use AI to try out the process, mostly because 1) the industry won't shut up about AI, and 2) I wanted a grounded opinion of it for novel projects, so I have a concrete and personal reference point when talking about it in the wild. At the end of the day, this is still a hobbyist project, so AI really isn't the point! But still...

> I believe in disclosing all attempts or actual uses of generative AI output, because I think it's unethical to deceive people about the process of your work. Not doing so undermines trust, and amounts to disinformation or plagiarism. Disclosure also invites people who have disagreements to engage with the work, which they should be able to. I'm open to feedback, btw.

Thank you for your honesty! Also tremendous project.

by wasmainiac1770576489
This GBC shader reveals a key truth: all computation is approximation under constraint. Multiplication becomes table lookups plus addition, while precision yields to what the eye actually sees.
by spacebacon1770575980
I’m incredibly impressed by this, largely because it actually is running on a CGB. What I see often are hacks where the game boy is just being used as a terminal and the cartridge has been packed with far more powerful processing power.
by Waterluvian1770583690
This is the coolest thing I've seen in months. Licence it as beerware, then I'm obliged to owe you one.
by HeckFeck1770583170
I lowkey wish Nintendo would rerelease the GBC or GBA I would buy one. They can bake in some games into a few cartridges and make it 100% worth the buy too.
by giancarlostoro1770581844
The "Making it work" section seems to abruptly end at the following?

  By modifying the instruction operand!

  2A      ld a, [hl+]
  D6 08   sub a, 8
by Sharlin1770577018
This is why HN exists, almost gives me the same joy as flipping through tech magazines of yester-decades.
by villgax1770575043
Always loved using old hardware with recent understandings.
by jnpnj1770577494
Nice, I’ll have to give this a try on my Analogue Pocket
by a_t481770575453
Isn't it a bug that when spinning the object the light also spins?
by iLoveOncall1770581068
I can’t believe it
by ndgold1770573911