When you compile the skeleton code for HW1, the arrow keys will not work. You must add this functionality.
Common Math Constants/Functions
pi, cos, and sin should be defined for you when you are modifying Transform.cpp. Note that cos and sin take radians. Example:
cos(90.0 * pi/180.0);
GLM Matrix Multiplication
Depending on your implementation, you may need to left or right multiply matrices. More details can be found on this Piazza post.
A difficulty with Linux systems is that binaries are not readily portable between different systems. If you cannot run the binaries for the solution, you should try another machine/OS.
You must match the implementation exactly, in regards to the interaction with the left/right/up/down buttons. Left will rotate the teapot left, and up will rotate the tepot down.
Here are some URLs that may be useful to you in project 1:
- Wikipedia Article on Rotation Matrix
- GLSL Types
- open gl reference card
- Vector and Matrix Operations
- GLM Documentation
- gluLookAt Specification
Some students were asking about documentation for GLM. You can find the documentation for GLM here:
GLM Trig Functions
GLM Geometric Functions:
Note: You can click on GLSL man pages to view more document.