Changeset 2867 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
- Timestamp:
- 08/26/08 13:30:31 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r2866 r2867 303 303 //env.GetIntParam(string("numSssaoSamples"), numSsaoSamples); 304 304 305 305 306 cout << "*********** parameters ***************" << endl; 307 306 308 cout << "assumedVisibleFrames: " << assumedVisibleFrames << endl; 307 309 cout << "maxBatchSize: " << maxBatchSize << endl; … … 338 340 glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH | GLUT_MULTISAMPLE); 339 341 //glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH); 340 341 342 //glutInitDisplayString("samples=2"); 343 344 SceneEntity::SetUseLODs(useLODs); 345 342 346 343 347 if (!useFullScreen) … … 531 535 // this fbo basicly stores the scene information we get from standard rendering of a frame 532 536 // we store colors, normals, positions (for the ssao) 533 fbo = new FrameBufferObject(texWidth, texHeight, FrameBufferObject::DEPTH_ 24);537 fbo = new FrameBufferObject(texWidth, texHeight, FrameBufferObject::DEPTH_32); 534 538 535 539 // the diffuse color buffer 536 fbo->AddColorBuffer( texWidth, texHeight, ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR, false, false);540 fbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST, false); 537 541 // the positions buffer 538 fbo->AddColorBuffer(512, 512, ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST, false, false); 542 fbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_MIPMAP_LINEAR, true); 543 //fbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST, true); 539 544 // the normals buffer 540 //fbo->AddColorBuffer(ColorBufferObject::BUFFER_UBYTE, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST, false , false);541 fbo->AddColorBuffer( texWidth, texHeight, ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST, false, false);545 //fbo->AddColorBuffer(ColorBufferObject::BUFFER_UBYTE, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST, false); 546 fbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_16, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST, false); 542 547 543 548 PrintGLerror("fbo"); … … 1035 1040 break; 1036 1041 case '+': 1037 maxBatchSize += 10; 1042 if (maxBatchSize < 10) 1043 maxBatchSize = 10; 1044 else 1045 maxBatchSize += 10; 1046 1038 1047 traverser->SetMaxBatchSize(maxBatchSize); 1039 1048 break;
Note: See TracChangeset
for help on using the changeset viewer.