Changeset 355
- Timestamp:
- 10/28/05 16:07:53 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor/src
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.cpp
r354 r355 416 416 //mKdTree->GetRandomLeaf(Plane3(normal, point)); 417 417 418 418 419 for (int k=0; k < mSamplesPerPass; k++) { 419 420 bool reverseSample = false; 420 421 421 422 nodeToSample = GetNodeToSample(object); 422 423 423 424 if (nodeToSample) { 424 Vector3 pointToSample = mKdTree->GetBox(nodeToSample).GetRandomPoint(); 425 if (object->GetRandomVisibleSurfacePoint( point, normal, pointToSample, 5 )) { 425 AxisAlignedBox3 box = mKdTree->GetBox(nodeToSample); 426 Vector3 pointToSample = box.GetRandomPoint(); 427 // pointToSample.y = 0.9*box.Min().y + 0.1*box.Max().y; 428 if (object->GetRandomVisibleSurfacePoint( point, normal, pointToSample, 3 )) { 426 429 direction = pointToSample - point; 427 430 } else { -
trunk/VUT/GtpVisibilityPreprocessor/src/default.env
r340 r355 9 9 # filename vienna.x3d 10 10 # filename ../data/vienna/vienna-simple.x3d 11 #filename ../data/vienna/vienna-buildings.x3d11 filename ../data/vienna/vienna-buildings.x3d 12 12 # filename ../data/vienna/viewcells-25-sel.x3d 13 filename ../data/atlanta/atlanta2.x3d13 # filename ../data/atlanta/atlanta2.x3d 14 14 # filename ../data/soda/soda.dat 15 15 # filename ../data/soda/soda5.dat … … 56 56 57 57 Sampling { 58 totalSamples 1000000 58 totalSamples 10000000 59 59 samplesPerPass 20 60 60 }
Note: See TracChangeset
for help on using the changeset viewer.