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
860void VoxelSystem::falseColorizeBySource() {860void VoxelSystem::falseColorizeBySource() {
861 _nodeCount = 0;861 _nodeCount = 0;
862 colorizeBySourceArgs args;862 colorizeBySourceArgs args;
863 const int NUMBER_OF_COLOR_GROUPS = 3;863 const int NUMBER_OF_COLOR_GROUPS = 6;
864 const unsigned char MIN_COLOR = 128;864 const unsigned char MIN_COLOR = 128;
865 int voxelServerCount = 0;865 int voxelServerCount = 0;
866 groupColor groupColors[NUMBER_OF_COLOR_GROUPS] = { groupColor(255, 0, 0), 866 groupColor groupColors[NUMBER_OF_COLOR_GROUPS] = { groupColor(255, 0, 0),
867 groupColor(0, 255, 0), 867 groupColor( 0, 255, 0),
868 groupColor(0, 0, 255)};868 groupColor( 0, 0, 255),
869 groupColor(255, 0, 255),
870 groupColor( 0, 255, 255),
871 groupColor(255, 255, 255)
872 };
869 873
870 // create a bunch of colors we'll use during colorization874 // create a bunch of colors we'll use during colorization
871 NodeList* nodeList = NodeList::getInstance();875 NodeList* nodeList = NodeList::getInstance();