- Timestamp:
- 10/12/05 01:42:34 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/scripts/default.env
r319 r320 56 56 57 57 Sampling { 58 totalSamples 20000058 totalSamples 500000 59 59 samplesPerPass 10 60 60 } … … 67 67 #hierarchyType sceneDependent 68 68 # filename ../data/atlanta/atlanta_viewcells_large.x3d 69 #filename ../data/vienna/viewcells-25-sel.x3d70 filename ../data/vienna/viewcells-25.x3d69 filename ../data/vienna/viewcells-25-sel.x3d 70 # filename ../data/vienna/viewcells-25.x3d 71 71 # filename ../data/vienna/viewcells-large-sel.x3d 72 72 } -
trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.cpp
r319 r320 236 236 vector<Ray> vcRays[5]; 237 237 238 vector<Ray> viewCellRays; // used for BSP tree construction 238 239 const int fromRaysBspThresh = 1000; 239 240 … … 246 247 // construct Bsp tree if not 247 248 if ((mViewCellsType == Preprocessor::BSP_VIEW_CELLS) && 248 !mBspTree->GetRoot() && ( passSamples >fromRaysBspThresh))249 !mBspTree->GetRoot() && (totalSamples >= fromRaysBspThresh)) 249 250 { 250 251 BuildBspTree(); … … 337 338 338 339 // construct a ray 339 340 340 SetupRay(ray, point, direction); 341 341 … … 344 344 if (mViewCellsType == BSP_VIEW_CELLS) 345 345 { 346 // save rays for bsp tree construction 347 if (!mBspTree->GetRoot() && (totalSamples < fromRaysBspThresh)) 348 { 349 viewCellRays.push_back(ray); 350 } 346 351 // check whether we can add this to the rays 347 352 for (int k = 0; k < ray.viewCells.size(); ++ k)
Note: See TracChangeset
for help on using the changeset viewer.