Showing the changes to interface/src/VoxelSystem.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1746,11 +1746,11 @@ bool VoxelSystem::showAllLocalVoxelsOperation(VoxelNode* node, void* extraData) · 1745 unmodified lines | |||
| 1746 | if (shouldRender) { | 1746 | if (shouldRender) { |
| 1747 | bool falseColorize = false; | 1747 | bool falseColorize = false; |
| 1748 | if (falseColorize) { | 1748 | if (falseColorize) { |
| 1749 | node->setFalseColor(0,0,255); // fake | 1749 | node->setFalseColor(0,0,255); // false colorize |
| 1750 | } | 1750 | } |
| 1751 | // how does randomize color work? | 1751 | // These are both needed to force redraw... |
| 1752 | node->setDirtyBit(); // will this make it draw! | 1752 | node->setDirtyBit(); |
| 1753 | node->markWithChangedTime(); // fake | 1753 | node->markWithChangedTime(); |
| 1754 | } | 1754 | } |
| 1755 | 1755 | ||
| 1756 | return true; // keep recursing! | 1756 | return true; // keep recursing! |
| @@ -1882,7 +1882,7 @@ bool VoxelSystem::hideAllSubTreeOperation(VoxelNode* node, void* extraData) { · 125 unmodified lines | |||
| 1882 | args->nodesRemoved++; | 1882 | args->nodesRemoved++; |
| 1883 | bool falseColorize = false; | 1883 | bool falseColorize = false; |
| 1884 | if (falseColorize) { | 1884 | if (falseColorize) { |
| 1885 | node->setFalseColor(255,0,0); // fake | 1885 | node->setFalseColor(255,0,0); // false colorize |
| 1886 | } else { | 1886 | } else { |
| 1887 | VoxelSystem* thisVoxelSystem = args->thisVoxelSystem; | 1887 | VoxelSystem* thisVoxelSystem = args->thisVoxelSystem; |
| 1888 | thisVoxelSystem->_voxelsUpdated += thisVoxelSystem->forceRemoveNodeFromArrays(node); | 1888 | thisVoxelSystem->_voxelsUpdated += thisVoxelSystem->forceRemoveNodeFromArrays(node); |
| @@ -1914,18 +1914,17 @@ bool VoxelSystem::showAllSubTreeOperation(VoxelNode* node, void* extraData) { · 25 unmodified lines | |||
| 1914 | 1914 | ||
| 1915 | args->nodesInside++; | 1915 | args->nodesInside++; |
| 1916 | 1916 | ||
| 1917 | //printf("<<<<<<<<<<< showAllSubTreeOperation() >>>>>>>>>>>>>>>\n"); | ||
| 1918 | |||
| 1919 | bool shouldRender = node->calculateShouldRender(&args->thisViewFrustum); | 1917 | bool shouldRender = node->calculateShouldRender(&args->thisViewFrustum); |
| 1920 | node->setShouldRender(shouldRender); | 1918 | node->setShouldRender(shouldRender); |
| 1921 | 1919 | ||
| 1922 | if (shouldRender && !node->isKnownBufferIndex()) { | 1920 | if (shouldRender && !node->isKnownBufferIndex()) { |
| 1923 | bool falseColorize = false; | 1921 | bool falseColorize = false; |
| 1924 | if (falseColorize) { | 1922 | if (falseColorize) { |
| 1925 | node->setFalseColor(0,0,255); // fake | 1923 | node->setFalseColor(0,0,255); // false colorize |
| 1926 | } | 1924 | } |
| 1927 | node->setDirtyBit(); // will this make it draw! | 1925 | // These are both needed to force redraw... |
| 1928 | node->markWithChangedTime(); // fake | 1926 | node->setDirtyBit(); |
| 1927 | node->markWithChangedTime(); | ||
| 1929 | } | 1928 | } |
| 1930 | 1929 | ||
| 1931 | return true; // keep recursing! | 1930 | return true; // keep recursing! |
| @@ -1985,7 +1984,6 @@ bool VoxelSystem::hideOutOfViewOperation(VoxelNode* node, void* extraData) { · 53 unmodified lines | |||
| 1985 | // if this node is fully INSIDE the view, but previously INTERSECTED and/or was OUTSIDE the last view, then | 1984 | // if this node is fully INSIDE the view, but previously INTERSECTED and/or was OUTSIDE the last view, then |
| 1986 | // we need to show it. Additionally we know that ALL of it's children are also fully INSIDE so we can recurse | 1985 | // we need to show it. Additionally we know that ALL of it's children are also fully INSIDE so we can recurse |
| 1987 | // the children and simply mark them as visible (as appropriate based on LOD) | 1986 | // the children and simply mark them as visible (as appropriate based on LOD) |
| 1988 | //printf("<<<<<<<<<<< HERE!!!!! >>>>>>>>>>>>>>>\n"); | ||
| 1989 | args->tree->recurseNodeWithOperation(node, showAllSubTreeOperation, args); | 1987 | args->tree->recurseNodeWithOperation(node, showAllSubTreeOperation, args); |
| 1990 | 1988 | ||
| 1991 | return false; | 1989 | return false; |