Changeset 2682 for GTP


Ignore:
Timestamp:
05/16/08 10:04:19 (17 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/Preprocessing
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/gvs.env

    r2677 r2682  
    3535        loadMeshes false 
    3636 
    37         # internal: 0 intel: 1 
    38         rayCastMethod 1 
     37        # internal: 0 intel: 1 2: havran 3: havran dyn 
     38        rayCastMethod 2 
    3939 
    4040        exportVisibility false 
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/run_demo_vienna

    r2677 r2682  
    88 
    99 
    10 #SCENE=../data/vienna/vienna_cropped.obj 
    11 SCENE=../data/vienna/city_full.obj 
     10SCENE=../data/vienna/vienna_cropped.obj 
     11#SCENE=../data/vienna/city_full.obj 
    1212 
    1313VIEWCELLS=../data/vienna/vienna_cropped-seq-3000-false-20-viewcells.xml.gz 
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/run_gvs_vienna.sh

    r2677 r2682  
    1313echo "starting $TARGET version" 
    1414 
    15 #SCENE=../data/vienna/vienna_cropped.obj 
    16 SCENE=../data/vienna/city_full.obj 
     15SCENE=../data/vienna/vienna_cropped.obj 
     16#SCENE=../data/vienna/city_full.obj 
    1717 
    1818#VIEWCELLS=../data/vienna/vienna_cropped-57000-viewcells.xml.gz 
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/run_gvs_vps.sh

    r2679 r2682  
    1111echo "starting $TARGET version" 
    1212 
    13 #SCENE=../data/vienna/vienna_cropped.obj 
    14 SCENE=../data/vienna/city_full.obj 
     13SCENE=../data/vienna/vienna_cropped.obj 
     14#SCENE=../data/vienna/city_full.obj 
    1515 
    1616VIEWCELLS=../data/vienna/vienna_cropped-gradient-viewcells.xml.gz  
  • GTP/trunk/Lib/Vis/Preprocessing/src/HavranDynRayCaster.cpp

    r2655 r2682  
    664664#ifdef USE_HAVRAN_RAYCASTER 
    665665 
    666   int hit_triangles[16]; 
    667   float dist[16]; 
     666  //int hit_triangles[16]; 
     667  //float dist[16]; 
    668668  Vector3 normals[16]; 
    669669  Vector3 min = sbox.Min(); 
    670670  Vector3 max = sbox.Max(); 
    671671   
    672   int packets = rays.size() / 16; 
    673    
    674   int i, j, k = 0; 
     672  int packets = (int)rays.size() / 16; 
     673   
     674  int i, k = 0; 
    675675  Vector3 dir; 
    676676   
     
    724724  int k2 = k; 
    725725  for (; k < rays.size(); k++, i++) { 
    726     double normal[3]; 
     726    //double normal[3]; 
    727727    // Intersect with the static scene 
    728728    bool result = mKtbtree->FindNearestI(rays[k]); 
     
    774774                               const bool pruneInvalidRays ) 
    775775{ 
    776   int buckets = rays.size()/16; 
     776  int buckets = (int)rays.size()/16; 
    777777  int offset = 0; 
    778778 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp

    r2680 r2682  
    16581658bool Preprocessor::LoadDynamicGeometry(const string &filename) 
    16591659{ 
     1660#if DYNAMIC_OBJECTS_HACK 
     1661 
    16601662        const bool dynamic = true; 
    1661 #if DYNAMIC_OBJECTS_HACK 
    1662 #if USE_TRANSFORMED_MESH_INSTANCE_HACK 
    1663  
    1664         Mesh *mesh = LoadBinaryObjIntoMesh(filename); 
    1665      
    1666         if (mesh) 
    1667         { 
    1668                 SceneGraphLeaf *leaf = new SceneGraphLeaf(dynamic); 
    1669  
    1670                 TransformedMeshInstance *tmi = new TransformedMeshInstance(mesh); 
    1671                 leaf->mGeometry.push_back(tmi); 
    1672  
    1673                 mSceneGraph->GetRoot()->mChildren.push_back(leaf); 
    1674  
    1675                 mDynamicObjects.push_back(tmi); 
    1676                  
    1677                 return true; 
    1678         } 
    1679 #else 
    1680  
    16811663        SceneGraphLeaf *leaf = new SceneGraphLeaf(dynamic); 
     1664 
    16821665        bool parsed = false; 
    16831666 
     
    17261709        } 
    17271710 
    1728 #endif 
     1711 
    17291712#endif 
    17301713        return false; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp

    r2679 r2682  
    568568{ 
    569569        EnableDrawArrays(); 
    570         if (mUseVbos) 
     570 
     571        if (0) //mUseVbos) 
    571572                glBindBufferARB(GL_ARRAY_BUFFER_ARB, mVboId); 
    572573 
     
    580581        glDrawElements(GL_TRIANGLES, mIndexBufferSize, GL_UNSIGNED_INT, mIndices); 
    581582 
    582 #if DYNAMIC_OBJECTS_HACK 
     583#if 0// DYNAMIC_OBJECTS_HACK 
    583584        // handle dynamic objects 
    584585        DynamicObjectsContainer::const_iterator dit, dit_end = mDynamicObjects.end(); 
  • GTP/trunk/Lib/Vis/Preprocessing/src/havran/testrt.cpp

    r2656 r2682  
    11701170        float ox, oy, oz, dx, dy, dz; 
    11711171        int hitA; float hitAT; 
    1172         int hitB; float hitBT;   
     1172        //int hitB; float hitBT;         
    11731173        if (fscanf(fp, "%d %f %f %f %f %f %f %d %f\n", 
    11741174                   &order, &ox, &oy, &oz, &dx, &dy, &dz, 
Note: See TracChangeset for help on using the changeset viewer.