Ignore:
Timestamp:
10/07/06 22:54:13 (18 years ago)
Author:
bittner
Message:

Qtglwidget changes - second view + trackball - ray casting seems not functional

File:
1 edited

Legend:

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

    r1580 r1581  
    18561856                        {                        
    18571857                                if (viewcell->GetPvs().GetSampleContribution( 
    1858                                                         ray.mTerminationObject, 
    1859                                                         ray.mPdf, 
    1860                                                         contribution)) 
    1861                                 { 
     1858                                                                                                                         ray.mTerminationObject, 
     1859                                                                                                                         ray.mPdf, 
     1860                                                                                                                         contribution)) 
     1861                                  { 
    18621862                                        ++ ray.mPvsContribution; 
    1863                                         ray.mRelativePvsContribution += contribution; 
    1864                                 } 
     1863                                  } 
     1864                                ray.mRelativePvsContribution += contribution; 
     1865                                 
    18651866                        } 
    18661867                         
    18671868#if SAMPLE_ORIGIN_OBJECTS 
    1868  
     1869                         
    18691870                        // for directional sampling it is important to count only contributions 
    18701871                        // made in one direction!!! 
    18711872                        // the other contributions of this sample will be counted for the oposite ray! 
    1872  
     1873                         
    18731874                        if (ray.mOriginObject &&  
    18741875                                viewcell->GetPvs().GetSampleContribution(ray.mOriginObject, 
    18751876                                                                                                                 ray.mPdf, 
    18761877                                                                                                                 contribution)) 
    1877                         { 
     1878                          { 
    18781879                                ++ ray.mPvsContribution; 
    1879                                 ray.mRelativePvsContribution += contribution; 
    1880                         } 
     1880                          } 
     1881                        ray.mRelativePvsContribution += contribution; 
    18811882#endif 
    18821883                } 
     
    55165517                        { 
    55175518                                ++ ray.mPvsContribution; 
    5518                                 ray.mRelativePvsContribution += contribution; 
    55195519                        } 
     5520                        ray.mRelativePvsContribution += contribution; 
    55205521#endif 
    55215522                } 
Note: See TracChangeset for help on using the changeset viewer.