- Timestamp:
- 01/01/06 06:25:55 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VssPreprocessor.cpp
r485 r487 378 378 379 379 if (useViewSpaceBox) 380 { 380 381 mViewSpaceBox = box; 382 mViewCellsManager->SetViewSpaceBox(*box); 383 } 381 384 else 385 { 382 386 mViewSpaceBox = NULL; 383 384 387 mViewCellsManager->SetViewSpaceBox(mKdTree->GetBox()); 388 } 385 389 VssTree *vssTree = NULL; 386 390 … … 395 399 int s = Min(mSamplesPerPass, mInitialSamples); 396 400 for (int k=0; k < s; k++) { 397 398 Vector3 viewpoint = GetViewpoint(mViewSpaceBox); 401 // changed by matt 402 //Vector3 viewpoint = GetViewpoint(mViewSpaceBox); 403 Vector3 viewpoint; 404 mViewCellsManager->GetViewPoint(viewpoint); 399 405 Vector3 direction = GetDirection(viewpoint, mViewSpaceBox); 400 406 … … 453 459 454 460 // construct view cells 455 mViewCellsManager->Construct(mObjects, mVssRays , mViewSpaceBox);461 mViewCellsManager->Construct(mObjects, mVssRays); 456 462 457 463 vssTree = new VssTree; … … 501 507 if (!mUseImportanceSampling) { 502 508 for (int j=0; j < num; j++) { 503 Vector3 viewpoint = GetViewpoint(mViewSpaceBox); 509 // changed by matt 510 //Vector3 viewpoint = GetViewpoint(mViewSpaceBox); 511 Vector3 viewpoint; 512 mViewCellsManager->GetViewPoint(viewpoint); 504 513 Vector3 direction = GetDirection(viewpoint, mViewSpaceBox); 505 514 rays.push_back(SimpleRay(viewpoint, direction));
Note: See TracChangeset
for help on using the changeset viewer.