The following steps may be used to rename your "master" branch to "main" on GitHub.
Use the following commands from a command-prompt.
git checkout mastergit branch -m maingit push origin -u main
| { | |
| // VSCode launch.json for starting two processes (a server and a client) via an npm script. | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "node", | |
| "request": "launch", | |
| "name": "server", | |
| "program": "${workspaceFolder}/app.js" | |
| }, |
| { | |
| // Use IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "node", | |
| "request": "launch", | |
| "name": "Launch Program", |
The iPhone has certain restrictions in playing audio in the web browser. This example shows how to successfully play audio on mobile.
The sound effect will play when the camera moves within a certain distance of the target object. The user will need to tap the iPhone screen (once) to allow sounds to play.
| Challenges in VR | |
| TOTAL POINTS 5 | |
| 1. | |
| Question 1 | |
| Which is the cheapest lighting effect to render? | |
| 1 point | |
| @ Diffuse |
| See also http://www0.cs.ucl.ac.uk/teaching/VE/Slides/2009-2010/04_presence2.pdf | |
| The Three Illusions of Virtual Reality | |
| TOTAL POINTS 15 | |
| 1. | |
| Question 1 | |
| In an ideal VR system, we should simulate all five senses (vision, sound, smell, haptic, and taste). Which of these five senses are currently supported by a standard HMD system (for instance, HTC VIVE or Oculus with controllers)? | |
| 1 point | |
VR Applications TOTAL POINTS 5 1. Question 1 Which of the following statements are true about applications in Virtual Reality? 1 point
@ We can be somewhere else in VR
VR HMDs and VR History TOTAL POINTS 15 1. Question 1 We define VR as the experience "in which the user is effectively immersed in a responsive virtual world. This implies user dynamic control of viewpoint." Who gave this definition in which year? 1 point
Ivan Sutherland, 1968
| bool same_necklace(string a, string b){ | |
| if(a.size() != b.size()) return false; | |
| a += a; | |
| size_t index = a.find(b); | |
| if(index != string::npos) return true; | |
| return false; | |
| } |
| room_n | room_e | room_s | room_w | breeze | stench | glitter | move | |
|---|---|---|---|---|---|---|---|---|
| unvisited | unvisited | wall | wall | false | false | false | north | |
| visited | unvisited | wall | wall | false | false | false | east | |
| unvisited | unvisited | visited | wall | false | false | false | north | |
| unvisited | visited | visited | wall | false | false | false | north | |
| visited | unvisited | visited | wall | false | false | false | east | |
| unvisited | unvisited | visited | wall | true | false | false | south | |
| unvisited | unvisited | visited | wall | false | true | false | south | |
| unvisited | unvisited | visited | wall | true | true | false | south | |
| unvisited | unvisited | visited | wall | false | false | true | north |