- Timestamp:
- 05/19/08 18:55:38 (17 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/scripts/demo1.env
r2686 r2689 170 170 171 171 KdTree { 172 pvsArea 1e- 3172 pvsArea 1e-4 173 173 sahUseFaces false 174 174 Termination { -
GTP/trunk/Lib/Vis/Preprocessing/scripts/run_demo_vienna
r2687 r2689 8 8 9 9 10 SCENE=../data/vienna/vienna_cropped.obj11 #SCENE=../data/vienna/city_full.obj10 #SCENE=../data/vienna/vienna_cropped.obj 11 SCENE=../data/vienna/city_full.obj 12 12 13 13 VIEWCELLS=../data/vienna/vienna_cropped-gradient-viewcells.xml.gz … … 36 36 -preprocessor_stats=$PREFIX-i-mixed-b1-n4a.log \ 37 37 -preprocessor_detect_empty_viewspace- \ 38 -preprocessor_use_vbos- \ 38 39 -preprocessor_histogram_file=$PREFIX-i-mixed-b1-n4a.hlog \ 39 40 -view_cells_random_viewpoint_list=$VIEWPOINTS \ -
GTP/trunk/Lib/Vis/Preprocessing/scripts/run_gvs_vps.sh
r2688 r2689 30 30 -scene_filename=$SCENE \ 31 31 -preprocessor=gvs \ 32 -preprocessor_use_vbos -\32 -preprocessor_use_vbos+ \ 33 33 -gvs_epsilon=0.0001 \ 34 34 -gvs_total_samples=1000000 \ 35 35 -gvs_samples_per_pass=1000000 \ 36 36 -gvs_initial_samples=16 \ 37 -gvs_max_viewcells= 20\38 -gvs_min_contribution= 50 \37 -gvs_max_viewcells=1 \ 38 -gvs_min_contribution=100 \ 39 39 -gvs_per_viewcell=true \ 40 40 -gvs_stats=$LOG_PREFIX-gvsStats.log \ -
GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp
r2687 r2689 122 122 mViewPoint = Vector3(440.295, 196.959, -781.302); 123 123 mViewDirection = Vector3(-0.0566328, 0, -0.998395); 124 125 mViewPoint = Vector3(680.682, 189.552, -278.177); 126 mViewDirection = Vector3(0.942709, -0, -0.333584); 124 127 } 125 128 … … 138 141 mUseGlLists = false; 139 142 140 bool mUseVbos;141 143 Environment::GetSingleton()->GetBoolValue("Preprocessor.useVbos", mUseVbos); 142 144 -
GTP/trunk/Lib/Vis/Preprocessing/src/GvsPreprocessor.cpp
r2687 r2689 951 951 AxisAlignedBox3 box = mCurrentViewCell->GetMesh()->mBox; 952 952 953 //vector<KdLeaf *> leaves;954 //mKdTree->GetBoxIntersections(box, leaves);955 956 953 ObjectContainer kdobjects; 957 954 mKdTree->CollectKdObjects(box, kdobjects); … … 964 961 KdIntersectable *kdInt = static_cast<KdIntersectable *>(*oit); 965 962 966 //mCurrentViewCell->GetPvs().AddSampleDirty(kdInt, 1.0f);967 963 mCurrentViewCell->GetPvs().AddSampleDirtyCheck(kdInt, 1.0f); 968 969 mViewCellsManager->UpdateStatsForViewCell(mCurrentViewCell, kdInt); 964 //if (SHOW_QT_VISUALIZATION) mViewCellsManager->UpdateStatsForViewCell(mCurrentViewCell, kdInt); 970 965 971 966 myobjects.clear(); … … 989 984 990 985 mTrianglePvs.push_back(triObj); 991 mGenericStats = mTrianglePvs.size();986 mGenericStats = (int)mTrianglePvs.size(); 992 987 } 993 988 } … … 1029 1024 { 1030 1025 TriangleIntersectable *triObj = static_cast<TriangleIntersectable *>(*oit); 1031 1032 1026 // the triangle itself intersects => add object 1033 1027 if (box.Intersects(triObj->GetItem())) -
GTP/trunk/Lib/Vis/Preprocessing/src/IntersectableWrapper.cpp
r2615 r2689 210 210 static_cast<TriangleIntersectable *>(leaf->mObjects[i]); 211 211 212 // check if already rendered212 // check if already accounted for 213 213 if (!obj->Mailed()) 214 214 { -
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2687 r2689 257 257 RenderScene(); 258 258 259 glFlush(); 260 259 261 query->EndQuery(); 260 262 glDisable(GL_STENCIL_TEST); … … 307 309 // render pvs once 308 310 RenderPvs(pvs); 311 312 glFlush(); 309 313 310 314 //mUseForcedColors = false; -
GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp
r2686 r2689 390 390 //rendererWidget->SetWindowTitle("Global Visualization"); 391 391 392 if ( 0&& !rendererWidget->GetUseVbos()) // viewer not working with vbo392 if (1 && !rendererWidget->GetUseVbos()) // viewer not working with vbo 393 393 { 394 394 cout << "starting the qt viewer" << endl;
Note: See TracChangeset
for help on using the changeset viewer.