Ignore:
Timestamp:
05/24/08 15:48:02 (17 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/Preprocessing
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/run_demo_vienna

    r2704 r2706  
    1010#SCENE=../data/vienna/vienna_cropped.obj 
    1111#SCENE=../data/vienna/city_full.obj 
    12 SCENE=../data/vienna/city_full_hp.obj 
    13 #SCENE=../data/vienna/vienna_rep.obj 
     12#SCENE=../data/vienna/city_full_hp.obj 
     13SCENE=../data/vienna/vienna_rep.obj 
    1414 
    1515VIEWCELLS=../data/vienna/vienna_cropped-gradient-viewcells.xml.gz 
     
    4040-preprocessor_detect_empty_viewspace+ \ 
    4141-preprocessor_use_vbos- \ 
    42 -preprocessor_histogram_file=$PREFIX-i-mixed-b1-n4a.hlog \ 
     42-preprocessor_ray_cast_method=3 \ 
    4343-view_cells_random_viewpoint_list=$VIEWPOINTS \ 
    4444demo1.env 
  • GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp

    r2702 r2706  
    544544                glVertex3f(t->mVertices[1].x, t->mVertices[1].y, t->mVertices[1].z); 
    545545                glVertex3f(t->mVertices[2].x, t->mVertices[2].y, t->mVertices[2].z); 
    546  
    547546        } 
    548547 
     
    591590 
    592591        Preprocessor *p = mViewCellsManager->GetPreprocessor(); 
     592 
    593593        // handle dynamic objects 
    594594        DynamicObjectsContainer::const_iterator dit, dit_end = p->mDynamicObjects.end(); 
  • GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp

    r2705 r2706  
    556556        glDrawElements(GL_TRIANGLES, mIndexBufferSize, GL_UNSIGNED_INT, mIndices); 
    557557 
    558         // handle dynamic objects 
     558        // handle dynamic objects in pvss 
    559559        DynamicObjectsContainer::const_iterator dit, dit_end = mDynamicPvsObjects.end(); 
    560560 
     
    564564        } 
    565565 
    566         // handle dynamic objects 
     566        // show placed dynamic objects as wireframe 
    567567        Preprocessor *p = mViewCellsManager->GetPreprocessor(); 
    568568        dit, dit_end = p->mDynamicObjects.end(); 
     
    570570        for (dit = p->mDynamicObjects.begin(); dit != dit_end; ++ dit) 
    571571        { 
     572                glColor3f(0, 1, 0); 
     573                glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); 
    572574                _RenderDynamicObject(*dit); 
     575                glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); 
    573576        } 
    574577 
     
    27122715        glPopMatrix(); 
    27132716 
    2714         //updateGL(); 
    2715  
    27162717        int hits; 
    27172718        // finally release the rendering context again  
  • GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp

    r2699 r2706  
    6161static string GetViewPointsListName(const string &filename) 
    6262{ 
    63         string viewCellPointsFile; 
    64  
    6563        char buff[200]; 
    6664        Environment::GetSingleton()->GetStringValue("ViewCells.randomViewPointsList", buff); 
    67  
    68         string vpList(buff); 
    69  
    70         if (vpList == "") 
     65        string viewCellPointsFile = buff; 
     66 
     67        if (viewCellPointsFile == "") 
    7168        { 
    7269                // if not specified, take file that has same prefix as scene file 
     
    7875                        viewCellPointsFile = ReplaceSuffix(filename, ".x3d", ".vc"); 
    7976        } 
    80         else 
    81         { 
    82                 viewCellPointsFile = vpList; 
    83         } 
    8477 
    8578        return viewCellPointsFile; 
     
    234227 
    235228         
    236          
    237229        // export objects as obj 
    238230        if (preprocessor->mExportObj) 
     
    245237                else 
    246238                { 
    247  
    248239                        const string objname = GetInternFilename(filename, ".obj"); 
    249240 
     
    281272                        cout << "successfully loaded " << viewCellPointsFile << endl; 
    282273                else 
    283                         cerr << "error: file << " << viewCellPointsFile << " not found" << endl; 
     274                        cerr << "error: file " << viewCellPointsFile << " not found" << endl; 
    284275        } 
    285276 
Note: See TracChangeset for help on using the changeset viewer.