Difference between revisions of "Advanced C++ Programming Tutorial 2"
From Chilipedia
(→Homework) |
(→Homework) |
||
Line 28: | Line 28: | ||
# Only draw models that appear in the viewport. | # Only draw models that appear in the viewport. | ||
# Animate the scale (size) and color of stars so that they pulsate. | # Animate the scale (size) and color of stars so that they pulsate. | ||
+ | |||
+ | The Homework solution is [https://youtu.be/Jj6tni4cxSw here]. | ||
== See also == | == See also == |
Revision as of 23:08, 13 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 on 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
packet design
Video Timestamp Index
Links
Homework
- Create random starfield in large rectangular region with randomized positions, sizes, and shapes. Stars should not overlap.
- Implement scrolling via mouse dragging.
- Process vertices in-place (don't use a buffered polyline copy).
- Only draw models that appear in the viewport.
- Animate the scale (size) and color of stars so that they pulsate.
The Homework solution is here.