Changeset 360 for branches/Dirk_RenderTraversalWork/Source/System/Action/RenderTraversal/testOcclusionCulling.cpp
- Timestamp:
- 10/23/06 12:00:07 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Dirk_RenderTraversalWork/Source/System/Action/RenderTraversal/testOcclusionCulling.cpp
r357 r360 374 374 break; 375 375 376 case ' m':376 case 'k': 377 377 tact->setKeyGen(0); 378 378 break; … … 398 398 399 399 400 case ' y':400 case 'C': 401 401 { 402 402 Real32 cov = tact->getOcclusionCullingCoveredThreshold(); … … 407 407 break; 408 408 409 case ' h':409 case 'c': 410 410 { 411 411 Real32 cov1 = tact->getOcclusionCullingCoveredThreshold(); … … 416 416 break; 417 417 418 case ' u':418 case 'M': 419 419 { 420 420 UInt32 small = tact->getOcclusionCullingMinimumFeatureSize(); … … 425 425 break; 426 426 427 case ' j':427 case 'm': 428 428 { 429 429 UInt32 small1 = tact->getOcclusionCullingMinimumFeatureSize(); … … 434 434 break; 435 435 436 case ' i':436 case 'I': 437 437 { 438 438 UInt32 visT = tact->getOcclusionCullingVisibilityThreshold(); … … 443 443 break; 444 444 445 case ' k':445 case 'i': 446 446 { 447 447 UInt32 visTa = tact->getOcclusionCullingVisibilityThreshold(); … … 452 452 break; 453 453 454 case ' o':454 case 'B': 455 455 { 456 456 UInt32 bfsz = tact->getOcclusionCullingQueryBufferSize(); … … 461 461 break; 462 462 463 case ' l':463 case 'b': 464 464 { 465 465 UInt32 bfsza = tact->getOcclusionCullingQueryBufferSize(); … … 469 469 } 470 470 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 472 522 case 'f': 473 523 {
