Ignore:
Timestamp:
12/11/07 18:27:03 (17 years ago)
Author:
mattausch
Message:

worked on visualization

Location:
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp

    r2566 r2567  
    12991299                                importance = mTransferFunction * ((float)vc->GetNumPiercingRays() / relativeArea) / maxRelativeRays; 
    13001300                        } 
    1301                         else // pvs size 
     1301                        else if (mShowPvsSizes) // pvs size 
    13021302                        { 
    13031303                                //importance = 5.0f*mTransferFunction * ((float)vc->GetPvs().CountObjectsInPvs() / (float)maxPvs); 
    13041304                                importance = mTransferFunction * 
    13051305                                        ((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                        }*/ 
    13071318 
    13081319                        // c = RgbColor(importance, 1.0f - importance, 0.0f); 
  • GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlViewer.cpp

    r2566 r2567  
    2828        scale = 1.0f; 
    2929        mWireframe = false; 
     30        mModelMatrix = IdentityMatrix(); 
     31 
    3032        trackball(manipulatorLastQuat, 0.0f, 0.0f, 0.0f, 0.0f); 
    3133        //connect(renderer, SIGNAL(PvsUpdated()), this, SLOT(updateGL())); 
     
    126128        glTranslatef(t.x, t.y, t.z); 
    127129 
    128         mDummyViewPoint = -t; 
     130        /*mDummyViewPoint = -t; 
    129131        mDummyViewPoint /= s; 
    130132 
    131133        //glGetFloatv(GL_MODELVIEW_MATRIX, m1); 
    132  
     134*/ 
    133135        m.Invert(); 
    134136 
    135         mDummyViewPoint = m * mDummyViewPoint; 
     137        mModelMatrix *= m; 
     138        mDummyViewPoint = mModelMatrix * Vector3(0, 0, 0); 
     139 
     140        //mDummyViewPoint  
     141        //cout << "view point: " << mDummyViewPoint << endl; 
    136142        RenderScene(); 
    137143} 
  • GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlViewer.h

    r2566 r2567  
    44#include <QtOpenGL> 
    55#include "Vector3.h" 
     6#include "Matrix4x4.h" 
     7 
    68 
    79namespace GtpVisibilityPreprocessor  
     
    4951        Vector3 mDummyViewPoint; 
    5052 
     53        Matrix4x4 mModelMatrix; 
     54 
    5155private: 
    5256 
Note: See TracChangeset for help on using the changeset viewer.