Assignment 2

Affine Transformations with Camera

Your browser does not support HTML5
// Change the cameraTranslate and cameraRotate functions to apply transformations to the camera. // Visualize the five target camera transformations by pressing 1-4. // To align the free-moving camera back to the camera position, press "r". cameraTranslate = function(){ return [0, 0, 0]; // Translates camera by 0 (X), 0 (Y), 0 (Z) }; cameraRotate = function(){ return [0, 0, 0]; // Rotates camera in relation to axes (in radians) };