- Timestamp:
- 12/18/07 17:40:35 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2570 r2571 303 303 glEnable(GL_LIGHT1); 304 304 305 306 305 // set position of the light 307 306 GLfloat infinite_light[] = { 1.0, 0.8, 1.0, 0.0 }; … … 313 312 314 313 glColorMaterial( GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE); 315 // 314 // glColorMaterial( GL_FRONT_AND_BACK, GL_SPECULAR); 316 315 glEnable(GL_COLOR_MATERIAL); 317 316 318 glShadeModel( GL_FLAT);317 glShadeModel(GL_FLAT); 319 318 } 320 319 … … 712 711 glColor3f(0.6f, 0.6f, 0.6f); 713 712 RenderPvs(); 713 } 714 715 if (1 && mShowRays) 716 { 717 RenderRays(mViewCellsManager->mVizBuffer.GetRays()); 714 718 } 715 719 } … … 1151 1155 if (mViewCellsManager) 1152 1156 { 1157 const float f = number / 1000.0f; 1153 1158 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(); 1155 1160 mSceneCutPlane.mNormal = Vector3(0,-1,0); 1156 1161 mSceneCutPlane.mD = -DotProd(mSceneCutPlane.mNormal, p); … … 1278 1283 ViewCell *vc = viewcells[i]; 1279 1284 1280 if (mShowPvsSizes) // pv 1285 if (mShowPvsSizes) // pvs size 1281 1286 { 1282 1287 //const int p = vc->GetPvs().CountObjectsInPvs(); … … 1336 1341 { 1337 1342 //glDisable(GL_CULL_FACE); 1338 //glEnable(GL_CULL_FACE);1339 //glFrontFace(GL_CCW);1340 1343 //glCullFace(GL_BACK); 1344 1341 1345 if (!mUseTransparency) 1342 1346 { … … 1346 1350 else 1347 1351 { 1348 //glCullFace(GL_BACK);1349 //cout << "here29 " << mTransparency << endl;1350 1352 glDisable(GL_DEPTH_TEST); 1351 1353 glEnable(GL_BLEND); … … 1410 1412 glEnable(GL_DEPTH_TEST); 1411 1413 } 1414 1415 glEnable(GL_CULL_FACE); 1416 glDisable(GL_CULL_FACE); 1417 1418 glDisable(GL_CLIP_PLANE0); 1412 1419 1413 1420 mUseFalseColors = false;
Note: See TracChangeset
for help on using the changeset viewer.