- Timestamp:
- 03/02/06 14:47:47 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/scripts/Plugin_VisibilitySceneManager.vcproj
r657 r670 109 109 LinkIncremental="1" 110 110 SuppressStartupBanner="TRUE" 111 AdditionalLibraryDirectories=""$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)";"$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)";"$(OGRE_ ADDONS_PATH)\dotsceneoctree\PlugIns\DotSceneManager\bin\$(ConfigurationName)";"$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib";"..\..\GtpVisibility\lib\$(ConfigurationName)";"..\..\lib\$(ConfigurationName)";"..\lib\$(ConfigurationName)";"$(OGRE_PATH)\Dependencies\lib\$(ConfigurationName)""111 AdditionalLibraryDirectories=""$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)";"$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)";"$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib";"..\..\GtpVisibility\lib\$(ConfigurationName)";"..\..\lib\$(ConfigurationName)";"..\lib\$(ConfigurationName)";"$(OGRE_PATH)\Dependencies\lib\$(ConfigurationName)"" 112 112 ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def" 113 113 GenerateDebugInformation="TRUE" -
GTP/trunk/Lib/Vis/Preprocessing/scripts/egsr_test_script
r668 r670 102 102 -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ 103 103 -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ 104 - bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \104 -vsp_bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \ 105 105 -view_cells_post_process_merge=false \ 106 106 -vsp_bsp_split_only_driving_axis=true \ … … 136 136 -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ 137 137 -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ 138 - bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \138 -vsp_bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \ 139 139 -view_cells_construction_samples=0 \ 140 140 -view_cells_post_process_merge=false \ … … 166 166 -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ 167 167 -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ 168 - bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \168 -vsp_bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \ 169 169 -view_cells_post_process_merge=false \ 170 170 -vsp_bsp_split_only_driving_axis=false \ … … 186 186 187 187 188 ################################################################ 189 # vspbsptree - good merge # 190 ################################################################ 191 192 # 193 # use many samples for merge 194 # 195 196 METHOD=vsp-good-merge 197 198 echo "$SCENE $METHOD" 199 200 $PROGRAM $ENVIRONMENT \ 201 -view_cells_type=vspBspTree \ 202 -view_cells_construction_samples=8000000 \ 203 -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ 204 -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ 205 -vsp_bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \ 206 -view_cells_post_process_merge=true \ 207 -view_cells_filename=$LOG_PREFIX-$METHOD-viewCells.x3d 208 209 mv debug.log $LOG_PREFIX-$METHOD-debug.log 210 211 212 188 213 189 214 ################################################################ … … 195 220 # 196 221 222 METHOD=vsp-few-samples 223 224 echo "$SCENE $METHOD" 225 226 $PROGRAM $ENVIRONMENT \ 227 -view_cells_type=vspBspTree \ 228 -view_cells_term_max_view_cells=2500 \ 229 -vsp_bsp_construction_samples=100000 \ 230 -view_cells_construction_samples=0 \ 231 -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ 232 -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ 233 -vsp_bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \ 234 -view_cells_post_process_merge=false \ 235 -view_cells_filename=$LOG_PREFIX-$METHOD-viewCells.x3d 236 237 mv debug.log $LOG_PREFIX-$METHOD-debug.log 238 239 240 241 ################################################################ 242 # vspbsptree - many samples # 243 ################################################################ 244 245 # 246 # use many samples for initial subdivision 247 # 248 197 249 METHOD=vsp-many-samples 198 250 … … 201 253 $PROGRAM $ENVIRONMENT \ 202 254 -view_cells_type=vspBspTree \ 203 -view_cells_term_max_view_cells=1000 \ 204 -vsp_bsp_construction_samples=100000 \ 255 -view_cells_term_max_view_cells=2500 \ 256 -vsp_bsp_construction_samples=2500000 \ 257 -view_cells_construction_samples=0 \ 258 -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ 259 -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ 260 -vsp_bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \ 261 -view_cells_post_process_merge=false \ 262 -view_cells_filename=$LOG_PREFIX-$METHOD-viewCells.x3d 263 264 mv debug.log $LOG_PREFIX-$METHOD-debug.log 265 266 267 268 ################################################################ 269 # vspbsptree - many samples # 270 ################################################################ 271 272 # 273 # use many samples for initial subdivision but don't use split cost queue 274 # 275 276 METHOD=vsp-many-samples-no-split-queue 277 278 echo "$SCENE $METHOD" 279 280 $PROGRAM $ENVIRONMENT \ 281 -view_cells_type=vspBspTree \ 282 -view_cells_term_max_view_cells=2500 \ 283 -vsp_bsp_construction_samples=2500000 \ 284 -view_cells_construction_samples=0 \ 205 285 -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ 206 286 -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ 207 287 -vsp_bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \ 208 288 -view_cells_post_process_merge=true \ 209 -view_cells_filename=$LOG_PREFIX-$METHOD-viewCells.x3d 210 211 mv debug.log $LOG_PREFIX-$METHOD-debug.log 212 213 214 ################################################################ 215 # vspbsptree - good merge # 216 ################################################################ 217 218 # 219 # use many samples for merge 220 # 221 222 METHOD=vsp-good-merge 223 224 echo "$SCENE $METHOD" 225 226 $PROGRAM $ENVIRONMENT \ 227 -view_cells_type=vspBspTree \ 228 -view_cells_construction_samples=8000000 \ 229 -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ 230 -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ 231 -vsp_bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \ 232 -view_cells_post_process_merge=true \ 233 -view_cells_filename=$LOG_PREFIX-$METHOD-viewCells.x3d 234 235 mv debug.log $LOG_PREFIX-$METHOD-debug.log 236 237 238 239 240 ################################################################ 241 # vspbsptree - many samples # 242 ################################################################ 243 244 # 245 # use many samples for initial subdivision 246 # 247 248 METHOD=vsp-many-samples 249 250 echo "$SCENE $METHOD" 251 252 $PROGRAM $ENVIRONMENT \ 253 -view_cells_type=vspBspTree \ 254 -view_cells_term_max_view_cells=1000 \ 255 -vsp_bsp_construction_samples=2000000 \ 256 -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ 257 -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ 258 -vsp_bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \ 259 -view_cells_post_process_merge=true \ 260 -view_cells_filename=$LOG_PREFIX-$METHOD-viewCells.x3d 261 262 mv debug.log $LOG_PREFIX-$METHOD-debug.log 263 264 265 ################################################################ 266 # vspbsptree - many samples # 267 ################################################################ 268 269 # 270 # use many samples for initial subdivision but don't use split cost queue 271 # 272 273 METHOD=vsp-many-samples-no-split-queue 274 275 echo "$SCENE $METHOD" 276 277 $PROGRAM $ENVIRONMENT \ 278 -view_cells_type=vspBspTree \ 279 -view_cells_term_max_view_cells=1000 \ 280 -vsp_bsp_construction_samples=2000000 \ 281 -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ 282 -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ 283 -vsp_bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \ 284 -view_cells_post_process_merge=true \ 285 -vsp_bsp_use_split_cost_queue=true \ 286 -view_cells_filename=$LOG_PREFIX-$METHOD-viewCells.x3d 287 288 mv debug.log $LOG_PREFIX-$METHOD-debug.log 289 -vsp_bsp_use_split_cost_queue=false \ 290 -view_cells_filename=$LOG_PREFIX-$METHOD-viewCells.x3d 291 292 mv debug.log $LOG_PREFIX-$METHOD-debug.log -
GTP/trunk/Lib/Vis/Preprocessing/src/Environment.cpp
r667 r670 1276 1276 RegisterOption("ViewCells.evaluateViewCells", 1277 1277 optBool, 1278 "view_cells_evaluate _view_cells=",1278 "view_cells_evaluate=", 1279 1279 "false"); 1280 1280 -
GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp
r667 r670 743 743 float cData = (float)tData.mPvs * tData.mProbability;; 744 744 745 float costDecr = 746 (cFront + cBack - cData) / mBox.GetVolume(); 745 float costDecr = (cFront + cBack - cData) / mBox.GetVolume(); 747 746 748 747 mTotalCost += costDecr; … … 943 942 tData.mPriority = mBreathFirstSplits ? 944 943 (float)-tData.mDepth : tData.mPvs * tData.mProbability; 944 //cout << "priority: " << tData.mPriority << endl; 945 945 } 946 946 … … 1356 1356 sAxis = tData.mAxis; 1357 1357 1358 //Debug << "use special axis: " << useSpecialAxis << endl; 1359 //Debug << "axis: " << sAxis << " drivingaxis: " << box.Size().DrivingAxis(); 1358 1360 1359 1361 for (axis = 0; axis < 3; ++ axis) -
GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.h
r666 r670 129 129 float GetCost() const 130 130 { 131 //cout << "here " << mPriority << endl; 131 132 return mPriority; 132 133 } -
GTP/trunk/Lib/Vis/shared/EvalStats/EvalStats.cpp
r668 r670 97 97 const int index) 98 98 { 99 float denom = currentStats.mRenderCost ? currentStats.mRenderCost : 0.000001f;100 float costRatio = firstStats.mRenderCost / denom;99 float denom = firstStats.mRenderCost ? firstStats.mRenderCost : 0.000001f; 100 float costRatio = currentStats.mRenderCost / denom; 101 101 102 102 denom = firstStats.mAvgRenderCost ? firstStats.mAvgRenderCost : 0.000001f; 103 float avgCostRatio = firstStats.mAvgRenderCost / denom;103 float avgCostRatio = currentStats.mAvgRenderCost / denom; 104 104 105 105 statsOut << "#ViewCells\n" << index + 1 << endl 106 << "#TotalRenderCostGain\n" << 100.0f - costRatio * 100.0f << endl 107 << "#AvgRenderCostGain\n" << 100.0f - avgCostRatio * 100.0f << endl << endl; 106 //<< "#TotalRenderCostGain\n" << 100.0f - costRatio * 100.0f << endl 107 //<< "#AvgRenderCostGain\n" << 100.0f - avgCostRatio * 100.0f << endl << endl; 108 << "#TotalRenderCostGain\n" << 100.0f * costRatio - 100.0f<< endl 109 << "#AvgRenderCostGain\n" << 100.0f * avgCostRatio -100.0f << endl << endl; 108 110 } 109 111 … … 163 165 { 164 166 cout << "writing output to file " << *sit << endl; 165 166 167 ofstream statsOut((*sit).c_str()); 167 168 ++ sit; 168 169 169 cout << "size here" << (*it).size() << endl;170 170 // compute size of output vector 171 171 const int n = min((int)firstStats.size(), (int)(*it).size()); … … 175 175 ComputeStats(statsOut, firstStats[i], (*it)[i], i); 176 176 } 177 cout << "here2 " << n << endl;177 178 178 statsOut.close(); 179 179 }
Note: See TracChangeset
for help on using the changeset viewer.