Ignore:
Timestamp:
11/09/05 01:54:05 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.cpp

    r391 r392  
    569569                } 
    570570 
    571                 cout << "starting post processing using " << (int)mSampleRays.size() << " samples ... "; 
     571                cout << "starting post processing using " << mPostProcessSamples << " samples ... "; 
    572572                 
    573573                long startTime = GetTime(); 
     
    690690} 
    691691 
    692 void SamplingPreprocessor::ProcessBspViewCells(Ray &ray, 
    693                                                                                            Intersectable *object, 
    694                                                                                            int faceIndex, 
     692void SamplingPreprocessor::ProcessBspViewCells(const Ray &ray, 
     693                                               Intersectable *object, 
     694                                                                                           const int faceIndex, 
    695695                                                                                           int &contributingSamples, 
    696696                                                                                           int &sampleContributions) 
     
    702702                        ((int)mSampleRays.size() < mBspConstructionSamples)) 
    703703                { 
    704                         // also add origin to sample in order to extract it as input polygons 
    705704                        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); 
    709711                } 
    710712                else 
    711713                { 
    712                         // construct BSP tree using the samples 
     714                        // construct BSP tree using the collected samples 
    713715                        cout << "building bsp tree from " << (int)mSampleRays.size() << " samples " << endl; 
    714716                        BuildBspTree(); 
     
    910912                        exporter->SetForcedMaterial(m); 
    911913 
    912                         exporter->SetWireframe(); 
     914                        //exporter->SetWireframe(); 
    913915 
    914916                        // output PVS of view cell 
Note: See TracChangeset for help on using the changeset viewer.