Changeset 2716 for GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface
- Timestamp:
- 05/27/08 11:12:02 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2715 r2716 246 246 247 247 // mat_specular and mat_shininess are NOT default values 248 GLfloat mat_ambient[] = {0.5f, 0.5f, 0.5f, 1.0f};249 GLfloat mat_diffuse[] = {1.0f, 1.0f, 1.0f, 1.0f};250 GLfloat mat_specular[] = {0.3f, 0.3f, 0.3f, 1.0f};251 GLfloat mat_shininess[] = {1.0f};252 253 glMaterialfv(GL_FRONT, GL_AMBIENT, mat_ambient);254 glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse);255 glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);256 glMaterialfv(GL_FRONT, GL_SHININESS, mat_shininess);248 GLfloat mat_ambient[] = {0.5f, 0.5f, 0.5f, 1.0f}; 249 GLfloat mat_diffuse[] = {1.0f, 1.0f, 1.0f, 1.0f}; 250 GLfloat mat_specular[] = {0.3f, 0.3f, 0.3f, 1.0f}; 251 GLfloat mat_shininess[] = {1.0f}; 252 253 glMaterialfv(GL_FRONT, GL_AMBIENT, mat_ambient); 254 glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse); 255 glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular); 256 glMaterialfv(GL_FRONT, GL_SHININESS, mat_shininess); 257 257 258 258 GLfloat light_ambient[] = {0.3, 0.3, 0.3, 1.0}; … … 288 288 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); 289 289 290 glColor3f(0.6f, 0.6f, 0.6f);291 //glColor3f(0, 1, 0);290 //glColor3f(0.6f, 0.6f, 0.6f); 291 glColor3f(0, 1, 0); 292 292 293 293 glDepthFunc(GL_LESS); … … 342 342 343 343 // some error happened 344 if ( 1) //pixelCount > pixelThres)344 if (pixelCount > pixelThres) 345 345 { 346 346 cout << "f " << mFrame << " id " << viewcell->GetId() << " pvs " << pvsSize 347 347 << " e " << pixelCount << " vp " << mViewPoint << " vd " << mViewDirection << endl; 348 348 349 format().setSampleBuffers(true);350 cout << "here3 " << format().sampleBuffers() << endl;351 349 if (mSnapErrorFrames) 352 350 { … … 358 356 359 357 char filename[256]; 360 sprintf(filename, "error-frame-%04d-%05d.bmp", pass, mFrame);358 //sprintf(filename, "error-frame-%04d-%05d.bmp", pass, mFrame); 361 359 //sprintf(filename, "error-frame-%05d-%0.5f.png", mFrame, pErrorPixels); 362 //sprintf_s(filename, "error-frame-%05d-%04d-%08d.png", mFrame, viewcell->GetId(), pixelCount);360 sprintf_s(filename, "error-frame-%05d-%04d-%08d.png", mFrame, viewcell->GetId(), pixelCount); 363 361 364 362 QImage im = toImage(); … … 366 364 QString qstr(str.c_str()); 367 365 368 //im.save(qstr, "PNG"); 369 // use bmp for lossless storage (for video) 370 im.save(qstr, "BMP"); 366 im.save(qstr, "PNG"); 371 367 372 368 if (0)
Note: See TracChangeset
for help on using the changeset viewer.