Skip to content

5okin/WebGL-Scene

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A WebGL scene of a textured desk and chair created using glMatrix.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published