History

added more color groups for false colorization from source

ZappoMan committed 13 years ago

Commit bdabe701 parent 035f1c81 file · +8 −4Browse files

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

Unified · Split

interface/src/VoxelSystem.cpp+8−4
@@ -860,12 +860,16 @@ bool VoxelSystem::falseColorizeBySourceOperation(VoxelNode* node, void* extraDat · 859 unmodified lines
860860 void VoxelSystem::falseColorizeBySource() {
861861 _nodeCount = 0;
862862 colorizeBySourceArgs args;
863− const int NUMBER_OF_COLOR_GROUPS = 3;
863+ const int NUMBER_OF_COLOR_GROUPS = 6;
864864 const unsigned char MIN_COLOR = 128;
865865 int voxelServerCount = 0;
866− groupColor groupColors[NUMBER_OF_COLOR_GROUPS] = { groupColor(255, 0, 0),
867− groupColor(0, 255, 0),
868− groupColor(0, 0, 255)};
866+ groupColor groupColors[NUMBER_OF_COLOR_GROUPS] = { groupColor(255, 0, 0),
867+ groupColor( 0, 255, 0),
868+ groupColor( 0, 0, 255),
869+ groupColor(255, 0, 255),
870+ groupColor( 0, 255, 255),
871+ groupColor(255, 255, 255)
872+ };
869873
870874 // create a bunch of colors we'll use during colorization
871875 NodeList* nodeList = NodeList::getInstance();