- Timestamp:
- 05/27/08 23:40:54 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2720 r2721 247 247 248 248 // mat_specular and mat_shininess are NOT default values 249 GLfloat mat_ambient[] = {0.2f, 0.2f, 0.2f, 1.0f};249 /*GLfloat mat_ambient[] = {0.2f, 0.2f, 0.2f, 1.0f}; 250 250 GLfloat mat_diffuse[] = {1.0f, 1.0f, 1.0f, 1.0f}; 251 251 GLfloat mat_specular[] = {0.3f, 0.3f, 0.3f, 1.0f}; … … 256 256 glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular); 257 257 glMaterialfv(GL_FRONT, GL_SHININESS, mat_shininess); 258 */ 258 259 259 260 GLfloat light_ambient[] = {0.1, 0.1, 0.1, 1.0}; 260 //GLfloat light_diffuse[] = {0.6, 0.6, 0.6, 1.0}; 261 GLfloat light_diffuse[] = {0.5, 0.5, 0.5, 1.0}; 261 GLfloat light_diffuse[] = {0.6, 0.6, 0.6, 1.0}; 262 262 GLfloat light_specular[] = {1.0, 1.0, 1.0, 1.0}; 263 263 … … 266 266 267 267 // lights in arena 268 269 268 glEnable(GL_LIGHT0); 270 269 … … 273 272 glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse); 274 273 glLightfv(GL_LIGHT0, GL_SPECULAR, light_specular); 275 276 277 278 274 279 275 glColorMaterial(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE); … … 286 282 } 287 283 288 //glDisable(GL_ALPHA_TEST);284 glDisable(GL_ALPHA_TEST); 289 285 290 286 glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); … … 317 313 318 314 glEnable(GL_STENCIL_TEST); 315 316 // errors in red 319 317 glColor3f(1, 0, 0); 320 318 … … 342 340 pErrorPixels = (float)pixelCount / (GetWidth() * GetHeight()); 343 341 344 const int pixelThres = 0;342 const int pixelThres = -1; 345 343 346 344 // some error happened … … 355 353 //glReadBuffer(GL_FRONT); 356 354 355 cout << "here34" << endl; 357 356 ////////////// 358 357 //-- output error visualization
Note: See TracChangeset
for help on using the changeset viewer.