Hacker News new | ask | show | jobs
by i_c_b 1024 days ago
Andre LaMothe's prior book, Tricks of the Game Programming Gurus, was literally life changing for me.

I was in my late junior or early senior year of high school when it came out. My stepfather had a 386/20 and then later a 486/33, a Borland C compiler, and a generic 700 page "Learn C" book at home, and I had worked all the way through the book. But I couldn't for the life of me figure how in the world to bridge the gap between the extremely slow, "high res" 16 color graphics libraries that came with the compiler, on the one hand, and what Wolfenstein and Doom were doing, on the other, both of which I was utterly entranced by.

And then I saw LaMothe's book on a random shopping trip to... Software Etc, I think? I'd never seen anything like it. And I knew I had to have it, immediately.

After getting that book, I was diving headlong into relatively fast VGA C programming in mode 13h (320x200x256 color). I spent the afternoons of my senior year of high school writing relatively fast texture mapping routines and trying to get full screen 30+ fps interactive scenes and levels running, which I think I mostly did. I had to write my own paint program, too, for 256 color palettized textures. It was thrilling.

Thanks largely to my time with that book, later when I was introduced to the internet the first week I started a Computer Science program at college, I was primed to dive into all the awesome C open source game libraries and tools (like Allegro and DJGPP) that I found online, and I was making commercial games and working in the guts of the Quake and Quake 2 code bases two short years later. (The book and then the internet were not, however, great for my college career)

I know there are corny parts of the book, and maybe things that weren't as cutting edge as they claimed to be. It doesn't teach you how to actually write actual Doom, of course.

But prior to the widespread roll out of the internet, it's hard to get across just how inaccessible most of the knowledge in the book was, at least for a high school kid like me. It really was like turning on a light switch when I got it. Sometimes something is just at the right place at the right time for someone, and that's what that book was for me.

5 comments

Very similar story here. I was in middle school when the follow-up Tricks of the Windows Game Programming Gurus came out [0]. I read it cover to cover and proceeded to buy as many Premier Press books I could get using money I'd save from doing chores around the house. This wasn't pre-Internet but the best material was by far still in books. My dad would pay $5 per hour so if I worked hard I could buy another book after a weekend of yardwork. Those middle and early high school years were incredible. You could still understand the cutting-edge and a single person could still make something big like RollerCoaster Tycoon or Doom. I made a bunch of games, isometric ones, worlds in D3D and OpenGL, physics sims, learned CS algorithms, made pixel art and 3d models in 3ds max, and even made my way to a game developer's conference as an awkward teenager. The only downside to all this is it pulled me away from schooling. I probably could have gone to a better university and had an easier time the first few years of career had I put just a little more effort into classes, but that's life. No regrets.

[0] https://theswissbay.ch/pdf/Gentoomen%20Library/Game%20Develo....

I have such nostalgia for that particular moment in time, and for me it was the Renderman Companion and Advanced Animation and Rendering Techniques. The web was still small, and the information density contained in Borders Books or Barnes & Nobel was just completely immersive. Lots of snowy Saturday trips to the mall with my parents and negotiating the purchase of another hefty computer book.
Loved reading this, thanks for sharing.

And a shout-out to mode13h. In my case it was BBS and Denthor's tuts that changed my life.

Good times.

As someone who grew up in similar circumstances in the 90s but in South Africa (no home internet, no books, no friends no help at all) and then finally found Denthor of Asphyxia's tutorials (as well as PCGPE and eventually Huge), I was super gutted to find there wasn't really a South African graphics coding scene, it was basically just him :/

Mode 13h changed my life and set me on the course to being a graphics coder today (along with an email from John Carmack!), it's been such an amazing ride with hardware getting exponentially faster every year (RIP to that). I ought to get mov ax, 13h; int 10h tattooed along with 0xa0000, 0x3c8, 0x3c9 or something :)

Love the tattoo idea.

Add 0x5f3759df to the mix ^_^

Speaking of JC, what did his email say? Cool memento that, I hope you framed it!

Love it. My copy is next to Art of Electronics, Go4, and Knuth.

LaMothe is special because I’ve actually had it since I was 8. I still didn’t “get” matrices for years… but I implemented em!

Software Etc shout-out! Mac Warehouse catalog was also top tier