CHAPTER 5 ■ GETTING THE MOST OUT OF VERTICES
394
• Figuringoutwhyyourtrianglewon’tshowup!Thismightbebecauseyourgraphics
card thinks your camera is looking at the back of the triangle, causing it to be non-
rendered, or culled (see recipe 5-6).
• Storingthecorrectnormalineachofyourverticestoallowforcorrectlighting.You’ll
also learn how you can calculate all normals at once (recipe 5-7).
• Puttingeverythingyou’velearnedaboutverticesintopracticebycreatingatextured3D
terrain.Youneedtobeabletocalculatetheexactheightatanypointofyourterrain,
as well as find the point on your terrain that the user’s pointer is over (recipes 5-8, 5-9,
and 5-10).
• LearninghowyouloadobjectsfromXMLfilesstraightintoyourXNAproject(recipe ...