3 ms·
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 ve
by drivers99 4y ago
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!)
- ggambetta 4y agoThanks 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/09-perspective-projection.html#projecting-our-first-3d-object https://gabrielgambetta.com/computer-graphics-from-scratch/0...