Changeset 2721 for GTP/trunk/Lib/Vis/Preprocessing
- Timestamp:
- 05/27/08 23:40:54 (17 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/scripts/run_gvs_vps.sh
r2720 r2721 11 11 echo "starting $TARGET version" 12 12 13 #SCENE=../data/Arena/arena-high-lods.obj 14 #VIEWCELLS=../data/Arena/arena-high-lods-5000-viewcells.xml.gz 13 SCENE=../data/Arena/arena-high-lods.obj 14 SCENE=../data/Arena/arena_trees.obj 15 VIEWCELLS=../data/Arena/arena-high-lods-5000-viewcells.xml.gz 15 16 #SCENE=../data/vienna/vienna_cropped.obj 16 17 #SCENE=../data/roofs_new.obj 17 SCENE=../data/vienna/city_full_hp.obj18 #SCENE=../data/vienna/city_full_hp.obj 18 19 #SCENE=../data/vienna/vienna_rep.obj 19 20 20 21 #SCENE=../data/vienna/vienna_cropped.obj 21 VIEWCELLS=../data/vienna/vienna_cropped-gradient-viewcells.xml.gz 22 VIEWPOINTS=../data/vienna/testwalk.vp 22 #VIEWCELLS=../data/vienna/vienna_cropped-gradient-viewcells.xml.gz 23 #VIEWPOINTS=../data/vienna/testwalk.vp 24 VIEWPOINTS=../data/arena/arena_key.vp 23 25 24 26 #LOG_PREFIX=../src/SG08/rebut-arena-pixel2 25 27 #LOG_PREFIX=../src/SG08/full 26 LOG_PREFIX=../src/SG08/ city_full28 LOG_PREFIX=../src/SG08/arena_trees 27 29 28 30 ENVIRONMENT=gvs.env … … 41 43 -gvs_samples_per_pass=1000000 \ 42 44 -gvs_initial_samples=16 \ 43 -gvs_max_viewcells= 5000 \44 -gvs_min_contribution= 2000 \45 -gvs_max_viewcells=20000 \ 46 -gvs_min_contribution=4000 \ 45 47 -gvs_per_viewcell=true \ 46 48 -preprocessor_detect_empty_viewspace+ \ -
GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp
r2719 r2721 148 148 mDetectEmptyViewSpace); 149 149 150 mSnapErrorFrames = false;151 //mSnapErrorFrames = true;150 //mSnapErrorFrames = false; 151 mSnapErrorFrames = true; 152 152 153 153 mSnapPrefix = "snap/"; -
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2720 r2721 247 247 248 248 // mat_specular and mat_shininess are NOT default values 249 GLfloat mat_ambient[] = {0.2f, 0.2f, 0.2f, 1.0f};249 /*GLfloat mat_ambient[] = {0.2f, 0.2f, 0.2f, 1.0f}; 250 250 GLfloat mat_diffuse[] = {1.0f, 1.0f, 1.0f, 1.0f}; 251 251 GLfloat mat_specular[] = {0.3f, 0.3f, 0.3f, 1.0f}; … … 256 256 glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular); 257 257 glMaterialfv(GL_FRONT, GL_SHININESS, mat_shininess); 258 */ 258 259 259 260 GLfloat light_ambient[] = {0.1, 0.1, 0.1, 1.0}; 260 //GLfloat light_diffuse[] = {0.6, 0.6, 0.6, 1.0}; 261 GLfloat light_diffuse[] = {0.5, 0.5, 0.5, 1.0}; 261 GLfloat light_diffuse[] = {0.6, 0.6, 0.6, 1.0}; 262 262 GLfloat light_specular[] = {1.0, 1.0, 1.0, 1.0}; 263 263 … … 266 266 267 267 // lights in arena 268 269 268 glEnable(GL_LIGHT0); 270 269 … … 273 272 glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse); 274 273 glLightfv(GL_LIGHT0, GL_SPECULAR, light_specular); 275 276 277 278 274 279 275 glColorMaterial(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE); … … 286 282 } 287 283 288 //glDisable(GL_ALPHA_TEST);284 glDisable(GL_ALPHA_TEST); 289 285 290 286 glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); … … 317 313 318 314 glEnable(GL_STENCIL_TEST); 315 316 // errors in red 319 317 glColor3f(1, 0, 0); 320 318 … … 342 340 pErrorPixels = (float)pixelCount / (GetWidth() * GetHeight()); 343 341 344 const int pixelThres = 0;342 const int pixelThres = -1; 345 343 346 344 // some error happened … … 355 353 //glReadBuffer(GL_FRONT); 356 354 355 cout << "here34" << endl; 357 356 ////////////// 358 357 //-- output error visualization -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsParser.cpp
r2695 r2721 639 639 640 640 // hack for submission: enlarge by some margin 641 mViewSpaceBox.SetMax(1, mViewSpaceBox.Max().y + 40.0f); 641 if (0) 642 { 643 const float VIEWSPACE_OFFSET = 40.0f; 644 mViewSpaceBox.SetMax(1, mViewSpaceBox.Max().y + VIEWSPACE_OFFSET); 645 } 646 642 647 // create the hierarchy based on this information 643 648 CreateViewSpaceHierarchy();
Note: See TracChangeset
for help on using the changeset viewer.