Topics /

Games & Graphics

The most popular blog posts about games & graphics on Hacker News. 2,924 posts.

Any year
1561

Writing a Raytracer in Rust – Part 1

Hello! This is part one of a short series of posts on writing a simple raytracer in Rust. I’ve never written one of these before, so it should be a learning experience all around. So what is a raytracer anyway? The short version is it’s a computer program that traces the paths of simulated rays of light through a…

1562

How to program a text adventure in C (2016)

This is not a C tutorial; there are plenty of those on the web. The reader is assumed to have some basic knowledge of programming in general, and preferrably the C programming language in particular. Maybe you just finished reading a tutorial, and you would like to learn some more by studying other people's source…

1570

Revisiting the Business Card Raytracer

What is the most beautiful piece of code you have ever seen? Not only it is subjective, "beauty" is also a word that can mean a lot of things. If we were to be discussing of raw speed, I would bring up the Fast Inverse Square Root [1] . If we were to judge by aesthetic, my answer would be Andrew Kensler's, 1337 bytes…

1573

Writing a Demoscene Intro for the ZX Spectrum

In the late 80s, I spent an embarrassing number of hours hunched over my ZX Spectrum, typing in Sinclair BASIC programs and rudimentary assembler routines copied from magazines, trying to re-create the Amiga crack intros I’d seen round at a friend’s house. Obviously, they never came even slightly close - but now, many…

1576

Vulkan in 30 minutes

I've written this post with a specific target audience in mind, namely those who have a good grounding in existing APIs (e.g. D3D11 and GL) and understand the concepts of multithreading, staging resources, synchronisation and so on but want to know specifically how they are implemented in Vulkan. So we end up with a…

1577

Visualizing Delaunay Triangulation

Take a look at this: This is a triangulation of a set of random points, such that all the points are connected to one another, all of the faces are triangles, and the edges include the convex hull of the points. I would like to claim that this is not a very “good” triangulation. This algorithm tends to produce lots of…

1580

Browser Wars, the game

A monoculture is usually better in the short term. It’s a better allocation of resources (everyone working on the same thing!) If you want to write a rich web app that works today (ie, on the browsers of today), it’s much better.

1581

Fooling Around with Foveated Rendering

Shadertoy is a wonderful tool which lets users create and share a type of program called a fragment shader online. The true magic of shadertoy is its community of very talented graphics programmers who build incredible works of art despite having access to only a sliver of the traditional graphics pipeline.

1590

Changes to OpenTTD Distribution on Steam

OpenTTD has been available on the Steam Store for the past five years. During that time, we’ve built up an incredible player base, attracting lots of new players to the game. Starting today however, OpenTTD will no longer be directly available as a standalone game on Steam. It can instead be obtained as part of a…