Changeset 1608 for GTP/trunk/Lib/Vis
- Timestamp:
- 10/11/06 00:57:43 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp
r1594 r1608 284 284 GlRenderer::InitGL() 285 285 { 286 mSphere = (GLUquadric *)gluNewQuadric(); 287 286 288 glMatrixMode(GL_PROJECTION); 287 289 glLoadIdentity(); -
GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.h
r1594 r1608 29 29 struct VssRayContainer; 30 30 31 struct GLUquadric; 32 31 33 struct PvsRenderStatistics { 32 34 … … 171 173 string mSnapPrefix; 172 174 175 GLUquadric *mSphere; 176 173 177 KdTree *mKdTree; 174 178 -
GTP/trunk/Lib/Vis/Preprocessing/src/Makefile
r1594 r1608 1 1 ############################################################################# 2 2 # Makefile for building: preprocessor 3 # Generated by qmake (2.00a) (Qt 4.1.2) on: po 9. X 21:25:0520063 # Generated by qmake (2.00a) (Qt 4.1.2) on: út 10. X 22:38:46 2006 4 4 # Project: preprocessor.pro 5 5 # Template: app -
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r1593 r1608 903 903 } 904 904 if (i % 10000 == 0) 905 cout<< i<<"/"<<rays.size()<<"\r";906 } 907 908 905 cout<<"\r"<<i<<"/"<<rays.size()<<"\r"; 906 } 907 cout<<endl; 908 909 909 long t2 = GetTime(); 910 910 -
GTP/trunk/Lib/Vis/Preprocessing/src/QtGlRenderer.cpp
r1594 r1608 998 998 mWireFrame = true; 999 999 RenderIntersectable(viewcell); 1000 glPushMatrix(); 1001 glTranslatef(mViewPoint.x, mViewPoint.y, mViewPoint.z); 1002 gluSphere((::GLUquadric *)mSphere, 1003 1e-3*Magnitude(mViewCellsManager->GetViewSpaceBox().Size()), 6, 6); 1004 glPopMatrix(); 1000 1005 mWireFrame = false; 1001 1006 } … … 1610 1615 QtGlRendererWidget::SetViewCellGranularity(int number) 1611 1616 { 1612 if (mViewCellsManager) 1617 if (mViewCellsManager) { 1613 1618 // mViewCellsManager->SetMaxFilterSize(number); 1614 1619 mViewCellsManager->CollectViewCells(number); 1615 1620 1621 // $$ does not work so far:( 1622 // mViewCellsManager->UpdatePvsForEvaluation(); 1623 // mViewCellsManager->FinalizeViewCells(false); 1624 } 1616 1625 updateGL(); 1617 1626 } -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r1606 r1608 30 30 31 31 // $$JB HACK 32 #define USE_KD_PVS 133 #define KD_PVS_AREA 1e- 3f32 #define USE_KD_PVS 0 33 #define KD_PVS_AREA 1e-4f 34 34 35 35 namespace GtpVisibilityPreprocessor { … … 2472 2472 2473 2473 2474 void 2475 ViewCellsManager::UpdatePvsForEvaluation() 2476 { 2477 ObjectPvs objPvs; 2478 UpdatePvsForEvaluation(mViewCellsTree->GetRoot(), objPvs); 2479 } 2480 2474 2481 void ViewCellsManager::UpdatePvsForEvaluation(ViewCell *root, ObjectPvs &pvs) 2475 2482 { -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h
r1603 r1608 534 534 } 535 535 536 void UpdatePvsForEvaluation(); 537 536 538 protected: 537 539 -
GTP/trunk/Lib/Vis/Preprocessing/src/default.env
r1594 r1608 6 6 Scene { 7 7 8 #filename ../data/arena/export.obj 9 8 10 # filename ../data/City4M/City4M.obj 9 filename ../data/CityModel/CityModel.obj11 # filename ../data/CityModel/CityModel.obj 10 12 # filename ../data/GrandCanyon/grandcanyon1_RotXmin90.obj 11 13 # filename ../data/glasgow/glasgow1.x3d … … 14 16 # filename ../data/vienna/vienna-buildings.x3d 15 17 # filename ../data/vienna/city1500_flat_1.x3d 16 filename ../data/vienna/vienna-buildings.x3d;../data/vienna/vienna-roofs.x3d;../data/vienna/vienna-roads.x3d18 #filename ../data/vienna/vienna-buildings.x3d;../data/vienna/vienna-roofs.x3d;../data/vienna/vienna-roads.x3d 17 19 18 20 # ../data/vienna/vienna-plane.x3d; 19 21 # filename ../data/vienna/viewcells-25-sel.x3d 20 22 #filename ../data/atlanta/atlanta2.x3d 21 #filename ../data/soda/soda.dat23 filename ../data/soda/soda.dat 22 24 #filename ../data/test1/test2.x3d 23 25 #filename ../data/soda/soda5.dat … … 53 55 applyVisibilitySpatialFilter false 54 56 visibilityFilterWidth 0.01 57 exportVisibility true 55 58 visibilityFile visibility.xml 56 59 loadMeshes false … … 76 79 samplesPerPass 1000 77 80 initialSamples 1000000 78 vssSamples 5000000081 vssSamples 10000000 79 82 vssSamplesPerPass 1000000 80 83 useImportanceSampling true … … 145 148 minCost 4 146 149 maxDepth 30 147 maxCostRatio 0.99150 maxCostRatio 1.0 148 151 ct_div_ci 0.5 149 152 maxNodes 300000 … … 246 249 } 247 250 251 # filename ../data/arena/viewcells-5000.xml 252 248 253 # filename ../data/atlanta/atlanta_viewcells_large.x3d 249 254 # filename ../data/vienna/viewcells-25-sel.x3d … … 255 260 # filename ../data/soda/soda5-viewcells.xml 256 261 # filename ../scripts/viewcells_atlanta.xml 257 #filename ../data/soda/soda-viewcells-5000.xml262 filename ../data/soda/soda-viewcells-5000.xml 258 263 # filename ../data/test1/test-viewcells.xml 259 264 260 265 # filename ../data/soda/soda5-viewcell-single.xm 261 266 # filename ../data/soda/soda-viewcells-1000.xml.zip 267 # filename ../data/soda/soda-viewcells-vsposp.xml 268 269 262 270 # filename ../data/CityModel/CityModel-viewcells-5000.xml 263 271 # filename ../data/City4M/City4M-viewcells-5000.xml … … 272 280 # filename ../data/vienna/vienna_simple-21-04-avs2-viewCells.xml 273 281 # filename ../data/vienna/vienna-viewcells-5000.xml 274 filename ../data/vienna/vienna-viewcells-1000.xml.zip282 # filename ../data/vienna/vienna-viewcells-1000.xml.zip 275 283 # filename ../data/vienna/vsposp-seq-viewCells.xml.gz 284 285 # filename ../data/vienna/city1500_flat_viewcells-1000.xml 286 # filename ../data/vienna/city1500_flat-vsposp.xml 287 # filename ../data/vienna/vienna-simple-vsposp.xml 276 288 277 289 # filename ../data/PowerPlant/power_plant_viewcells1.xml … … 338 350 # minGlobalCostRatio 0.0001 339 351 # $$MAXVIEWCELLS 340 maxViewCells 5000352 maxViewCells 1000 341 353 342 354
Note: See TracChangeset
for help on using the changeset viewer.