CS 455 Lecture 6 – Matrix Implementation and Orthographic Transformations
Before Class
Vector and Matrix Implementation
- Watch http://youtu.be/oanx1G_76JI.
- Bring these implementations to class on Thursday.
Viewport and Orthogonal Projection Transformations
- Watch http://youtu.be/TlN4q3zt1tw.
- Bring the GetOrthographic method implementation to class on Thursday.
In class
- Building on your work from Tuesday, incorporate your Matrix4 class to do the transformations.
- Add an orthographic projection to show the object space [-100, -100, -100] to [100, 100, 100]. There’s a model that fills this space in W455/figure.obj. You’ll need to adjust the Z-scaling factor in Matrix4::GetOrtho to 2.0f / (n – f). Otherwise, you’ll see only a cross-section of your figure. Vertices with z < -1 or z > 1 will get clipped.
Haiku
You want it easy?
You are building a world.
There’s a test to pass.
You are building a world.
There’s a test to pass.