Changeset 444 for trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.cpp
- Timestamp:
- 12/02/05 19:46:07 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.cpp
r442 r444 226 226 void BspLeaf::AddToPvs(const BoundedRayContainer &rays, 227 227 int &sampleContributions, 228 int &contributingSamples, 229 bool storeLeavesWithRays) 228 int &contributingSamples) 230 229 { 231 230 sampleContributions = 0; … … 246 245 contribution += mViewCell->GetPvs().AddSample(ray->sourceObject.mObject); 247 246 248 if (contribution > 0)247 if (contribution) 249 248 { 250 249 sampleContributions += contribution; 251 250 ++ contributingSamples; 252 251 } 253 254 if (storeLeavesWithRays) 255 // warning: intersections not ordered 252 253 //if (ray->mFlags & Ray::STORE_BSP_INTERSECTIONS) 256 254 ray->bspIntersections.push_back(Ray::BspIntersection((*it)->mMinT, this)); 257 255 } … … 632 630 633 631 // generate view cells 634 mGenerateViewCells = false;632 mGenerateViewCells = true; 635 633 636 634 long startTime = GetTime(); … … 1452 1450 1453 1451 // bound ray or line segment 1454 if ( (ray.GetType() == Ray::LOCAL_RAY) &&1452 if (//(ray.GetType() == Ray::LOCAL_RAY) && 1455 1453 !ray.intersections.empty() && 1456 1454 (ray.intersections[0].mT <= maxT)) … … 2072 2070 const float newT = t * bRay->mMaxT; 2073 2071 2074 backRays.push_back(new BoundedRay(ray, bRay->mMinT, newT)); 2075 frontRays.push_back(new BoundedRay(ray, newT, bRay->mMaxT)); 2072 backRays.push_back(new BoundedRay(ray, minT, newT)); 2073 frontRays.push_back(new BoundedRay(ray, newT, maxT)); 2074 2076 2075 DEL_PTR(bRay); 2077 2076
Note: See TracChangeset
for help on using the changeset viewer.