Ignore:
Timestamp:
08/26/08 13:30:31 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2866 r2867  
    303303                //env.GetIntParam(string("numSssaoSamples"), numSsaoSamples); 
    304304 
     305 
    305306                cout << "*********** parameters ***************" << endl; 
     307 
    306308                cout << "assumedVisibleFrames: " << assumedVisibleFrames << endl;  
    307309                cout << "maxBatchSize: " << maxBatchSize << endl; 
     
    338340        glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH | GLUT_MULTISAMPLE); 
    339341        //glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH); 
    340  
    341342        //glutInitDisplayString("samples=2"); 
     343 
     344        SceneEntity::SetUseLODs(useLODs); 
     345 
    342346 
    343347        if (!useFullScreen) 
     
    531535        // this fbo basicly stores the scene information we get from standard rendering of a frame 
    532536        // 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); 
    534538 
    535539        // 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); 
    537541        // 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); 
    539544        // 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); 
    542547 
    543548        PrintGLerror("fbo"); 
     
    10351040                break; 
    10361041        case '+': 
    1037                 maxBatchSize += 10; 
     1042                if (maxBatchSize < 10) 
     1043                        maxBatchSize = 10; 
     1044                else 
     1045                        maxBatchSize += 10; 
     1046 
    10381047                traverser->SetMaxBatchSize(maxBatchSize); 
    10391048                break; 
Note: See TracChangeset for help on using the changeset viewer.