- Timestamp:
- 01/21/08 20:38:41 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2620 r2621 423 423 RenderIntersectable(*dit); 424 424 #else 425 RenderDynamicObject(*dit);425 _RenderDynamicObject(*dit); 426 426 #endif 427 427 } … … 679 679 { 680 680 Matrix4x4 tm; 681 TransformedMeshInstance *tmi;682 #if USE_TRANSFORMED_MESH_INSTANCE_HACK683 681 684 682 switch (mTrafoType) … … 687 685 { 688 686 const Vector3 transl(diffx, 0, diffy); 689 tmi = mViewCellsManager->GetPreprocessor()->mDynamicObjects[mCurrentDynamicObjectIdx];687 690 688 tm = TranslationMatrix(transl); 691 689 } … … 696 694 if (scalef < 0.9) scalef = 0.9f; 697 695 else if (scalef > 1.1f) scalef = 1.1f; 698 tmi = mViewCellsManager->GetPreprocessor()->mDynamicObjects[mCurrentDynamicObjectIdx];699 696 tm = ScaleMatrix(scalef, scalef, scalef); 700 697 } … … 702 699 case 2: 703 700 { 704 tmi = mViewCellsManager->GetPreprocessor()->mDynamicObjects[mCurrentDynamicObjectIdx];705 701 tm = RotationXMatrix(diffx) * RotationYMatrix(diffy); 706 702 } … … 710 706 } 711 707 708 #if USE_TRANSFORMED_MESH_INSTANCE_HACK 709 TransformedMeshInstance *tmi = mViewCellsManager->GetPreprocessor()->mDynamicObjects[mCurrentDynamicObjectIdx]; 712 710 tmi->ApplyWorldTransform(tm); 711 #else 712 SceneGraphLeaf *l = mViewCellsManager->GetPreprocessor()->mDynamicObjects[mCurrentDynamicObjectIdx]; 713 l->ApplyTransform(tm); 713 714 #endif 714 715 updateGL(); … … 1457 1458 ComputeMaxValues(viewcells, maxPvs, maxPiercingRays, maxRelativeRays, maxRcCost); 1458 1459 // matt: temp hack 1459 //maxRcCost = 200.0f;1460 maxRcCost = 200.0f; 1460 1461 //cout << "maxRcCost: " << maxRcCost << endl; 1461 1462 int i; … … 2119 2120 vbox->layout()->addWidget(button); 2120 2121 connect(button, SIGNAL(clicked()), SIGNAL(StoreStatistics())); 2122 #endif 2123 2124 #if DYNAMIC_OBJECTS_HACK 2121 2125 2122 2126 button = new QPushButton("Load object", vbox); … … 2124 2128 connect(button, SIGNAL(clicked()), SIGNAL(LoadObject())); 2125 2129 #endif 2130 2126 2131 /*cb = new QCheckBox("Stats", vbox); 2127 2132 vbox->layout()->addWidget(cb);
Note: See TracChangeset
for help on using the changeset viewer.