Ask or search…
Mixed Reality Curriculum
What is the Metaverse?
3D on the Web
How to create a basic 3D scene?
How to create a globe visualization with ThreeJS
Lighting your scene
What could go wrong?
WebXR Device APIs
Unreal Engine Lessons
Artificial Intelligence(AI) Lessons
How to contribute?
ThreeJS basic scene
creates scene, camera and light as well as the object, the code syntax is little different.
Edit fiddle - JSFiddle - Code Playground
JSFiddle Three.js example
ThreeJS Orthographic vs Perspective camera example
Navigate to the code sample by clicking
Edit in JSFiddle
Uncomment the lines 18 and 19 by deleting '/*' and '*/'
Press run to see the animation.
Change the values added to x and y rotation to see the result.
Change the cube's position instead of the rotation value.