3D Fundamentals Tutorial 6
From Chilipedia
Get rid of those dirty back-facers, we don't serve their kind here. Also, learn the new sex move that is taking New England by storm: the Bridgeport Shocker.
Video
The tutorial video is on YouTube here.
[Expand]
- Recap of our problem: triangles are always drawn in the same order 0:20
- Solution: Back face culling 2:02
- Using a triangle's surface normal to determine its orientation 5:15
- How to find the face normal: the cross product 9:51
- The math equation for the cross product 16:13
- Getting the face normal vector of our triangles 19:26
- Implementing these concepts in our code 21:04
Downloads
The GitHub repository for the tutorial code is here.