- Timestamp:
- 12/11/07 18:27:03 (17 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/scripts/run_demo_arena
r2564 r2567 11 11 12 12 #-rss_distributions=mutation+object_direction+spatial \ 13 13 14 $COMMAND -preprocessor=combined -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 14 -rss_distributions= direction\15 -rss_distributions=spatial \ 15 16 -view_cells_use_kd_pvs+ -af_use_kd_pvs+ \ 16 17 -preprocessor_visibility_file=$PREFIX-i-mixed-b1-n4a.xml \ -
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2566 r2567 1299 1299 importance = mTransferFunction * ((float)vc->GetNumPiercingRays() / relativeArea) / maxRelativeRays; 1300 1300 } 1301 else // pvs size1301 else if (mShowPvsSizes) // pvs size 1302 1302 { 1303 1303 //importance = 5.0f*mTransferFunction * ((float)vc->GetPvs().CountObjectsInPvs() / (float)maxPvs); 1304 1304 importance = mTransferFunction * 1305 1305 ((float)vc->GetPvs().GetSize() / (float)maxPvs); 1306 } 1306 } // weighted render cost 1307 /* else 1308 { 1309 ObjectPvs basePvs = viewCell->GetPvs(); 1310 ObjectPvsIterator pit = basePvs.GetIterator(); 1311 1312 // first mark all objects from this pvs 1313 while (pit.HasMoreEntries()) 1314 { 1315 if (pit.Next()->Mail(); 1316 } 1317 }*/ 1307 1318 1308 1319 // c = RgbColor(importance, 1.0f - importance, 0.0f); -
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlViewer.cpp
r2566 r2567 28 28 scale = 1.0f; 29 29 mWireframe = false; 30 mModelMatrix = IdentityMatrix(); 31 30 32 trackball(manipulatorLastQuat, 0.0f, 0.0f, 0.0f, 0.0f); 31 33 //connect(renderer, SIGNAL(PvsUpdated()), this, SLOT(updateGL())); … … 126 128 glTranslatef(t.x, t.y, t.z); 127 129 128 mDummyViewPoint = -t;130 /*mDummyViewPoint = -t; 129 131 mDummyViewPoint /= s; 130 132 131 133 //glGetFloatv(GL_MODELVIEW_MATRIX, m1); 132 134 */ 133 135 m.Invert(); 134 136 135 mDummyViewPoint = m * mDummyViewPoint; 137 mModelMatrix *= m; 138 mDummyViewPoint = mModelMatrix * Vector3(0, 0, 0); 139 140 //mDummyViewPoint 141 //cout << "view point: " << mDummyViewPoint << endl; 136 142 RenderScene(); 137 143 } -
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlViewer.h
r2566 r2567 4 4 #include <QtOpenGL> 5 5 #include "Vector3.h" 6 #include "Matrix4x4.h" 7 6 8 7 9 namespace GtpVisibilityPreprocessor … … 49 51 Vector3 mDummyViewPoint; 50 52 53 Matrix4x4 mModelMatrix; 54 51 55 private: 52 56
Note: See TracChangeset
for help on using the changeset viewer.