Changeset 752 for GTP/trunk/Lib/Vis/Preprocessing/src/RssPreprocessor.cpp
- Timestamp:
- 04/20/06 13:25:41 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/RssPreprocessor.cpp
r746 r752 67 67 } 68 68 break; 69 69 70 default: 70 71 result = Preprocessor::GenerateRays(number, sampleType, rays); … … 80 81 ) 81 82 { 82 for (int i=0; i < rays.size(); i++) 83 for (int i=0; i < rays.size(); i++) { 83 84 CastRay(rays[i].mOrigin, rays[i].mDirection, rays[i].mPdf, vssRays); 85 if (i % 10000 == 0) 86 cout<<"."; 87 } 88 cout<<endl; 84 89 } 85 90 … … 298 303 exporter->SetFilled(); 299 304 // $$JB temporarily do not export the scene 300 if ( 1)305 if (0) 301 306 exporter->ExportScene(mSceneGraph->mRoot); 302 307 exporter->SetWireframe(); … … 435 440 { 436 441 // compute rendering error 437 if (renderer ) {442 if (renderer && renderer->mPvsStatFrames) { 438 443 // emit EvalPvsStat(); 439 444 // QMutex mutex; … … 504 509 SimpleRayContainer rays; 505 510 511 cout<<"Generating initial rays..."<<endl; 506 512 GenerateRays(mInitialSamples/4, SPATIAL_BOX_BASED_DISTRIBUTION, rays); 507 513 GenerateRays(mInitialSamples/4, OBJECT_BASED_DISTRIBUTION, rays); … … 509 515 GenerateRays(mInitialSamples/4, OBJECT_DIRECTION_BASED_DISTRIBUTION, rays); 510 516 517 cout<<"Casting initial rays..."<<endl; 511 518 CastRays(rays, mVssRays); 512 519 … … 536 543 if (mUseViewcells) { 537 544 545 cout<<"Computing sample contributions..."<<endl; 538 546 // evaluate contributions of the intitial rays 539 547 mViewCellsManager->ComputeSampleContributions(mVssRays, true, false); 540 548 cout<<"done.\n"; 541 549 542 550 mStats << … … 559 567 Debug<<"Valid viewcells before set validity: "<<mViewCellsManager->CountValidViewcells()<<endl; 560 568 // cull viewcells with PVS > median (0.5f) 561 mViewCellsManager->SetValidityPercentage(0, 0.5f); 569 //mViewCellsManager->SetValidityPercentage(0, 0.5f); 570 mViewCellsManager->SetValidityPercentage(0, 1.0f); 562 571 Debug<<"Valid viewcells after set validity: "<<mViewCellsManager->CountValidViewcells()<<endl; 563 572 … … 571 580 572 581 /// compute view cell contribution of rays if view cells manager already constructed 573 mViewCellsManager->ComputeSampleContributions(mVssRays, true, false);582 // mViewCellsManager->ComputeSampleContributions(mVssRays, true, false); 574 583 575 584 if (mUseImportanceSampling) { … … 651 660 if (mDirectionalSampling) 652 661 rayType = DIRECTION_BASED_DISTRIBUTION; 653 662 663 cout<<"Generating rays..."<<endl; 664 654 665 GenerateRays(mRssSamplesPerPass, rayType, rays); 666 cout<<"done."<<endl; 667 668 cout<<"Casting rays..."<<endl; 655 669 CastRays(rays, vssRays); 670 cout<<"done."<<endl; 656 671 castRays += rays.size(); 657 672 if (mUseViewcells) { 658 673 /// compute view cell contribution of rays 674 cout<<"Computing sample contributions..."<<endl; 659 675 mViewCellsManager->ComputeSampleContributions(vssRays, true, false); 676 cout<<"done."<<endl; 660 677 } 661 678
Note: See TracChangeset
for help on using the changeset viewer.