Show
Ignore:
Timestamp:
11/01/06 16:31:27 (2 years ago)
Author:
dshipton
Message:

Factor added for controlling degradation for users, so a user can make the degradation happen slower/faster.
Added to testOcclusionCulling as d/D: the bigger the factor, the faster the LOD switching happens when it hits the threshold.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Dirk_RenderTraversalWork/Source/System/Action/RenderTraversal/testOcclusionCulling.cpp

    r376 r377  
    534534        { 
    535535            Real32 cover = tact->getScreenLODCoverageThreshold(); 
    536             cover+=0.002
     536            cover+=0.001
    537537            tact->setScreenLODCoverageThreshold(cover); 
    538538            std::cout << "ScreenLOD Coverage Threshold now: " << cover << std::endl; 
     
    543543        { 
    544544            Real32 covera = tact->getScreenLODCoverageThreshold(); 
    545             covera-=0.002
     545            covera-=0.001
    546546            tact->setScreenLODCoverageThreshold(covera); 
    547547            std::cout << "ScreenLOD Coverage Threshold now: " << covera << std::endl; 
     548        } 
     549        break; 
     550 
     551        case 'D': 
     552        { 
     553            Real32 user_dega = tact->getScreenLODDegradationFactor(); 
     554            user_dega+=0.01; 
     555            tact->setScreenLODDegradationFactor(user_dega); 
     556            std::cout << "ScreenLOD User Degradation Factor now: " << user_dega << std::endl; 
     557        } 
     558        break; 
     559 
     560        case 'd': 
     561        { 
     562            Real32 user_deg = tact->getScreenLODDegradationFactor(); 
     563            user_deg-=0.01; 
     564            tact->setScreenLODDegradationFactor(user_deg); 
     565            std::cout << "ScreenLOD User Degradation Factor now: " << user_deg << std::endl; 
    548566        } 
    549567        break;