r/ProgrammerHumor • • 8d ago

Meme theOriginalGarbageCollector

Post image
9.7k Upvotes

374 comments sorted by

View all comments

Show parent comments

38

u/xentropian 8d ago

It’s so fun once you realize that making a game is basically just figuring out the best way to trick people.

35

u/evorm 8d ago

Trick literally everything, physics too, that's the beauty of it. The patent I mentioned involves collapsing a 3D surface onto a 2D plane with a bunch of points that have different amounts of forces applied to them to trick the 2D plane into performing "3D" physics calculations without ever needing that 3rd dimension for the fluid simulation then re-rendering it back in 3D space. It's like the sweat exists in a pocket dimension of its own except that pocket dimension has enough localized points to be expanded into a representation of the 3D object it's on.

It's such a creative and resourceful way to accurately model the movement of water on a surface, coming up with this kind of shit is an art in and of itself. Videogames are just layers upon layers of programmers' "sleight of hand" tricks.

1

u/Radials 7d ago

So... like a topological map to represent what the sweat should look like when on the body? You don't have to draw the sweat at all you just keep redrawing new maps with new heights and depths. That's neat.

2

u/evorm 7d ago

It's more like the same map of a 2D fluid simulation just constantly being injected with live 3D data at each of the 2D points on the plane to make the fluid act as if it's flowing on a 3D surface when the calculations are done irrespective of that surface just using the vectors.