Difference between revisions of "Advanced C++ Programming Tutorial 2"

From Chilipedia
Jump to: navigation, search
(Video Timestamp Index)
(See also)
Line 32: Line 32:
 
* [[Advanced C++ Programming Tutorial 3|Next in series (Tutorial 3)]]
 
* [[Advanced C++ Programming Tutorial 3|Next in series (Tutorial 3)]]
 
* [[Advanced C++ Programming Series]]
 
* [[Advanced C++ Programming Series]]
* [[Intermediate C++ Game Programming Series]]
+
* [https://www.patreon.com/planetchili Planet Chili Patreon]

Revision as of 22:16, 8 June 2018

In this tutorial we learn how to transform our shit. Move it around, make it bigger (no pills or pumps required), flip it and reverse it. And later one we make a camera system to scroll our shit in the world. You're gonna like it.

Topics

Part 1

  • Polyline drawing
  • Vertices
  • Trivial line clipping
  • Translation
  • Flipping across an axis
  • Screen coordinate transformation
  • Scaling

Part 2

  • Camera scrolling
  • Concatenating (combining) transforms
  • Drawable design idea

Video Timestamp Index

Links

Homework

  1. Create random starfield in large rectangular region with randomized positions, sizes, and shapes. Stars should not overlap.
  2. Implement scrolling via mouse dragging.
  3. Process vertices in-place (don't use a buffered polyline copy).
  4. Only draw models that appear in the viewport.
  5. Animate scale and color of stars so that they pulsate.

See also