Changeset 2682 for GTP/trunk/Lib/Vis
- Timestamp:
- 05/16/08 10:04:19 (17 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/scripts/gvs.env
r2677 r2682 35 35 loadMeshes false 36 36 37 # internal: 0 intel: 1 38 rayCastMethod 137 # internal: 0 intel: 1 2: havran 3: havran dyn 38 rayCastMethod 2 39 39 40 40 exportVisibility false -
GTP/trunk/Lib/Vis/Preprocessing/scripts/run_demo_vienna
r2677 r2682 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-seq-3000-false-20-viewcells.xml.gz -
GTP/trunk/Lib/Vis/Preprocessing/scripts/run_gvs_vienna.sh
r2677 r2682 13 13 echo "starting $TARGET version" 14 14 15 #SCENE=../data/vienna/vienna_cropped.obj16 SCENE=../data/vienna/city_full.obj15 SCENE=../data/vienna/vienna_cropped.obj 16 #SCENE=../data/vienna/city_full.obj 17 17 18 18 #VIEWCELLS=../data/vienna/vienna_cropped-57000-viewcells.xml.gz -
GTP/trunk/Lib/Vis/Preprocessing/scripts/run_gvs_vps.sh
r2679 r2682 11 11 echo "starting $TARGET version" 12 12 13 #SCENE=../data/vienna/vienna_cropped.obj14 SCENE=../data/vienna/city_full.obj13 SCENE=../data/vienna/vienna_cropped.obj 14 #SCENE=../data/vienna/city_full.obj 15 15 16 16 VIEWCELLS=../data/vienna/vienna_cropped-gradient-viewcells.xml.gz -
GTP/trunk/Lib/Vis/Preprocessing/src/HavranDynRayCaster.cpp
r2655 r2682 664 664 #ifdef USE_HAVRAN_RAYCASTER 665 665 666 int hit_triangles[16];667 float dist[16];666 //int hit_triangles[16]; 667 //float dist[16]; 668 668 Vector3 normals[16]; 669 669 Vector3 min = sbox.Min(); 670 670 Vector3 max = sbox.Max(); 671 671 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; 675 675 Vector3 dir; 676 676 … … 724 724 int k2 = k; 725 725 for (; k < rays.size(); k++, i++) { 726 double normal[3];726 //double normal[3]; 727 727 // Intersect with the static scene 728 728 bool result = mKtbtree->FindNearestI(rays[k]); … … 774 774 const bool pruneInvalidRays ) 775 775 { 776 int buckets = rays.size()/16;776 int buckets = (int)rays.size()/16; 777 777 int offset = 0; 778 778 -
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r2680 r2682 1658 1658 bool Preprocessor::LoadDynamicGeometry(const string &filename) 1659 1659 { 1660 #if DYNAMIC_OBJECTS_HACK 1661 1660 1662 const bool dynamic = true; 1661 #if DYNAMIC_OBJECTS_HACK1662 #if USE_TRANSFORMED_MESH_INSTANCE_HACK1663 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 #else1680 1681 1663 SceneGraphLeaf *leaf = new SceneGraphLeaf(dynamic); 1664 1682 1665 bool parsed = false; 1683 1666 … … 1726 1709 } 1727 1710 1728 #endif 1711 1729 1712 #endif 1730 1713 return false; -
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2679 r2682 568 568 { 569 569 EnableDrawArrays(); 570 if (mUseVbos) 570 571 if (0) //mUseVbos) 571 572 glBindBufferARB(GL_ARRAY_BUFFER_ARB, mVboId); 572 573 … … 580 581 glDrawElements(GL_TRIANGLES, mIndexBufferSize, GL_UNSIGNED_INT, mIndices); 581 582 582 #if DYNAMIC_OBJECTS_HACK583 #if 0// DYNAMIC_OBJECTS_HACK 583 584 // handle dynamic objects 584 585 DynamicObjectsContainer::const_iterator dit, dit_end = mDynamicObjects.end(); -
GTP/trunk/Lib/Vis/Preprocessing/src/havran/testrt.cpp
r2656 r2682 1170 1170 float ox, oy, oz, dx, dy, dz; 1171 1171 int hitA; float hitAT; 1172 int hitB; float hitBT;1172 //int hitB; float hitBT; 1173 1173 if (fscanf(fp, "%d %f %f %f %f %f %f %d %f\n", 1174 1174 &order, &ox, &oy, &oz, &dx, &dy, &dz,
Note: See TracChangeset
for help on using the changeset viewer.