Hacker News new | ask | show | jobs
by massifist 1016 days ago
This brings back some fond memories. I still have a copy of the book "Tips and Tricks of the Game Programming Gurus", though it's not in very decent condition. It has this ray traced image on the front cover (with a crazy monster) that is very characteristic of the early 90s. Though, I could never help but notice what appeared to be an error on the staircase banister where it looked like the normals were facing the wrong way. So it looked hollow. Or maybe the (object's) matrix was wrong. Anyway. The book really had me hyped up to create some virtual worlds. Like DOOM.

I learned a lot from the book but some of the topics where a little too advanced for me at the time, as I was still learning C and grappling with x86 assembly language.

However, I rediscovered the book several years ago and implemented something similar to the ray caster (which had really impressed me at the time) in DOSBox. I tried to optimize the algorithm and add a few enhancements. It was lots of fun! A genuine (early 90s) retro experience! I think I even had to fire up Turbo Debugger to solve a few problems.

1 comments

Game Programming Gurus was a good book, but I had some gripes about it after later learning 3D graphics. The book prominently touted teaching you how to made a Doom-like clone, but instead taught you how to make a Wolfenstein 3D type ray casting engine on a regular grid. Its ray casting engine was also flawed in casting rays with at equally spaced angle steps rather than distance on the projection plane. It was good enough visually with spherical distortion / fisheye correction, but it's not the same as a proper projection.