Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.66 KB

README.md

File metadata and controls

30 lines (21 loc) · 1.66 KB

WebGL Scene

A WebGL scene with textures created using glMatrix.

You can stop/start the automatic swiveling camera, select a preset camera angle, control the camera using the mouse, change the fov or the camera distance, and control the rotation of the chair using the mouse wheel. If the chair is dropped four times, then the chair back breaks off and stays on the floor.

You can play around with it here: https://5okin.github.io/WebGL-Scene/

Screenshots

User Controls:

Controls

Scene:
Scene Chair Rotation Chair on floor Chair back broken off
ScreenShot ScreenShot2 ScreenShot3 ScreenShot4

Running

If you're running it locally and getting a black canvas and cross-orgin data or resource (CORS) warnings then you have to change your browsers policy.

Firefox

Go to about:config and change security.fileuri.strict_origin_policy to false

Chrome or Edge

Start the browser with --disable-web-security argument. So in windows you have to create a new shortcut with a target that looks like:

"[PATH_TO_CHROME]\chrome.exe" --disable-web-security --disable-gpu --user-data-dir=~/chromeTemp