30fps.net
Computer Graphics & Programming with Pekka Väänänen
Welcome to Pekka's fascinating graphics coding and hobbyist programming website.
Professionally, I am a software engineer. I've worked with virtual reality tech, 3D scanning, mesh optimization, and 2D display drivers.
On this site I try to explain niche technical subjects in clear language.
My book Palette Programming: Invent Your Own Color Reduction Algorithm is now
available in Early Access.
The entries marked with a ⭐ are what I'm most proud of and recommend exploring first.
Articles:
June 29th, 2026
Revisiting Yliluoma's ordered dither algorithm
dithering, research
June 1st, 2026
Should you normalize RGB values by 255 or 256?
graphics, fundamentals, math
April 23rd, 2026
Single-pass palette refinement and ordered dithering
palettes, dithering, machine learning, research
October 30th, 2025
More accurate Doom colormap
palettes, doom, color
October 24th, 2025
Why CIELAB doesn't improve median cut
palettes, research
October 13th, 2025
Better sRGB to greyscale conversion ⭐
images, color, fundamentals
September 7th, 2025
Mapping to the PICO-8 palette, perceptually
images, palettes
July 17, 2025
Approximate first principal component
machine learning, palettes
July 9th, 2025
HyAB k-means for color quantization
images, compression, palettes, machine learning
May 17th, 2025
Palette lighting tricks on the Nintendo 64
graphics, technique, n64, palettes
January 18th, 2025
Portal flow brings it all together
quakeology, python, historical
January 10th, 2025
Fine visibility via clipping
quakeology, python
January 10th, 2025
Coarse base visibility
quakeology, python
January 10th, 2025
Portals and Quake ⭐
quakeology, fundamentals
November 27th, 2024
A simple way to scale pixel art games
images, games, historical
November 15th, 2024
How to present MS-DOS screenshots
images, games, historical
November 14th, 2024
How Westwood VQA works
compression, videos, games, historical
October 25th, 2024
Classic 3D videogame shadow techniques ⭐
graphics, games, historical
April 6th, 2024
Shader post-processing in a hurry ⭐
graphics, shaders
January 21st, 2024
Clean pointer serialization in C
serialization, technique
January 10th, 2024
Sort a sphere BVH with split planes
graphics, algorithms, fundamentals
January 4th, 2024
Annoying details of a Z-buffer rasterizer
graphics, meshes
November 8th, 2023
Going up in color bit depth ⭐
fundamentals, color
March 22nd, 2023
In-place filtering of an array
C++, algorithms
March 7th, 2023
BSP Lessons
graphics, meshes, quakeology
February 27th, 2023
Full screen triangle optimization ⭐
graphics, OpenGL
Notebooks:
November 7th, 2024
Efficiently split a NumPy array into tiles
images, python
March 16th, 2024
Moving basis decomposition for images
machine learning, images, compression
March 8th, 2024
Color quantization with a self-organizing map
compression, machine learning
March 5th, 2024
PCA image color compression experiment
compression, images
April 30th, 2023
Image vector quantization is just like creating a tilemap ⭐
compression, machine learning
My postmortems of some demoscene productions elsewhere on the web:
Other resources:
You can follow me on
Mastodon,
Bluesky,
YouTube, or subscribe to an
Atom feed.