Javascript voxel renderer library w/ 3D and isometric views
JavaScript CoffeeScript CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
other
out
project
.gitignore
Gruntfile.coffee
README.md
package.json

README.md

Voxel Renderer

A voxel renderer library for HTML5, written in CoffeeScript with AMD modules.

Renders to 3D using three.js, or to 2D isometric view using pixi.js.

Scenes are composed using the already-familiar three.js API. See /demo source to get started.

Easy-to-use and low-performant.

Work in progress. API and implementation may change. If using this library as the basis for a project, please clone or fork.

Demo

View demo

screenshot 1

Demo project setup

Install grunt if necessary.

CD to project root.

Install node dependencies for grunt:
npm install

Run default grunt task:
grunt

Deployed files will be compiled and copied to the out directory.

For browser source map support, point webserver to repo's base directory rather than out dir.

Possible todo's

Obvious

More primitives

implement `FastRect` and `FastBitmap`
cylinder
cone
pyramid
line
circle
3d-bitmap (for fonts, character animations, etc.) (maybe importing some ~standard voxel file format?)
wireframe-looking cube

'Subtractive' objects

Mechanism for 'object overdraw precedence' (or at least formalize the rules describing how it currently behaves)

Major

Off-load per-voxel hit tests with shader logic

Shader-based custom render routine, bypassing general-purpose graphics frameworks...

Objects mapped to