History

debugging voxel sending behavior

ZappoMan committed 13 years ago

Commit 275772b1 parent 174c3ee3 files · +28 −2Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 3 files). Show all

Unified · Split

interface/src/VoxelSystem.cpp+9−2
@@ -423,10 +423,17 @@ void VoxelSystem::render() { · 422 unmodified lines
423423
424424 int VoxelSystem::_nodeCount = 0;
425425
426+void VoxelSystem::killLocalVoxels() {
427+ _tree->eraseAllVoxels();
428+ _voxelsInArrays = 0; // better way to do this??
429+ //setupNewVoxelsForDrawing();
430+}
431+
432+
426433 bool VoxelSystem::randomColorOperation(VoxelNode* node, void* extraData) {
427434 _nodeCount++;
428435 if (node->isColored()) {
429− nodeColor newColor = { randomColorValue(150), randomColorValue(150), randomColorValue(150), 1 };
436+ nodeColor newColor = { 255, randomColorValue(150), randomColorValue(150), 1 };
430437 node->setColor(newColor);
431438 }
432439 return true;
@@ -442,7 +449,7 @@ void VoxelSystem::randomizeVoxelColors() { · 9 unmodified lines
442449 bool VoxelSystem::falseColorizeRandomOperation(VoxelNode* node, void* extraData) {
443450 _nodeCount++;
444451 // always false colorize
445− node->setFalseColor(randomColorValue(150), randomColorValue(150), randomColorValue(150));
452+ node->setFalseColor(255, randomColorValue(150), randomColorValue(150));
446453 return true; // keep going!
447454 }
448455