Changeset 2865 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
- Timestamp:
- 08/25/08 17:34:34 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r2864 r2865 124 124 bool showHelp = false; 125 125 bool showStatistics = false; 126 bool showOptions = false;126 bool showOptions = true; 127 127 bool showBoundingVolumes = false; 128 128 bool visMode = false; … … 164 164 165 165 bool useFullScreen = false; 166 167 bool useLODs = true; 168 166 169 167 170 static Matrix4x4 matProjectionView = IdentityMatrix(); … … 291 294 env.GetVectorParam(string("camDirection"), camDir); 292 295 296 env.GetBoolParam(string("useLODs"), useLODs); 297 293 298 //env.GetStringParam(string("modelPath"), model_path); 294 299 //env.GetIntParam(string("numSssaoSamples"), numSsaoSamples); 295 300 301 cout << "*********** parameters ***************" << endl; 296 302 cout << "assumedVisibleFrames: " << assumedVisibleFrames << endl; 297 303 cout << "maxBatchSize: " << maxBatchSize << endl; … … 303 309 cout << "winHeight: " << winHeight << endl; 304 310 cout << "useFullScreen: " << useFullScreen << endl; 311 cout << "useLODs: " << useLODs << endl; 305 312 cout << "camPosition: " << camPos << endl; 306 313 cout << "expFactor: " << ssaoExpFactor << endl; … … 527 534 fbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST, false, false); 528 535 // the normals buffer 529 fbo->AddColorBuffer(ColorBufferObject::BUFFER_UBYTE, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST, false, false); 536 //fbo->AddColorBuffer(ColorBufferObject::BUFFER_UBYTE, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST, false, false); 537 fbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST, false, false); 530 538 531 539 PrintGLerror("fbo"); … … 1067 1075 if (ssaoExpFactor > 1.0f) ssaoExpFactor = 1.0f; 1068 1076 break; 1077 case '9': 1078 useLODs = !useLODs; 1079 SceneEntity::SetUseLODs(useLODs); 1080 break; 1069 1081 case 'o': 1070 1082 case 'O':
Note: See TracChangeset
for help on using the changeset viewer.