3D Fundamentals Tutorial 6

From Chilipedia
Jump to: navigation, search

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
  • Culling needs to be performed before the transformation to screen space 24:33
  • The order of the vertices (i.e. the index lists for triangles) matters 26:04
  • Introduction of the base class Scene.h for scene definitions its derived classes 28:50
  • Remaining issues: concave shapes, triangle intersections, occlusion 31:10

Downloads

The GitHub repository for the tutorial code is here.

See also