- Timestamp:
- 11/09/05 01:54:05 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.cpp
r391 r392 569 569 } 570 570 571 cout << "starting post processing using " << (int)mSampleRays.size()<< " samples ... ";571 cout << "starting post processing using " << mPostProcessSamples << " samples ... "; 572 572 573 573 long startTime = GetTime(); … … 690 690 } 691 691 692 void SamplingPreprocessor::ProcessBspViewCells( Ray &ray,693 694 int faceIndex,692 void SamplingPreprocessor::ProcessBspViewCells(const Ray &ray, 693 Intersectable *object, 694 const int faceIndex, 695 695 int &contributingSamples, 696 696 int &sampleContributions) … … 702 702 ((int)mSampleRays.size() < mBspConstructionSamples)) 703 703 { 704 // also add origin to sample in order to extract it as input polygons705 704 MeshInstance *mi = dynamic_cast<MeshInstance *>(object); 706 ray.sourceObject = Ray::Intersection(0.0, mi, faceIndex); 707 708 mSampleRays.push_back(new Ray(ray)); 705 706 Ray *sRay = new Ray(ray); 707 mSampleRays.push_back(sRay); 708 709 // also add origin to sample 710 sRay->sourceObject = Ray::Intersection(0.0, object, faceIndex); 709 711 } 710 712 else 711 713 { 712 // construct BSP tree using the samples714 // construct BSP tree using the collected samples 713 715 cout << "building bsp tree from " << (int)mSampleRays.size() << " samples " << endl; 714 716 BuildBspTree(); … … 910 912 exporter->SetForcedMaterial(m); 911 913 912 exporter->SetWireframe();914 //exporter->SetWireframe(); 913 915 914 916 // output PVS of view cell
Note: See TracChangeset
for help on using the changeset viewer.