How I learn WebGL threejs and 3D animations on browser
2025-03-24 blogpage programming howilearn sketch
threejs documentation
https://threejs.org/manual/#en/fundamentals
https://threejs.org/manual/#en/prerequisites > nice info on modern Javascript, what you should know:
ES6 modules
closures
this
ES5/ES6/ES7
var
is deprecateduse
for(elem of collection)
, neverfor(elem in collection)
use
forEach
,map
,filter
extensivelyuse destructuring
object declaration shortcuts
rest parameter and spread operator
...
class
getts and setters
arrow functions
promises and async/await
template literals
VS Code ESLint extension is recommended
interactive scene editor https://threejs.org/editor/
- can make objects and then export
- can make objects and then export
threejs forum - https://discourse.threejs.org/
Recommendations from reddit https://www.reddit.com/r/threejs/comments/r8oc73/what_are_some_good_resources_to_learn_threejs/
- https://discoverthreejs.com/<br>
- https://threejs-journey.com/#bruno-simon<br>
- https://www.youtube.com/watch?v=YK1Sw_hnm58<br>
-<br>
Examples:
ferrari car
- https://github.com/mrdoob/three.js/blob/master/examples/webgl_materials_car.html
- https://github.com/mrdoob/three.js/blob/master/examples/webgl_materials_car.html
Tutorial
Creating a SimCity Game with Javascript and Three.js
Fireship tutorial https://www.youtube.com/watch?v=Q7AOvWpIVHU
Incoming Internal References (0)
Outgoing Internal References (2)
-
- VS Code ESLint extension is recommended
- ![[Pasted image 20250321082814.png]]
- interactive scene editor https://threejs.org/editor/ -
- [Creating a SimCity Game with Javascript and Three.js](https://www.youtube.com/watch?v=DBX4ReeH6R8&list=PLtzt35QOXmkJ9unmoeA5gXHcscQHJVQpW&index=2)
- ![[Pasted image 20250321061049.png]]
- Fireship tutorial https://www.youtube.com/watch?v=Q7AOvWpIVHU
Outgoing Web References (5)
-
developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Closures
- js ref
-
developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this
- js ref
-
developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises
- promises
-
developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Async_JS/Promises
- async/await
-
www.youtube.com/watch?v=DBX4ReeH6R8&list=PLtzt35QOXmkJ9unmoeA5gXHcscQHJVQpW&index=2
- Creating a SimCity Game with Javascript and Three.js