Changeset 1528 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 09/28/06 18:51:43 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r1522 r1528 1318 1318 1319 1319 float sum = 0.0f; 1320 1321 1320 VssRayContainer::const_iterator it, it_end = rays.end(); 1322 1321 … … 1831 1830 ViewCell *viewcell = *it; 1832 1831 1833 if (viewcell->GetValid()) // tests if view cell is in valid view space1832 if (viewcell->GetValid()) // tests if view cell is in valid view space 1834 1833 { 1835 1834 float contribution; … … 1838 1837 { 1839 1838 if (viewcell->GetPvs().GetSampleContribution( 1840 ray.mTerminationObject,1841 ray.mPdf,1842 contribution))1839 ray.mTerminationObject, 1840 ray.mPdf, 1841 contribution)) 1843 1842 { 1844 1843 ++ ray.mPvsContribution; … … 1865 1864 } 1866 1865 1867 // if addrays is true,sampled entities are stored in the pvs1866 // if true, the sampled entities are stored in the pvs 1868 1867 if (addRays) 1869 1868 { … … 1876 1875 // if view point is valid, add new object to the pvs 1877 1876 if (ray.mTerminationObject) 1878 { 1877 {cout <<"here22" << endl; 1879 1878 viewcell->GetPvs().AddSample(ray.mTerminationObject, ray.mPdf); 1880 1879 } … … 5483 5482 { 5484 5483 // 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)) 5487 5488 { 5488 5489 ++ ray.mPvsContribution;
Note: See TracChangeset
for help on using the changeset viewer.