voxel / ideas

issue tracker for new voxel.js plugin ideas
4 stars 1 forks source link

[voxel-chunkborder] Chunk boundary viewer debug tool #14

Closed deathcap closed 10 years ago

deathcap commented 10 years ago

Toggleable mode to visually show chunk boundaries, mainly for debugging purposes.

voxel-debug can do:

// Add a x,y,z axis at center of game and 10 voxels big
debug.axis([0, 0, 0], 10)

but lines at each boundary could be useful, too. And/or a semitransparent cube covering the current chunk.

deathcap commented 10 years ago

See https://github.com/deathcap/voxel-wireframe (originally extracted from https://github.com/mikolalysenko/ao-shader) for an example of showing boundaries around voxels:

  gl.drawArrays(gl.LINES, 0, mesh.wireVertexCount)
deathcap commented 10 years ago

https://github.com/deathcap/voxel-chunkborder