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

Legend:

Unmodified
Added
Removed
  • 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.