Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Directional Avatar #73

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
4c8835e
update docs and add template file
AidanNelson Jan 22, 2021
5810d7c
minor fix
AidanNelson Jan 22, 2021
62ea1f8
Merge pull request #1 from yorb-club/doc-changes
AidanNelson Jan 22, 2021
61ccb25
adds getStartingPosition which checks query params
AidanNelson Jan 22, 2021
99ba544
press p to get url
AidanNelson Jan 22, 2021
62bd7eb
minor fixes
AidanNelson Jan 22, 2021
1aea2af
add modal for link
AidanNelson Jan 25, 2021
f31489f
Merge pull request #2 from yorb-club/query-params
AidanNelson Jan 25, 2021
0c3cfdf
init - can't trigger this.createYorbProjectionScreens?
billythemusical Feb 3, 2021
15d6f4f
this.projectionScreens.createYorbProjectionScreens()
billythemusical Feb 3, 2021
837cd70
screen working
billythemusical Feb 3, 2021
e237d63
added stage option to performance screen, removed old screensaver8.mpg
billythemusical Feb 4, 2021
09cdf0e
100 Days Gallery (#3) + Place tool
augustluhrs Feb 4, 2021
46c147c
longer screen audio rolloff, fixed duplicate screens
billythemusical Feb 4, 2021
eca805a
Merge branch 'main' into TNO-performance-screen
billythemusical Feb 4, 2021
81d09f7
Merge pull request #5 from yorb-club/TNO-performance-screen
billythemusical Feb 4, 2021
15bd287
Update CONTRIBUTING.md
AidanNelson Feb 12, 2021
869dced
TNO and Days Gallery Hotfix (#8)
augustluhrs Feb 12, 2021
fd089ad
Update CONTRIBUTING.md
AidanNelson Feb 12, 2021
437d8e5
add sandbox
AidanNelson Feb 17, 2021
a76525a
Merge pull request #9 from yorb-club/workshop-changes
AidanNelson Feb 17, 2021
6e3163e
fixed empty gallery console errors -- two if statements for place and…
augustluhrs Feb 19, 2021
61645d5
update three version
AidanNelson Apr 6, 2021
010284f
Merge pull request #13 from yorb-club/update-three-version
AidanNelson Apr 6, 2021
7d46fe6
change box text
AidanNelson Apr 27, 2021
eba573c
remove sandbox functions
AidanNelson Apr 27, 2021
bff5e6f
initial changes
AidanNelson Apr 27, 2021
edb166c
Lazy River WIP
AidanNelson May 3, 2021
9b62939
simplify lazy river
AidanNelson May 3, 2021
c95854f
add water texture
AidanNelson May 3, 2021
2f03606
add grass plane
AidanNelson May 3, 2021
b1a8961
add yorblet entrances
AidanNelson May 3, 2021
f63bfd6
moving river
AidanNelson May 4, 2021
5f0edc9
remove commented out code and update boilerplate
AidanNelson May 9, 2021
65103df
get around server CA issue
AidanNelson May 9, 2021
54233b1
add mini gallery arrangements , start to build out layout
AidanNelson May 9, 2021
29abbe2
further changes
AidanNelson May 9, 2021
fe0cc68
add lazy river path around projects
AidanNelson May 10, 2021
63584a4
Merge pull request #18 from yorb-club/add-lazy-river
AidanNelson May 10, 2021
93e2b2a
add ring geo and lookAt
AidanNelson May 16, 2021
808ccd4
updated directional avatar / fix lerping
AidanNelson May 16, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ public/js/bundle.js
images/project_thumbnails
.cache
dist/
utilities/getProjectThumbnails/projectThumbnails
utilities/getProjectThumbnails/projectThumbnails
utilities/100DaysScripts/package-lock.json
**/instagram-scraper*
src/assets/images/100Days
utilities/100DaysScripts/*.log
utilities/100DaysScripts/latestScrapes.txt
2 changes: 1 addition & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": false,
"semi": true,
"singleQuote": true,
"printWidth": 200
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![image of 3D environment with one person in it](docs/images/yorb-2020.png "YORB 2020")
![image of 3D environment with many people moving around](docs/images/winter-show-2020.png "YORB 2020")

## About

Expand Down
16 changes: 11 additions & 5 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ If you want to run the code locally, you can do so against either the ITP Yorb s

1. Clone or fork the repository and download a local copy:
```bash
git clone https://github.com/AidanNelson/YORB2020.git
git clone https://github.com/yorb-club/YORB2020.git
```
2. Navigate into the repository and install dependencies:
```bash
Expand Down Expand Up @@ -44,14 +44,20 @@ If you want to run the code locally, you can do so against either the ITP Yorb s
cd server
npm install
```
4. Change directory again back to the root directory of the project and start the server:
4. Create a new file in the `/server` folder called `.env` and copy the contents of `example.env` into it. Adjust the `PRODUCTION_IP` to reflect your computer's IP address on the local network:
```
PROJECT_DATABASE_URL = 'https://itp.nyu.edu/projects/public/projectsJSON_ALL.php?venue_id=164&room_id=1'
PRODUCTION_IP="192.168.0.107"
PRODUCTION_PORT="3000"
```
5. Change directory again back to the root directory of the project and start the server:
```bash
cd ..
npm run start-server
```
5. In a separate terminal window (in the root directory of the project), start the build system (same as step #4 from above):
6. In a separate terminal window (in the root directory of the project), start the build system (same as step #4 from above):
```bash
npm run watch
```
6. Navigate your browser window to http://localhost:1234. This page should now connect to your backend server at http://localhost:3000.
7. Note that you may need to restart this local development server / build system from time to time to ensure that your changes are being reflected in the browser!
7. Navigate your browser window to http://localhost:1234. This page should now connect to your backend server at http://localhost:3000.
8. Note that you may need to restart this local development server / build system from time to time to ensure that your changes are being reflected in the browser!
Binary file added docs/images/winter-show-2020.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"mediasoup-client": "^3.6.5",
"p5": "^1.0.0",
"socket.io-client": "^3.0.3",
"three": "^0.115.0"
"three": "^0.127.0"
},
"devDependencies": {
"cssnano": "^4.1.10",
Expand Down
13 changes: 13 additions & 0 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"dotenv": "^8.2.0",
"express": "^4.17.1",
"mediasoup": "^3.6.28",
"socket.io": "^3.0.3"
"socket.io": "^3.0.3",
"ssl-root-cas": "^1.3.1"
},
"devDependencies": {},
"author": "",
Expand Down
5 changes: 5 additions & 0 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ const debugModule = require('debug')
const mediasoup = require('mediasoup')
const fs = require('fs')
const https = require('https')
https.globalAgent.options.ca = require('ssl-root-cas').create();

process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0


// HTTP Server setup:
// https://stackoverflow.com/questions/27393705/how-to-resolve-a-socket-io-404-not-found-error
Expand Down Expand Up @@ -208,6 +212,7 @@ main()

async function updateProjects() {
let url = process.env.PROJECT_DATABASE_URL
console.log('Updating Projects from Database...');

https
.get(url, (res) => {
Expand Down
Binary file added src/assets/images/Grass004_1K_Color.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/assets/images/screensaver8.mp4
Binary file not shown.
19 changes: 9 additions & 10 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@
<div class="bottom_bar_container">
<div class="bottom_bar">
<div id="project-details">
<div class="box-title">ITP Winter Show 2020</div>
<div class="box-title">ITP Spring Show 2021 Gallery</div>
<div class="box-content">
Wed Dec 16th, 8-10 p.m. ET <br />
Thu Dec 17th, 8-10 p.m. ET <br /><br />
Remarks – Thurs May 16th, 10 am - 12 pm ET <br /><br />
</div>
<div class="box-content" id="html-project-list">
</div>
Expand All @@ -50,13 +49,13 @@
<div>
<div class="box-title">CONTROLS:</div>
<div class="box-content">
ESCAPE.......exit<br />
WASD.........move<br />
SPACEBAR.....jump<br />
MOUSE........look<br />
C............webcam<br />
M............mic<br />
1............paint
WASD..........move<br />
SPACEBAR......jump<br />
MOUSE.........look<br />
SHIFT+CLICK...interact<br />
C.............webcam<br />
M.............mic<br />
1.............paint
</div>
<br />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/js/yorbControls2.js → src/js/controls.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as THREE from 'three'

export class YorbControls2 {
export class Controls {
constructor(scene, camera, renderer) {
this.scene = scene
this.camera = camera
Expand Down
Loading