Changeset 555
- Timestamp:
- 01/19/06 14:49:56 (18 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/scripts/default.env
r552 r555 30 30 samplesPerPass 100000 31 31 initialSamples 300000 32 vssSamples 1 80000033 vssSamplesPerPass 10000032 vssSamples 1500000 33 vssSamplesPerPass 500000 34 34 useImportanceSampling true 35 35 loadInitialSamples false … … 52 52 maxDepth 40 53 53 minPvs 30 54 minRays 80054 minRays 400 55 55 minSize 0.001 56 56 maxCostRatio 1.5 … … 170 170 171 171 ViewCells { 172 loadFromFile false173 exportToFile true172 loadFromFile true 173 exportToFile false 174 174 #type kdTree 175 175 #type vspKdTree … … 259 259 VspBspTree { 260 260 Construction { 261 samples 1200000261 samples 900000 262 262 epsilon 0.005 263 263 randomize false -
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellsManager.cpp
r554 r555 259 259 Finalize(*it, createMesh); 260 260 } 261 262 mTotalAreaValid = false; 261 263 } 262 264 … … 2473 2475 mVspBspTree->mBox = GetViewSpaceBox(); 2474 2476 ResetViewCells(); 2475 CreateViewCellMeshes(); 2477 2478 mViewCellsFinished = true; 2479 2480 FinalizeViewCells(true); 2476 2481 2477 2482 Debug << (int)mViewCells.size() << " view cells loaded" << endl; 2478 2479 mViewCellsFinished = true;2480 2483 2481 2484 return success; … … 2529 2532 2530 2533 2531 void VspBspViewCellsManager::Finalize(ViewCell *viewCell )2534 void VspBspViewCellsManager::Finalize(ViewCell *viewCell, const bool createMesh) 2532 2535 { 2533 2536 BspViewCell *vc = dynamic_cast<BspViewCell *>(viewCell); -
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellsManager.h
r551 r555 606 606 //float GetVolume(ViewCell *viewCell) const; 607 607 608 void Finalize(ViewCell *viewCell );608 void Finalize(ViewCell *viewCell, const bool createMesh); 609 609 610 610 protected: -
trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.cpp
r551 r555 1937 1937 bool isAdjacent = true; 1938 1938 1939 1940 #if 1 1939 1941 // test all planes of current node if still adjacent 1940 1942 for (int i = 0; (i < halfSpaces.size()) && isAdjacent && (node != n); ++ i) … … 1950 1952 } 1951 1953 } 1952 1954 #else 1955 // test all planes of current node if still adjacent 1956 for (int i = 0; i < nodeGeom.size()) && isAdjacent && (node != n); ++ i) 1957 { 1958 Polygon3 *poly = nodeGeom->mPolys[i]; 1959 1960 const int cf = 1961 Polygon3::ClassifyPlane(geom->mPolys, 1962 poly->GetSupportingPlane(), 1963 mEpsilon); 1964 1965 if (cf == Polygon3::BACK_SIDE) 1966 { 1967 isAdjacent = false; 1968 } 1969 } 1970 #endif 1953 1971 if (isAdjacent) 1954 1972 {
Note: See TracChangeset
for help on using the changeset viewer.