Skip to content

cgrundman/three.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

three.js

Various projects in three.js from freeCodeCamp.org

Run Locally

Clone the project

  git clone https://github.com/cgrundman/three.js

Go to the project directory

  cd ./three.js

Installation

If using VS Code, it is recommended to install the Live Server Live Server Plugin. This creates server environment to quickly render the the page as you make updates.

01 - Getting Started

The first project is an instroduction to the key components of Three.js. The main 4 necessary components are: a renderer, a camera, an object, and a light source. This project creates a simple mesh object and also showcases controls and animation.

Getting Started Project

02 - Earth

The second project builds upon the first to render an Earth. The project uses mesh layering, as well as importing custom functions for the starfield and the glow around the planet. Special thanks to Pixel Planet Imporium for the base images used for the meshes.

Earth Project

03 - Wireframe Wormhole

The third project is the most ambitious yet. This project animates camera mothion along a path through a tube to apear to look like a wormhole. The path is imported and is what the camera travel path, viewing angle, and the tube. The blood cells are also positioned randomly along the path. The shape is a torus, a better geometry to be used later.

Wireframe Wormhole

04 - Transitions

The fourth project showcases how to transition between scenes smoothly in three.js. The scenes are filled with Icosahedrons and transition between wireframe and mesh bodys using three different transitions from 3 different images.

transitions

05 - Rapier

The fifth project showcases an implementation of Rapier into a three.js project. This is a package to incorporate a physics ingine into three.js apps.

rapier

About

Various projects in three.js from freeCodeCamp.org

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published