ThreeJS

Oct 20, 2023

https://threejs.org/

Three.js is a 3D library that tries to make it as easy as possible to get 3D content on a webpage.

Three.js is often confused with WebGL since more often than not, but not always, three.js uses WebGL to draw 3D. WebGL is a very low-level system that only draws points, lines, and triangles. To do anything useful with WebGL generally requires quite a bit of code and that is where three.js comes in. It handles stuff like scenes, lights, shadows, materials, textures, 3d math, all things that you'd have to write yourself if you were to use WebGL directly.

https://threejs.org/manual/#en/fundamentals

This article kind of gets at implementing a 2d canvas in 3d space:

https://blog.fastforwardlabs.com/2017/10/04/first-look-using-three.js-for-2d-data-visualization.html

which I'd like to do as an experiment... for stuff. Would love a better article on this.

↑ up