Ignore:
Timestamp:
01/24/08 11:41:38 (16 years ago)
Author:
bittner
Message:

siggraph submission

File:
1 edited

Legend:

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

    r2636 r2638  
    600600        glStencilOp(GL_KEEP, GL_KEEP, GL_INCR);  
    601601 
    602         mUseForcedColors = true; 
    603  
    604         glColor3f(0.0f, 0.8f, 0.2f); 
     602        //mUseForcedColors = true; 
     603 
     604        //      glColor3f(0.0f, 0.8f, 0.2f); 
     605        //      glColor3f(0.5f, 0.5f, 0.5f); 
     606 
     607        glColor3f(0.6f, 0.6f, 0.6f); 
    605608 
    606609        // Render PVS 
     
    617620 
    618621        SetupCamera(); 
     622 
     623        mUseForcedColors = true; 
    619624 
    620625        glColor3f(1.0f, 0.0f, 0.0f); 
     
    705710                        case 0: 
    706711                                { 
     712                                  if (e->modifiers() & Qt::ShiftModifier) { 
     713                                        const Vector3 transl(0, diffy, 0); 
     714                                        tm = TranslationMatrix(transl); 
     715                                   
     716                                  } else { 
    707717                                        const Vector3 transl(diffx, 0, diffy); 
    708                                          
    709718                                        tm = TranslationMatrix(transl); 
     719                                  } 
    710720                                } 
    711721                                break; 
     
    720730                        case 2: 
    721731                                { 
    722                                         tm = RotationXMatrix(diffx) * RotationYMatrix(diffy); 
     732                                  //                                    tm = RotationXMatrix(diffx) * RotationYMatrix(diffy); 
     733                                  tm = RotationYMatrix(diffx); 
    723734                                } 
    724735                                break; 
     
    791802        RenderInfo(); 
    792803        mFrame ++; 
     804        //      cout<<"vp="<<mViewPoint<<" vd="<<mViewDirection<<endl; 
    793805} 
    794806 
     
    10941106void QtGlRendererWidget::LoadObject() 
    10951107{ 
    1096         string filename("../data/teapot.bn"); 
     1108  //    string filename("../data/teapot.bn"); 
     1109  // string filename("../data/teapot.bn"); 
     1110  string filename("../data/cube.obj"); 
    10971111         
    10981112        cout << "Loading model << " << filename << endl; 
     
    12541268        renderText(20, 40, s); 
    12551269#endif 
    1256          
     1270#if 0 
    12571271        QFont font40; font40.setPointSize(30); 
    12581272        s.sprintf("PVS: %04d", mPvsSize); 
    12591273        renderText(20, 40, s, font40); 
    1260  
     1274#endif 
     1275         
    12611276/*      QFont font40; font40.setPointSize(30); 
    12621277        s.sprintf("New triangles: %04d", 100); 
Note: See TracChangeset for help on using the changeset viewer.