GithubHelp home page GithubHelp logo

zion's Introduction

๐ŸงŠ Zion

A very basic 3D engine written entirely in vanilla JavaScript

Screen.Recording.2023-12-12.at.08.25.25.mov

Why?

My aim with Zion was to create a 3D engine as if it was 1993, with as little prior knowledge as possible, and see what I could figure out on my own.

I can't come in completely blind as 15 years ago I did a degree in computer games development, however after finishing my degree I went into web development, and left game dev behind.

This is why there is no matrix maths in this repo - I know matrices exist, and are used for 3D graphics transformations, but I don't remember how exactly to use them. So instead I've relied on good old trigonometry, which I do remember.

What?

So far Zion supports flat shaded polygons, a mostly working z-buffer, and that's about it. Coming in future updates is:

  • Separate engine from content
  • Back face culling
  • Full object transformations
  • Lighting
  • Gouraud shading

Things I may also add if I have the time/inclination:

  • Texture mapping
  • Gravity

Should I use this?

Absolutely not. If you want to do 3D graphics in Javascript WebGL will serve you much better. This is just a learning experiment for me.

zion's People

Contributors

mattbearman avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.