Ignore:
Timestamp:
01/21/07 23:05:34 (17 years ago)
Author:
bittner
Message:

ray sort update

File:
1 edited

Legend:

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

    r2002 r2008  
    120120   
    121121  SetupCamera(); 
    122   glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 
     122  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); 
    123123  glColorMask(GL_FALSE, GL_TRUE, GL_FALSE, GL_FALSE); 
    124    
     124 
     125 
     126  glStencilFunc(GL_EQUAL, 0x0, 0x1); 
     127  glStencilOp(GL_KEEP, GL_KEEP, GL_INCR);  
    125128   
    126129  //    // Render PVS 
     
    137140  //    glColorMask(GL_TRUE, GL_FALSE, GL_FALSE, GL_FALSE); 
    138141  glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); 
     142  glEnable(GL_STENCIL_TEST);  
    139143   
    140144  mUseFalseColors = true; 
     
    142146  OcclusionQuery *query = mOcclusionQueries[0]; 
    143147 
     148   
    144149  query->BeginQuery(); 
    145150   
     
    149154   
    150155  query->EndQuery(); 
    151    
     156  glDisable(GL_STENCIL_TEST);  
    152157  // reenable other state 
    153158  //  int wait=0; 
Note: See TracChangeset for help on using the changeset viewer.