1.7.2 • Published 3 years ago

@ovistek/bvx.ts v1.7.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Twitter: @OvisTek Codacy Badge Coverage Badge install size NPM License

Generic & Renderer Agnostic BitVoxel Engine Implementation in TypeScript


BitVoxel Engine detaches Voxel meta-data and Rendering state data into abstracted layers. This allows rendering smaller voxels with inherited meta-data without subdividing the Voxel layer.

About

  • Voxel Meta-Data Layer requires 0, 8, 16 or 32 bit per Voxel
  • BitVoxel State Layer requires 1 bit per BitVoxel
  • Written in TypeScript with no external dependencies
  • Designed for Robustness & Performance with 100% unit tested code
  • Documented Code & API
  • Permissive MIT License

Installation

  • Install using npm
npm install @ovistek/bvx.ts

Quick Setup

import { MortonKey, VoxelChunk, VoxelWorld } from '@ovistek/bvx.ts';

// create a new world instance to manage our Voxels
const world:VoxelWorld = new VoxelWorld();

// create a new VoxelChunk at world position (x=1,y=1,z=1)
const chunk:VoxelChunk = new VoxelChunk(MortonKey.from(1,1,1));

// insert the chunk into the world
world.insert(chunk);

// return a previously inserted VoxelChunk instance from position (x=1,y=1,z=1)
const prevChunk:VoxelChunk | null = world.get(MortonKey.from(1,1,1));

if (prevChunk !== null) {
  // do something with VoxelChunk
}
1.7.2

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.2.2

3 years ago

1.1.3

3 years ago

1.2.1

3 years ago

1.1.2

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.0

3 years ago