CS 455 Lecture 6 – Matrix Implementation and Orthographic Transformations
February 6, 2013 by Chris Johnson. Filed under cs455, lectures, spring 2013.
Before Class
Vector and Matrix Implementation
Viewport and Orthogonal Projection Transformations
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.
show