Ignore:
Timestamp:
08/29/08 00:00:59 (16 years ago)
Author:
mattausch
Message:

working quite well

File:
1 edited

Legend:

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

    r2879 r2881  
    322322                //cout << "model path: " << model_path << endl; 
    323323 
    324                 cout << "**** end parameters ****" << endl; 
     324                cout << "**** end parameters ****" << endl << endl; 
    325325        } 
    326326 
     
    537537        // this fbo basicly stores the scene information we get from standard rendering of a frame 
    538538        // we store colors, normals, positions (for the ssao) 
    539         fbo = new FrameBufferObject(texWidth, texHeight, FrameBufferObject::DEPTH_32); 
     539        fbo = new FrameBufferObject(texWidth, texHeight, FrameBufferObject::DEPTH_24); 
    540540 
    541541        // the diffuse color buffer 
     
    879879                cgGLDisableProfile(RenderState::sCgVertexProfile); 
    880880 
    881                 glDrawBuffers(1, mrt); 
    882  
    883881                glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 
    884882 
     
    901899                glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE); 
    902900 
    903                 glDrawBuffers(1, mrt); 
    904  
    905901                break; 
    906902         
     
    980976        if (renderType == RenderState::DEFERRED)  
    981977        { 
    982                 fbo->Release(); 
     978                FrameBufferObject::Release(); 
    983979 
    984980                cgGLDisableProfile(RenderState::sCgVertexProfile); 
    985981                cgGLDisableProfile(RenderState::sCgFragmentProfile); 
    986  
    987                 glDrawBuffers(1, mrt); 
    988982 
    989983                if (useSsao) 
     
    991985                        if (!ssaoShader) ssaoShader = new SsaoShader(texWidth, texHeight, camera, myfar / 10.0f); 
    992986                        //DEL_PTR(deferredShader); 
    993                          
    994987                        ssaoShader->Render(fbo, oldViewProjMatrix, ssaoExpFactor); 
    995988 
     
    999992                        if (!deferredShader) deferredShader = new DeferredShader(texWidth, texHeight); 
    1000993                        //DEL_PTR(ssaoShader); 
    1001  
    1002994                        deferredShader->Render(fbo); 
    1003995                } 
Note: See TracChangeset for help on using the changeset viewer.