2 ms·
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,
by JKCalhoun 3y ago
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-dos-game-dev-michael-radtke-chris-lampton/ https://archive.org/details/build-your-own-flight-sim-in-c-d...
- rychco 3y agoReally 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/ https://raytracing.github.io/
- physicles 3y agoI 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.