Difference between revisions of "3D Fundamentals Tutorial 5"

From Chilipedia
Jump to: navigation, search
(Video)
(Video)
Line 5: Line 5:
  
 
* Why do we want to draw triangles? [https://www.youtube.com/watch?v=9A5TVh6kPLA?t=0m20s 0:20]
 
* Why do we want to draw triangles? [https://www.youtube.com/watch?v=9A5TVh6kPLA?t=0m20s 0:20]
* How to render a 3D polygon on a 2D screen [https://www.youtube.com/watch?v=9A5TVh6kPLA?time=2m49s 2:49]
+
* How to render a 3D polygon on a 2D screen [https://www.youtube.com/watch?v=9A5TVh6kPLA?t=2m49s 2:49]
* Drawing a simple triangle [https://www.youtube.com/watch?v=9A5TVh6kPLA?time=4m48s 4:48]
+
* Drawing a simple triangle [https://www.youtube.com/watch?v=9A5TVh6kPLA?t=4m48s 4:48]
* Rasterization  rules (we follow Direct3D 10/11+) [https://www.youtube.com/watch?v=9A5TVh6kPLA?time=9m47s 9:47]
+
* Rasterization  rules (we follow Direct3D 10/11+) [https://www.youtube.com/watch?v=9A5TVh6kPLA?t=9m47s 9:47]
* Coding it up, adding <code>DrawTriangle()</code> functions in <code>Graphics.h</code> [https://www.youtube.com/watch?v=9A5TVh6kPLA?time=13m33s 13:33]
+
* Coding it up, adding <code>DrawTriangle()</code> functions in <code>Graphics.h</code> [https://www.youtube.com/watch?v=9A5TVh6kPLA?t=13m33s 13:33]
* Math for splitting vertices of a general triangle [https://www.youtube.com/watch?v=9A5TVh6kPLA?time=15m39s 15:39]
+
* Math for splitting vertices of a general triangle [https://www.youtube.com/watch?v=9A5TVh6kPLA?t=15m39s 15:39]
* Determening Major Left or Major Right trait of splitted triangles [https://www.youtube.com/watch?v=9A5TVh6kPLA?time=19m19s 19:19]
+
* Determening Major Left or Major Right trait of splitted triangles [https://www.youtube.com/watch?v=9A5TVh6kPLA?t=19m19s 19:19]
* Drawing Flat Top and Flat Bottom triangles [https://www.youtube.com/watch?v=9A5TVh6kPLA?time=20m13s 20:13]
+
* Drawing Flat Top and Flat Bottom triangles [https://www.youtube.com/watch?v=9A5TVh6kPLA?t=20m13s 20:13]
* Deign of outer and inner loop for drawing along scanlines [https://www.youtube.com/watch?v=9A5TVh6kPLA?time=24m15s 24:15]
+
* Deign of outer and inner loop for drawing along scanlines [https://www.youtube.com/watch?v=9A5TVh6kPLA?t=4m15s 24:15]
* Test drawing our cube with triangles instead of lines [https://www.youtube.com/watch?v=9A5TVh6kPLA?time=26m50s 26:50]
+
* Test drawing our cube with triangles instead of lines [https://www.youtube.com/watch?v=9A5TVh6kPLA?t=26m50s 26:50]
  
 
== Downloads ==
 
== Downloads ==

Revision as of 03:06, 4 May 2020

In this video we find out what's the deal with triangles, and how we deal with the pointy little fuckers and make them our bitch.

Video

The tutorial video is on YouTube here.

  • Why do we want to draw triangles? 0:20
  • How to render a 3D polygon on a 2D screen 2:49
  • Drawing a simple triangle 4:48
  • Rasterization rules (we follow Direct3D 10/11+) 9:47
  • Coding it up, adding DrawTriangle() functions in Graphics.h 13:33
  • Math for splitting vertices of a general triangle 15:39
  • Determening Major Left or Major Right trait of splitted triangles 19:19
  • Drawing Flat Top and Flat Bottom triangles 20:13
  • Deign of outer and inner loop for drawing along scanlines 24:15
  • Test drawing our cube with triangles instead of lines 26:50

Downloads

The GitHub repository for the tutorial code is here.

See also