Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Or write a flight simulator from scratch.

I followed a book in the 90's to create a flight simulator from scratch. Besides learning Bresenham's line algorithm, I learned a lot of linear algebra.

Probably this book: https://archive.org/details/build-your-own-flight-sim-in-c-d...



Really interesting recommendation! I had never seen this before, I’ll definitely give this a read.

I always recommend “Ray Tracing in One Weekend” [1] series of books for some light coverage of linear algebra/geometry/graphics.

[1] https://raytracing.github.io/


I spent a ton of time with this book too! It really lays everything out. The feeling of building something like that from absolute scratch was amazing. I can’t get motivated to do that again these days — ready-made, better implementations are too accessible.

I was 13 at the time, so I struggled with the math (this was pre-internet so I couldn’t just search stuff). I’d never seen matrices and wasn’t able to figure them out from that book. I distinctly remember hitting a wall in the chapter on lighting because it mentioned taking the dot product of two vectors, but I didn’t understand why that would give you the cosine of the angle between them because I’d never heard of the dot product before.

Edit: right at the bottom of page 405. I reread that sentence so many times.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: