Skip to content

Tucchhaa/3d-canvas

Repository files navigation

HTML Canvas 3D Engine

Installation

  1. download the repo
  2. open terminal in the folder of the project
  3. run npm i

Development

  1. run npm run dev
  2. open http://localhost:5173
  3. start developing :) page uses hot reload, so after any changes the page reloads automatically

Keyboard

  1. WASD to move camera
  2. Shift + WASD to rotate camera in correspoding direction
  3. Z - move down, X - move up

TO-DO

Bugs:

  1. We need more advanced ZSort. Some times polygons are drawed in the wrong order.

Functionality:

  1. Translation of object relative to its rotation

Refactoring:

  1. we should recognize if vertex is on the screen before projecting it (+optimization)

Bonus functionality:

  1. physics
  2. multiplayer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages