Next, fetch upstream changes. If you have committed local changes, merge conflicts should be minimal
[~]$ cd ~/cs40/examples [examples]$ git fetch upstream [examples]$ git merge upstream/master [examples]$ git push
Open up a terminal and navigate to sphere directory in w05-perspective. You will be creating a symlink to a folder containing texture map images for this code. You need to do this step before running make in your build directory.
[~]$ cd ~/cs40/examples/w05-perspective [w05-perspective]$ ln -s /usr/local/doc/textures data
In a second terminal, navigate to the build folder and run make -j8 to get the w05-perspective folder.
[~]$ cd ~/cs40/examples/build/ [build]$ make -j8 [build]$ cd w05-perspective [w05-perspective]$ ./perspective
Sketch the scene. Where are the centers of the sphere? What are their radii in world coordinates?
Toggle the Ortho/Perspective projection matrix
Modify the LookAt matrix to view from above the $\hat{y}$ axis.
Add a keybinding to change the field of view in the $y$ direction.
Next, fetch upstream changes. If you have committed local changes, merge conflicts should be minimal
[~]$ cd ~/cs40/examples [examples]$ git fetch upstream [examples]$ git merge upstream/master [examples]$ git push
Open up a terminal and navigate to sphere directory in w06-lighting to browse code. You do not need to make a data symlink in this folder
In a second terminal, navigate to the build folder and run make -j8 to get the w06-lighting folder.
[~]$ cd ~/cs40/examples/build/ [build]$ make -j8 [build]$ cd w06-lighting [w05-lighting]$ ./phong