Better HN
topnewbestaskshowjobs
Log inSign up

ggambetta

6,993 karma · joined Aug 12, 2013 (13y ago) · 1,194 submissions

Member of Technical Staff at prometheus.ai. Ex-Google, ex-Synthesia, ex-Improbable. Author of "Computer Graphics from Scratch" (http://gabrielgambetta.com/computer-graphics-from-scratch). Used to run a game development studio and teach Computer Graphics in university. Tech website: http://gabrielgambetta.com

Actor / filmmaker: http://gabrielgambetta.biz

Submissions

comment 2w ago · link · parent

Made by an acquaintance, 100% free to play, just browser. I don't remember what's the last time I've played a genuinely scary videogame, if ever!

2.

Echoloc: A minimalist echolocation horror videogame(level102.itch.io ↗)

14 points · by ggambetta · 2w ago · 4 comments

comment 1mo ago · link · parent

I love that, though! The same approved theme and pose, say the annunciation, painted by so many people over so many centuries lets you compare styles and trace their evolution much more directly than if they were painting random stuff. It's like watching different martial artists executing the same kata.

comment 2mo ago · link · parent

You can do rotations and translations "via linear algebra" without homogeneous coordinates (the 4-element tuple representing a 3d point or vector), since adding two vectors is linear algebra.

What this lets you do is composing multiple transforms into one matrix multiplication instead of a sequence of multiplications and additions; that's what dramatically increases performance, on modern computing devices but most especially on ancient ones, where we were fighting for every MUL.

More details: https://gabrielgambetta.com/computer-graphics-from-scratch/1...

comment 2mo ago · link · parent

I hope a similar document surfaces about Monkey Island (or even MI2).

comment 2mo ago · link · parent

Not a pirate but a Spanish speaker.

Interestingly,

He's a doctor [in general] -> el es médico

He's the ship's doctor [this specific ship] -> el es el médico del barco

He's a ship doctor [generally works in ships] -> el es médico de barco

comment 2mo ago · link · parent

Can't wait for the movie. I grew up on Roadrunner cartoons (among others, most notably Top Cat and Scooby Doo), and some of my earliest childhood drawings are elaborate diagrams of traps to catch the Roadrunner, with detailed if implausible Rube Goldberg mechanics. The Coyote might have nudged me towards engineering, not even joking.

comment 3mo ago · link · parent

Hence DiRT or whatever they call it these days

comment 4mo ago · link · parent

My book tries to be as accessible as possible; a high schooler with little to no knowledge of linear algebra should be able to understand all of it. So in every case I've chosen simplicity (code and/or conceptually) over performance, but without sacrificing correctness. Not always an easy balancing act!

I would not recommend anyone to write a production rasterizer using the algorithms in my book. This website seems more performance-focused (Bresenham is the obvious choice to draw lines, for example).

Specifically about clipping, you can ignore all the planes except the near plane, and everything will be fine. You'll try to draw more pixels outside the canvas but that's just slow, not problematic. The near plane does protect you from divisions by zero and from points with negative Z, which project upside down and mess things up.

comment 4mo ago · link · parent

Thanks for saying that :) Have you built something based on that idea? I still haven't, but I'm thinking on throwing some Claude at it for the most mechanical parts.

comment 4mo ago · link · parent

I have a whole chapter on that! https://gabrielgambetta.com/computer-graphics-from-scratch/1...

comment 4mo ago · link · parent

Yes, and that actually sharpens my previous conclusions.

comment 4mo ago · link · parent

That's the unlock!

comment 4mo ago · link · parent

So it's not a one-word theory, it's a theory with a one-word name... shocking. What a clickbait title!

comment 4mo ago · link · parent

They used to be called "Sales Engineers". They still are, but they used to, too.

comment 4mo ago · link · parent

I'm pretty sure I submitted this idea to the internal "file a patent" drive they were doing like 15 years ago. It was rejected. I thought it was either stupid or too obvious and they were already doing it...

comment 4mo ago · link · parent

For me it was "There’s a clean exception to all of this, and it flips the entire logic." and "here’s the reframe". That's Claude-speak.

comment 5mo ago · link · parent

No Striker? [0] Zero realism but incredibly fun to play. IIRC it had a two-player mode (sharing the keyboard) that was super fun.

[0] https://www.mobygames.com/game/12380/striker/

comment 5mo ago · link · parent

I was thinking exactly the same thing, this is CSP/SR. One of my favorite topics! https://gabrielgambetta.com/client-server-game-architecture....

comment 5mo ago · link · parent

I've read that. I'm not part of the conservator community, I just really enjoy the videos.

comment 5mo ago · link · parent

I fully agree with you. However, when non-LatAm people talk about "socialism", they probably think of European-style socialism, which is awesome. LatAm socialism is a lot more extreme, and closer to full-on communism - my country still has people stuck in the 60s cold war era mentality and fully supporting the ideals of of the Soviet Union, still praising Cuba and Venezuela, reality notwithstanding.

European-style socialism would be better. Full 60s socialism would be significantly worse. It's quite likely that people ITT are using "socialism" to refer to either, and we're all talking past each other.

comment 5mo ago · link · parent

They should just trap Julian Baumgartner inside for a month, with nothing but water, food, and conservation-grade varnish and reversible pigments, and the whole place would look like new!

comment 5mo ago · link · parent

It seems you're not from LatAm.

comment 5mo ago · link · parent

That's a great idea! Just haven't gotten that far yet (that article is pre-LLM, and I'm very early in a new AI-driven reconstruction). But yeah, taking the original extracted sprites and having Nano Banana upscale or redraw them is a great idea.

comment 5mo ago · link · parent

I'm very happy to see this! Not so much because of TDIII (which I played, although not nearly as much as Stunts), but because there seems to be some momentum building around recreating old games using AI agents, and I love that! I had explored some related ideas [0] but throwing Claude at the problem seems super promising. The recent Crimsonland thing [1] was great!

[0] https://www.gabrielgambetta.com/remakes.html

[1] https://banteg.xyz/posts/crimsonland/

comment 5mo ago · link · parent

Fair, I wouldn't have been able to write Bresenham back then (or now, off the top of my head). I'd have written a simple trig-based one. Maybe I'd have failed the interview :D

comment 5mo ago · link · parent

So at the end of each run increment the relevant pointer by (pitch - w) not pitch which I'm sure it's one of the bugs they saw all the time in this interview :)

comment 5mo ago · link · parent

Thought the same. Reckless today, literally standard back then.

comment 5mo ago · link · parent

This brings back memories! I could easily pass this interview today, because I used to write code like this all the time 25 years ago doing gamedev (and so did everyone else to some extent). But the really interesting thing is that I just realized I haven't written code like this in a long, long time.

Programming has changed over time, but the change has been so gradual I hadn't even realized this until this article. These days I'm pondering how the profession has changed in the last 2 years due to AI. Feels a lot more like a step change. And yet I'm having more fun than I've had in a long time, both at work and at home, throwing Claude at problems. I still don't fully understand why.

comment 5mo ago · link · parent

What I'm hearing is that the smoke in smoke tests comes from the oil tanks!
12345
40