Every three.js project needs at least one HTML file to define the webpage, and a JavaScript file to run your three.js code.


Before coding, need to add Three.js to project.

There are two main ways:


  • CDN (quick & beginner-friendly)
  • NPM (professional & scalable)