Ignore:
Timestamp:
08/28/06 18:42:33 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1287 r1291  
    17881788        Vector3 termination = hray.Extrap(tmax); 
    17891789 
     1790        ViewCell::NewMail(); 
     1791 
    17901792        // traverse the view space subdivision 
    17911793        CastLineSegment(origin, termination, viewcells); 
     
    18071809                        // if ray not outside of view space 
    18081810                        float contribution; 
    1809                         if (ray.mTerminationObject) { 
    1810                           if (viewcell->GetPvs().GetSampleContribution(ray.mTerminationObject, 
    1811                                                                                                                    ray.mPdf, 
    1812                                                                                                                    contribution)) 
    1813                           { 
    1814                                 ++ ray.mPvsContribution; 
    1815                                   ray.mRelativePvsContribution += contribution; 
    1816                           } 
     1811 
     1812                        if (ray.mTerminationObject)  
     1813                        { 
     1814                                cout << "f"; 
     1815                                if (viewcell->GetPvs().GetSampleContribution(ray.mTerminationObject, 
     1816                                        ray.mPdf, 
     1817                                        contribution)) 
     1818                                { 
     1819                                        ++ ray.mPvsContribution; 
     1820                                        ray.mRelativePvsContribution += contribution; 
     1821                                } 
    18171822                        } 
     1823                         
     1824#if SAMPLE_ORIGIN_OBJECTS 
     1825 
    18181826                        // for directional sampling it is important to count only contributions 
    18191827                        // made in one direction!!! 
    18201828                        // the other contributions of this sample will be counted for the oposite ray! 
    1821 #if SAMPLE_ORIGIN_OBJECTS 
     1829 
    18221830                        if (ray.mOriginObject &&  
    18231831                                viewcell->GetPvs().GetSampleContribution(ray.mOriginObject, 
     
    34863494 
    34873495 
    3488  
    34893496/**************************************************************************/ 
    34903497/*                   VspBspViewCellsManager implementation                */ 
     
    55065513        Vector3 termination = hray.Extrap(tmax); 
    55075514 
     5515        ViewCell::NewMail(); 
     5516 
    55085517        // traverse the view space subdivision 
    55095518        CastLineSegment(origin, termination, viewcells); 
    55105519 
    55115520        if (storeViewCells) 
    5512         {       // copy viewcells memory efficiently 
     5521        {        
     5522                // copy viewcells memory efficiently 
    55135523                ray.mViewCells.reserve(viewcells.size()); 
    55145524                ray.mViewCells = viewcells; 
Note: See TracChangeset for help on using the changeset viewer.