- Timestamp:
- 01/16/06 09:42:33 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/scripts/default.env
r542 r543 182 182 maxViewCells 100000 183 183 #percentage of total visible objects where pvs is considered invalid 184 maxPvsRatio 0. 3184 maxPvsRatio 0.15 185 185 186 186 delayedConstruction true … … 259 259 VspBspTree { 260 260 Construction { 261 samples 300000261 samples 600000 262 262 epsilon 0.005 263 263 randomize false … … 292 292 Termination { 293 293 # parameters used for autopartition 294 minRays 500294 minRays 400 295 295 minPolygons -1 296 296 maxDepth 30 … … 298 298 #minArea 0.0001 299 299 minArea -1 300 maxRayContribution 0. 9301 maxCostRatio 99999.93300 maxRayContribution 0.2 301 maxCostRatio 0.9 302 302 missTolerance 3 303 303 #maxAccRayLength 100 304 304 305 maxViewCells 2001305 maxViewCells 5001 306 306 307 307 # used for pvs criterium -
trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.cpp
r542 r543 882 882 { 883 883 nPosition[axis] = (box.Min()[axis] + box.Max()[axis]) * 0.5f; 884 Vector3 normal(0,0,0); normal[axis] = 1 ;884 Vector3 normal(0,0,0); normal[axis] = 1.0f; 885 885 886 886 if (useKdSplit) … … 891 891 nPosition[axis]); 892 892 893 Vector3 pos = box.Max(); pos[axis] = nPosition[axis]; 894 AxisAlignedBox3 frontBox(box.Min(), pos); 895 frontBox.ExtractPolys(nFrontGeom[axis]->mPolys); 893 Vector3 pos; 894 895 pos = box.Max(); pos[axis] = nPosition[axis]; 896 AxisAlignedBox3 backBox(box.Min(), pos); 897 backBox.ExtractPolys(nBackGeom[axis]->mPolys); 896 898 897 899 pos = box.Min(); pos[axis] = nPosition[axis]; 898 AxisAlignedBox3 backBox(pos, box.Max());899 backBox.ExtractPolys(nBackGeom[axis]->mPolys);900 AxisAlignedBox3 frontBox(pos, box.Max()); 901 frontBox.ExtractPolys(nFrontGeom[axis]->mPolys); 900 902 901 903 } … … 1105 1107 // we can do this because we always save the 1106 1108 // computed values from the axis aligned splits 1107 frontData.mGeometry = fGeom;1109 /*frontData.mGeometry = fGeom; 1108 1110 backData.mGeometry = bGeom; 1109 1111 frontData.mArea = fArea; 1110 1112 backData.mArea = bArea; 1111 1113 */ 1112 1114 //! error also computed if cost ratio is missed 1113 1115 ++ mStat.splits[axis];
Note: See TracChangeset
for help on using the changeset viewer.