Skip to content

bencoveney/webgl-voxel

Repository files navigation

webgl-voxel

Playing with voxels in webgl using Three.js - Demo. Models made using MagicaVoxel.

Voxel engine screenshot

Voxel Model Loading

Compile Time:

  • Load image
  • Sprite: .png data
  • Parse image
  • Voxels: x, y, z, r, g, b data
  • TODO: Group static voxels into bigger sets
  • Calculate + combine visible sides of voxels
  • Faces: face data - x, y, z, rotation, width, height, r, g, b

Run Time:

  • Create ThreeJS mesh
  • THREE.Mesh

About

Experimenting with WebGL, Three.js and Voxels

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages