Chris Pollett>
Old Classes>
CS185c |
HW#2 --- last modified March 12 2019 15:42:55.Due date: Mar 6 Files to be submitted: Purpose: To gain experience with WebGL and computer graphics connected with VR Related Course Outcomes: The main course outcomes covered by this assignment are: CLO1 -- Be able to create VR apps using WebVR, a VR mobile SDK, or Unity game engine. CLO2 -- Be able to calculate by hand the effects of various VR rendering transformations on different input vectors. CLO5 -- Be able to code a VR app in which objects move according to some kind of simulated physics and in which collisions are detected. CLO6 -- Be able to code a VR app that does head motion tracking. Specification: This homework consists of two parts both of which are aimed at giving you some simple computer graphics experience. For the first part I'd like you to do the written problems below and submit your solutions in the file Hw2.pdf which you include in your ZIP file. For the second part I'd like you to code using WebGL and WebVR a simple scene which I describe below.
For the coding part of the assignment I want you to make a simple animation of a day in the life of a Smurf Mushroom House using pure WebGL and WebVR (no A-Frame). If you are wondering what a Smurf is check out the Smurf Wikipedia Article. For the purposes of this homework, a Smurf house is a red half-sphere on top of a squat cylinder. Place a 2m tall Smurf house at the origin. Make the x-z plane green to represent grass. Set up the scene so we are viewing it from `(0,5, -5)` looking at the origin. In the Smurf universe, nothing happens until we click an enter VR button, although on a HTML canvas we would see the 3D scene. When the Enter VR button is clicked, the scene is rendered to left and right eye displays stereoscopically. At location `(4, 0, 0)` a yellow sphere representing the sun should rise and traverse a circular bath in the `x-y` plan until it reaches/intersects the ground at `(-4, 0, 0)`. This should take 20 seconds. If desired, you can make this loop. That is all there is to a day in the life of a Smurf House. Put your house in the file index.html and include it and any external Javascripts you write in your Hw2.zip folder. Point Breakdown
|