- Timestamp:
- 01/12/06 13:20:25 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor
- Files:
-
- 1 added
- 4 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/scripts/default.env
r521 r522 30 30 samplesPerPass 100000 31 31 initialSamples 300000 32 vssSamples 100000032 vssSamples 2000000 33 33 vssSamplesPerPass 100000 34 34 useImportanceSampling true 35 35 loadInitialSamples false 36 36 storeInitialSamples false 37 useViewSpaceBox true37 useViewSpaceBox false 38 38 } 39 39 … … 54 54 minSize 0.001 55 55 maxCostRatio 0.9 56 maxRayContribution 0. 556 maxRayContribution 0.05 57 57 58 58 maxTotalMemory 200 … … 170 170 ViewCells { 171 171 loadFromFile false 172 exportToFile false172 exportToFile true 173 173 #type kdTree 174 174 #type vspKdTree … … 179 179 180 180 height 5.0 181 maxViewCells 100 181 maxViewCells 100000 182 182 #percentage of total visible objects where pvs is considered invalid 183 maxPvsRatio 1183 maxPvsRatio 0.05 184 184 185 185 delayedConstruction true … … 188 188 PostProcess { 189 189 # how much samples are used for post processing 190 samples 100000190 samples 200000 191 191 } 192 192 … … 199 199 colorCode Random 200 200 exportRays false 201 exportGeometry true201 exportGeometry false 202 202 } 203 203 … … 206 206 # filename ../data/vienna/viewcells-25.x3d 207 207 # filename ../data/vienna/viewcells-large-sel.x3d 208 filename ../scripts/viewcells_ soda.xml208 filename ../scripts/viewcells_vienna.xml 209 209 } 210 210 … … 246 246 PostProcess { 247 247 maxCostRatio 0.005 248 minViewCells 6000248 minViewCells 200 249 249 maxPvsSize 50000 250 250 } … … 257 257 VspBspTree { 258 258 Construction { 259 samples 500000259 samples 900000 260 260 epsilon 0.005 261 261 randomize false … … 287 287 Termination { 288 288 # parameters used for autopartition 289 minRays 1500289 minRays 500 290 290 minPolygons -1 291 291 maxDepth 30 … … 293 293 minArea 0.0001 294 294 #minArea 0.000 295 maxRayContribution 0. 05296 maxCostRatio 0.9 297 missTolerance 2295 maxRayContribution 0.3 296 maxCostRatio 0.93 297 missTolerance 3 298 298 #maxAccRayLength 100 299 299 … … 318 318 PostProcess { 319 319 maxCostRatio 0.1 320 minViewCells 150321 maxPvsSize 1000 320 minViewCells 6000 321 maxPvsSize 10000 322 322 useRaysForMerge true 323 323 } -
trunk/VUT/GtpVisibilityPreprocessor/src/Beam.cpp
r513 r522 65 65 return result; 66 66 } 67 68 69 void Beam::ComputeFrustum(float &near, float &far, 70 float &left, float &right, 71 float &bottom, float &top, 72 const AxisAlignedBox3 &sceneBBox) 73 { 74 const float xDirRange = mDirBox.Max().x - mDirBox.Min().x; 75 const float yDirRange = mDirBox.Max().y - mDirBox.Min().y; 76 77 near = 1; // NOTE: what is the best value for near and far plane? 78 far = sceneBBox.Size(sceneBBox.Size().DrivingAxis()); 79 80 left = 1.0f / tan(xDirRange * 0.5); 81 right = 1.0f / tan(xDirRange * 0.5); 82 83 bottom = 1.0f / tan(yDirRange * 0.5); 84 top = 1.0f / tan(yDirRange * 0.5); 85 } -
trunk/VUT/GtpVisibilityPreprocessor/src/Beam.h
r513 r522 35 35 const AxisAlignedBox3 &dBox); 36 36 37 38 int 39 ComputeIntersection(const AxisAlignedBox3 &box); 37 void ComputeFrustum(float &near, float &far, 38 float &left, float &right, 39 float &bottom, float &top, 40 const AxisAlignedBox3 &sceneBBox); 41 42 int ComputeIntersection(const AxisAlignedBox3 &box); 40 43 41 44 bool IsValid() { return mFlags & VALID; } … … 45 48 { 46 49 } 47 48 50 }; 49 51
Note: See TracChangeset
for help on using the changeset viewer.