Skip to content
This repository has been archived by the owner on May 28, 2022. It is now read-only.

3d graphics engine for primitives "from scratch" using p5js

Notifications You must be signed in to change notification settings

reecelikesramen/3d-from-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D from scratch

Using the p5js API for interaction and 2D drawing commands to make a 3D engine "from scratch."

Project Goals

  • A reasonable suite of graphics primitives (rectangular prism, plane, sphere, etc.)
  • Basic physics simulation of 3D bodies
  • 3D collision detection for convex polyhedra
  • Impulse based collision resolution
  • Texture rendering on faces and other basic graphics strategies
  • Shading and basic lighting techniques
  • Attempt to design a good API for using my project

Learning Goals

  • Increased experience with linear algebra and differential equation topics used for physics integration and vector manipulation
  • Basic knowledge about 2D and 3D graphics techniques like texture drawing, shading, and lighting
  • Build project management skills

Test For Yourself

  • Clone the project
  • First run npm install to download all of the project dependencies
  • Then run npm run-script test to build and run the project
  • To change the local server's port, go to /project/server.js and change the PORT constant

About

3d graphics engine for primitives "from scratch" using p5js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published