Just convenient environment to run some experiments with the ThreeJS and do not lose it in space and time.
Minimalistic Webpack + TS + SCSS Scaffolding. With preconfigured TypeScript (TS), Sass (SCSS).
src/00.firsttry
just try the ThreeJSsrc/01.cube
draw the cube - "3D Hello World" (second after the triangle ;))src/02.udemy.threejs
some practice while taking udemy coursesrc/03.geomapping
converting GeoJSON to 3js compatible geometry and drawing vector mapping data (borders, regions, labels and charts)src/04.examples
CSS2D Renderer and pixel/texel size calculationsrc/05.udemy.interactive-globe
Udemy. Interactive 3d globe with custom ThreeJS shaders. Solving course practical tasks.
- Download ZIP and unpack. Or clone and remove
.git
folder. - Rename project in
package.json
yarn install
yarn start
src
- Sourcestemplate.html
- entry html page.index.ts
- entry (main) typescript file.styles
- SCSS styles
config
.babelrc
- Babel configwebpack.*.js
- webpack configurationpath.js
- paths to src, public and build folders
public
- folder to keep static files. They will be copied to build directory while build.typings
- folder to keep TypeScript types definition.tsconfig.json
- TypeScript config