Blogs / Personal blogs

Pekka Väänänen

30fps.net

Welcome to Pekka's fascinating graphics coding and hobbyist programming website.

Popular posts
6
Total points
1,363
HN comments
443
Rank
#1,435 personal

Visit 30fps.net → RSS feedOn Hacker News Mar 2023 – Jun 2026

Software Engineering 6Games & Graphics 6

1

Classic 3D videogame shadow techniques

Towards the end of Wim Wenders’s excellent Perfect Days , the protagonist Hirayama is drinking beer under a bridge after he has seen a Businessman courting his crush. Suddenly the Businessman joins him under the bridge. As it turns out, things aren’t actually that simple but the point is their conversation takes them…

2

Should you normalize RGB values by 255 or 256?

Let’s say you’re writing an image processing program. The program takes in an image, converts it to floating point, does some processing and finally saves the modified pixels to disk as 8-bit colors. The question today concerns how exactly the integer-to-float conversion should be done. There are two approaches which…

4

Portals and Quake

Ever wanted to know how exactly did Quake’s precomputed visibility work? I did, so I wrote vis.py , a reimplementation of their algorithm in Python. This guide has all the information you need to understand vis , the tool used by Quake, Half-Life and Source Engine games.