mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 16:53:16 +02:00
Merge pull request #775 from ZappoMan/multiple_voxel_servers
added more color groups for false colorization from source
This commit is contained in:
commit
1876cd4f44
1 changed files with 10 additions and 5 deletions
|
@ -860,13 +860,18 @@ bool VoxelSystem::falseColorizeBySourceOperation(VoxelNode* node, void* extraDat
|
||||||
void VoxelSystem::falseColorizeBySource() {
|
void VoxelSystem::falseColorizeBySource() {
|
||||||
_nodeCount = 0;
|
_nodeCount = 0;
|
||||||
colorizeBySourceArgs args;
|
colorizeBySourceArgs args;
|
||||||
const int NUMBER_OF_COLOR_GROUPS = 3;
|
const int NUMBER_OF_COLOR_GROUPS = 6;
|
||||||
const unsigned char MIN_COLOR = 128;
|
const unsigned char MIN_COLOR = 128;
|
||||||
int voxelServerCount = 0;
|
int voxelServerCount = 0;
|
||||||
groupColor groupColors[NUMBER_OF_COLOR_GROUPS] = { groupColor(255, 0, 0),
|
groupColor groupColors[NUMBER_OF_COLOR_GROUPS] = {
|
||||||
groupColor(0, 255, 0),
|
groupColor(255, 0, 0),
|
||||||
groupColor(0, 0, 255)};
|
groupColor( 0, 255, 0),
|
||||||
|
groupColor( 0, 0, 255),
|
||||||
|
groupColor(255, 0, 255),
|
||||||
|
groupColor( 0, 255, 255),
|
||||||
|
groupColor(255, 255, 255)
|
||||||
|
};
|
||||||
|
|
||||||
// create a bunch of colors we'll use during colorization
|
// create a bunch of colors we'll use during colorization
|
||||||
NodeList* nodeList = NodeList::getInstance();
|
NodeList* nodeList = NodeList::getInstance();
|
||||||
for (NodeList::iterator node = nodeList->begin(); node != nodeList->end(); node++) {
|
for (NodeList::iterator node = nodeList->begin(); node != nodeList->end(); node++) {
|
||||||
|
|
Loading…
Reference in a new issue