Ignore:
Timestamp:
08/25/08 17:34:34 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp

    r2864 r2865  
    124124bool showHelp = false; 
    125125bool showStatistics = false; 
    126 bool showOptions = false; 
     126bool showOptions = true; 
    127127bool showBoundingVolumes = false; 
    128128bool visMode = false; 
     
    164164 
    165165bool useFullScreen = false; 
     166 
     167bool useLODs = true; 
     168 
    166169 
    167170static Matrix4x4 matProjectionView = IdentityMatrix(); 
     
    291294                env.GetVectorParam(string("camDirection"), camDir); 
    292295 
     296                env.GetBoolParam(string("useLODs"), useLODs); 
     297 
    293298                //env.GetStringParam(string("modelPath"), model_path); 
    294299                //env.GetIntParam(string("numSssaoSamples"), numSsaoSamples); 
    295300 
     301                cout << "*********** parameters ***************" << endl; 
    296302                cout << "assumedVisibleFrames: " << assumedVisibleFrames << endl;  
    297303                cout << "maxBatchSize: " << maxBatchSize << endl; 
     
    303309                cout << "winHeight: " << winHeight << endl; 
    304310                cout << "useFullScreen: " << useFullScreen << endl; 
     311                cout << "useLODs: " << useLODs << endl; 
    305312                cout << "camPosition: " << camPos << endl; 
    306313                cout << "expFactor: " << ssaoExpFactor << endl; 
     
    527534        fbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST, false, false); 
    528535        // 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); 
    530538 
    531539        PrintGLerror("fbo"); 
     
    10671075                if (ssaoExpFactor > 1.0f) ssaoExpFactor = 1.0f; 
    10681076                break; 
     1077        case '9': 
     1078                useLODs = !useLODs; 
     1079                SceneEntity::SetUseLODs(useLODs); 
     1080                break; 
    10691081        case 'o': 
    10701082        case 'O': 
Note: See TracChangeset for help on using the changeset viewer.