Ignore:
Timestamp:
09/28/06 18:51:43 (18 years ago)
Author:
mattausch
Message:

worked on gvs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r1522 r1528  
    13181318         
    13191319        float sum = 0.0f; 
    1320  
    13211320        VssRayContainer::const_iterator it, it_end = rays.end(); 
    13221321         
     
    18311830                ViewCell *viewcell = *it; 
    18321831                 
    1833                 if (viewcell->GetValid()) // tests if view cellis in valid view space 
     1832                if (viewcell->GetValid()) // tests if view cell is in valid view space 
    18341833                { 
    18351834                        float contribution; 
     
    18381837                        { 
    18391838                                if (viewcell->GetPvs().GetSampleContribution( 
    1840                                                 ray.mTerminationObject, 
    1841                                                 ray.mPdf, 
    1842                                                 contribution)) 
     1839                                                        ray.mTerminationObject, 
     1840                                                        ray.mPdf, 
     1841                                                        contribution)) 
    18431842                                { 
    18441843                                        ++ ray.mPvsContribution; 
     
    18651864        } 
    18661865 
    1867         // if addrays is true, sampled entities are stored in the pvs 
     1866        // if true, the sampled entities are stored in the pvs 
    18681867        if (addRays) 
    18691868        { 
     
    18761875                                // if view point is valid, add new object to the pvs 
    18771876                                if (ray.mTerminationObject) 
    1878                                 { 
     1877                                {cout <<"here22" << endl; 
    18791878                                        viewcell->GetPvs().AddSample(ray.mTerminationObject, ray.mPdf); 
    18801879                                }                                
     
    54835482                        { 
    54845483                                // todo: maybe not correct for kd node pvs 
    5485                                 if (viewcell->GetPvs().GetSampleContribution(ray.mTerminationObject, 
    5486                                                                                                                          ray.mPdf, contribution)) 
     5484                                Intersectable *obj = mHierarchyManager->GetIntersectable(ray, true); 
     5485                                if (viewcell->GetPvs().GetSampleContribution(obj, 
     5486                                                                                                                         ray.mPdf,  
     5487                                                                                                                         contribution)) 
    54875488                                { 
    54885489                                        ++ ray.mPvsContribution; 
Note: See TracChangeset for help on using the changeset viewer.