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/
Scene | Chair Rotation | Chair on floor | Chair back broken off |
---|---|---|---|
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.
Go to about:config and change security.fileuri.strict_origin_policy to false
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