Open KevinGrandon opened 9 years ago
It seems that the encoded data isn't a Uint8Array(orUint32Array) when it reaches the browser?
Any thoughts?
emitter.on('chunk', function(encoded, chunk) { console.log(encoded.length) //returns as undefined, if it had a value, it could be a UintXArray? var voxels = crunch.decode(encoded, new Uint32Array(chunk.length)) self.game.showChunk(chunk) })
I haven't tracked this down to exactly where the problem lies yet, but I believe that there is a problem with either voxel-server, or possibly voxel-crunch using node 0.12.x. It seems that the world generates, but the entire voxel-crunch data arrays are filled with 0's instead of blocks.