Ignore:
Timestamp:
12/18/07 17:40:35 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2570 r2571  
    303303        glEnable(GL_LIGHT1); 
    304304 
    305  
    306305        // set position of the light 
    307306        GLfloat infinite_light[] = {  1.0, 0.8, 1.0, 0.0  }; 
     
    313312 
    314313        glColorMaterial( GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE); 
    315         //   glColorMaterial( GL_FRONT_AND_BACK, GL_SPECULAR); 
     314        // glColorMaterial( GL_FRONT_AND_BACK, GL_SPECULAR); 
    316315        glEnable(GL_COLOR_MATERIAL); 
    317316 
    318         glShadeModel( GL_FLAT ); 
     317        glShadeModel(GL_FLAT); 
    319318} 
    320319 
     
    712711                        glColor3f(0.6f, 0.6f, 0.6f); 
    713712                        RenderPvs(); 
     713                } 
     714 
     715                if (1 && mShowRays)  
     716                { 
     717                        RenderRays(mViewCellsManager->mVizBuffer.GetRays()); 
    714718                } 
    715719        } 
     
    11511155        if (mViewCellsManager)  
    11521156        { 
     1157                const float f = number / 1000.0f; 
    11531158                AxisAlignedBox3 box = mViewCellsManager->GetViewSpaceBox(); 
    1154                 Vector3 p = box.Min() + (number/1000.0f)*box.Max(); 
     1159                Vector3 p = (1.0f - f) * box.Min() + f * box.Max(); 
    11551160                mSceneCutPlane.mNormal = Vector3(0,-1,0); 
    11561161                mSceneCutPlane.mD = -DotProd(mSceneCutPlane.mNormal, p); 
     
    12781283                ViewCell *vc = viewcells[i]; 
    12791284 
    1280                 if (mShowPvsSizes) // pv 
     1285                if (mShowPvsSizes) // pvs size 
    12811286                { 
    12821287                        //const int p = vc->GetPvs().CountObjectsInPvs(); 
     
    13361341        { 
    13371342                //glDisable(GL_CULL_FACE); 
    1338                 //glEnable(GL_CULL_FACE); 
    1339                 //glFrontFace(GL_CCW);   
    13401343                //glCullFace(GL_BACK); 
     1344 
    13411345                if (!mUseTransparency) 
    13421346                { 
     
    13461350                else 
    13471351                { 
    1348                         //glCullFace(GL_BACK); 
    1349                         //cout << "here29 " << mTransparency << endl; 
    13501352                        glDisable(GL_DEPTH_TEST); 
    13511353                        glEnable(GL_BLEND); 
     
    14101412                glEnable(GL_DEPTH_TEST);         
    14111413        } 
     1414         
     1415        glEnable(GL_CULL_FACE); 
     1416        glDisable(GL_CULL_FACE); 
     1417 
     1418        glDisable(GL_CLIP_PLANE0); 
    14121419 
    14131420        mUseFalseColors = false; 
Note: See TracChangeset for help on using the changeset viewer.