- Timestamp:
- 11/25/05 07:59:50 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/scripts/default.env
r430 r431 25 25 VssPreprocessor { 26 26 samplesPerPass 100000 27 initialSamples 200000 28 vssSamples 30000027 initialSamples 2000000 28 vssSamples 1000000 29 29 vssSamplesPerPass 100000 30 30 useImportanceSampling true … … 234 234 maxRayContribution 0.05 235 235 236 maxTotalMemory 400236 maxTotalMemory 200 237 237 maxStaticMemory 20 238 238 … … 263 263 } 264 264 265 maxTotalMemory 600266 maxStaticMemory 600265 maxTotalMemory 400 266 maxStaticMemory 200 267 267 268 268 splitType regular -
trunk/VUT/GtpVisibilityPreprocessor/src/VssRay.h
r430 r431 56 56 mTerminationObject(terminationObject), 57 57 mRefCount(0), 58 mFlags(0) 58 mFlags(0), 59 mT(1.0f) 59 60 { 60 61 Precompute(); … … 65 66 mFlags(0), 66 67 mMailbox(-1), 67 mOriginObject(ray.sourceObject.mObject) 68 mOriginObject(ray.sourceObject.mObject), 69 mT(1.0f) 68 70 { 69 71 if (ray.sourceObject.mObject) … … 76 78 if (!ray.intersections.empty()) 77 79 { 78 mT = ray.intersections[0].mT; 79 mTermination = ray.Extrap(mT); 80 mTermination = ray.Extrap(ray.intersections[0].mT); 80 81 mTerminationObject = ray.intersections[0].mObject; 81 82 } 82 83 else 83 84 { 84 mT = 1e6;//Limits::Infinity; 85 mTermination = mOrigin + ray.GetDir() * mT; 85 mTermination = ray.Extrap(1e6);//TODO: should be Limits::Infinity 86 86 mTerminationObject = NULL; 87 87 } -
trunk/VUT/GtpVisibilityPreprocessor/src/VssTree.cpp
r430 r431 538 538 Intersectable::NewMail(3); 539 539 540 Debug << "evaluating cost ratio: " << leaf->rays.size() << endl; 540 541 if (axis <= VssTreeNode::SPLIT_Z) { 541 542 // this is the main ray classification loop! … … 544 545 ri++) 545 546 if ((*ri).mRay->IsActive()) { 546 547 //Debug << "new t: " << (*ri).mRay->mT << endl; 547 548 // determine the side of this ray with respect to the plane 548 549 int side = (*ri).ComputeRayIntersection(axis, position, (*ri).mRay->mT);
Note: See TracChangeset
for help on using the changeset viewer.