Show
Ignore:
Timestamp:
10/23/06 12:00:07 (2 years ago)
Author:
dshipton
Message:

Knobs for ScreenLOD node. and more code in ScreenLOD that doesn't work!

Files:

Legend:

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

    r357 r360  
    374374            break; 
    375375 
    376         case 'm': 
     376        case 'k': 
    377377            tact->setKeyGen(0); 
    378378            break; 
     
    398398 
    399399 
    400         case 'y': 
     400        case 'C': 
    401401        { 
    402402            Real32 cov = tact->getOcclusionCullingCoveredThreshold(); 
     
    407407        break; 
    408408             
    409         case 'h': 
     409        case 'c': 
    410410        { 
    411411            Real32 cov1 = tact->getOcclusionCullingCoveredThreshold(); 
     
    416416            break; 
    417417 
    418         case 'u': 
     418        case 'M': 
    419419        { 
    420420            UInt32 small = tact->getOcclusionCullingMinimumFeatureSize(); 
     
    425425        break; 
    426426             
    427         case 'j': 
     427        case 'm': 
    428428        { 
    429429            UInt32 small1 = tact->getOcclusionCullingMinimumFeatureSize(); 
     
    434434        break; 
    435435         
    436         case 'i': 
     436        case 'I': 
    437437        { 
    438438            UInt32 visT = tact->getOcclusionCullingVisibilityThreshold(); 
     
    443443        break; 
    444444 
    445         case 'k': 
     445        case 'i': 
    446446        { 
    447447            UInt32 visTa = tact->getOcclusionCullingVisibilityThreshold(); 
     
    452452        break; 
    453453 
    454         case 'o': 
     454        case 'B': 
    455455        { 
    456456            UInt32 bfsz = tact->getOcclusionCullingQueryBufferSize(); 
     
    461461        break; 
    462462 
    463         case 'l': 
     463        case 'b': 
    464464        { 
    465465            UInt32 bfsza = tact->getOcclusionCullingQueryBufferSize(); 
     
    469469        } 
    470470        break; 
    471          
     471 
     472        case 'h': 
     473        { 
     474            tact->setOcclusionCullingMinimumFeatureSize(0); 
     475            tact->setOcclusionCullingVisibilityThreshold(0); 
     476            tact->setScreenLODCoverageThreshold(0.f); 
     477            std::cout << "High Resolution Mode" << std::endl; 
     478        } 
     479        break; 
     480 
     481        case 'l': 
     482        { 
     483            tact->setOcclusionCullingMinimumFeatureSize(1000); 
     484            tact->setOcclusionCullingVisibilityThreshold(1000); 
     485            tact->setScreenLODCoverageThreshold(0.15f); 
     486            std::cout << "Low Resolution Mode" << std::endl; 
     487        } 
     488        break; 
     489 
     490        case 'P': 
     491        { 
     492            Real32 cover = tact->getScreenLODCoverageThreshold(); 
     493            cover+=0.0002; 
     494            tact->setScreenLODCoverageThreshold(cover); 
     495            std::cout << "ScreenLOD Coverage Threshold now: " << cover << std::endl; 
     496        } 
     497        break; 
     498             
     499        case 'p': 
     500        { 
     501            Real32 covera = tact->getScreenLODCoverageThreshold(); 
     502            covera-=0.0002; 
     503            tact->setScreenLODCoverageThreshold(covera); 
     504            std::cout << "ScreenLOD Coverage Threshold now: " << covera << std::endl; 
     505        } 
     506        break; 
     507 
     508        case 'o': 
     509        { 
     510            tact->setOcclusionCulling(false); 
     511            std::cout << "OCC Off" << std::endl; 
     512        } 
     513        break; 
     514 
     515        case 'O': 
     516        { 
     517            tact->setOcclusionCulling(true); 
     518            std::cout << "OCC On" << std::endl; 
     519        } 
     520        break; 
     521 
    472522        case 'f': 
    473523        {