Changeset 435 for trunk/VUT/GtpVisibilityPreprocessor
- Timestamp:
- 11/25/05 16:51:47 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Makefile
r434 r435 1 1 ############################################################################# 2 2 # Makefile for building: preprocessor 3 # Generated by qmake (1.07a) (Qt 3.3.2) on: Wed Nov 23 09:47:0120053 # Generated by qmake (1.07a) (Qt 3.3.2) on: Fri Nov 25 16:40:39 2005 4 4 # Project: preprocessor.pro 5 5 # Template: app … … 762 762 AxisAlignedBox3.h \ 763 763 Statistics.h \ 764 Containers.h \ 764 765 Vector3.h \ 765 766 common.h \ -
trunk/VUT/GtpVisibilityPreprocessor/src/VssTree.cpp
r434 r435 479 479 ); 480 480 481 //cout<<axis<<" r="<<costRatio<<endl;481 cout<<axis<<" r="<<costRatio<<endl; 482 482 483 483 if (costRatio > termMaxCostRatio) { … … 1611 1611 leaves++; 1612 1612 VssTreeLeaf *leaf = (VssTreeLeaf *)node; 1613 float c = leaf->Get AvgRayContribution();1613 float c = leaf->GetImportance(); 1614 1614 if (c > maxRayContribution) 1615 1615 maxRayContribution = c; … … 1645 1645 if (node->IsLeaf()) { 1646 1646 VssTreeLeaf *leaf = (VssTreeLeaf *)node; 1647 float c = leaf->Get AvgRayContribution();1647 float c = leaf->GetImportance(); 1648 1648 int num = (c*ratioPerLeaf + 0.5); 1649 1649 // cout<<num<<" "; … … 1776 1776 for (i=0; i < leaves.size() && k < numberOfLeaves; i++) 1777 1777 if (ValidLeaf(leaves[i])) { 1778 float c = leaves[i]->Get AvgRayContribution();1778 float c = leaves[i]->GetImportance(); 1779 1779 sumContrib += c; 1780 1780 // cout<<"ray contrib "<<i<<" : "<<c<<endl; … … 1789 1789 k++; 1790 1790 VssTreeLeaf *leaf = leaves[i]; 1791 float c = leaf->Get AvgRayContribution();1791 float c = leaf->GetImportance(); 1792 1792 int num = (c*ratioPerLeaf + 0.5); 1793 1793 GenerateLeafRays(leaf, num, rays); … … 1829 1829 1830 1830 1831 float 1832 VssTreeLeaf::GetImportance() const 1833 { 1834 return GetAvgRayContribution(); 1835 } -
trunk/VUT/GtpVisibilityPreprocessor/src/VssTree.h
r434 r435 465 465 return GetPvsSize()/((float)rays.size() + Limits::Small); 466 466 } 467 468 float GetImportance() const; 467 469 468 470 float GetSqrRayContribution() const { -
trunk/VUT/GtpVisibilityPreprocessor/src/X3dExporter.cpp
r434 r435 764 764 Vector3 direction = VssRay::GetDirection(v.x, v.y); 765 765 direction.Normalize(); 766 float k = 100.0f*leaf->Get AvgRayContribution();766 float k = 100.0f*leaf->GetImportance(); 767 767 // get 4 corners of the ray directions 768 768 -
trunk/VUT/GtpVisibilityPreprocessor/src/default.env
r434 r435 32 32 33 33 VssTree { 34 useRss true34 useRss false 35 35 epsilon 1e-6 36 36 … … 39 39 minRays 100 40 40 minSize 0.001 41 maxCostRatio 1.141 maxCostRatio 0.98 42 42 maxRayContribution 0.05 43 43 … … 45 45 maxStaticMemory 50 46 46 47 #splitType regular47 splitType regular 48 48 # splitType heuristic 49 splitType hybrid49 # splitType hybrid 50 50 splitUseOnlyDrivingAxis true 51 51 … … 227 227 } 228 228 229 VssTree {230 epsilon 1e-6231 232 maxDepth 40233 minPvs 1234 minRays 50235 minSize 0.00001236 maxCostRatio 0.95237 maxRayContribution 0.05238 239 maxTotalMemory 400240 maxStaticMemory 20241 242 splitType regular243 # splitType heuristics244 245 numberOfEndPointDomains 10000246 ct_div_ci 0.0247 randomize false248 249 refDirBoxMaxSize 0.1250 }251 229 252 230 VspKdTree {
Note: See TracChangeset
for help on using the changeset viewer.