News for hackers. Stuff that matters.
Re:Ask HN: What HN post made you money? by drivers99 on Saturday August 06, 2022 @07:31PM (#32372546)
By the way the vertices of the cube on page 109 ("Projecting our first 3D Object") appear to be wrong. I checked your example code online and got the correct vertices. Didn't see that listed as an errata so thought I'd let you know, if you see this.

Basically the cube just needed to be manually moved back and to the left to look like the example screenshot. As it is in the book, it's too close to the viewport and so it's not visible.

(BTW, for fun, I also animated it flying left and right and forward and back on a sine/cosine wave. Pretty fun!)

Re:Ask HN: What HN post made you money? by ggambetta on Sunday August 07, 2022 @07:26AM (#32375642)
Thanks for bringing this up. I had fixed this on the website version [0] as well as the code, as you mention. I thought I had reported this to NSP, but can't find an email, so I'll let them know so they can add it to the errata.

[0] https://gabrielgambetta.com/computer-graphics-from-scratch/0...