Changeset 3340 for GTP


Ignore:
Timestamp:
04/10/09 17:22:56 (15 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling
Files:
5 edited

Legend:

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

    r3338 r3340  
    796796void DeferredRenderer::ComputeSsao(FrameBufferObject *fbo, float tempCohFactor) 
    797797{ 
    798         PrintGLerror("here5"); 
    799  
    800798        GLuint colorsTex, normalsTex, attribsTex; 
    801799 
     
    813811        attribsTex = fbo->GetColorBuffer(2)->GetTexture(); 
    814812 
    815         PrintGLerror("here6"); 
    816  
    817813        ///////// 
    818814        //-- flip flop between illumination buffers 
     
    820816        GLuint oldSsaoTex = mIllumFbo->GetColorBuffer(2 - mIllumFboIndex)->GetTexture(); 
    821817 
    822         PrintGLerror("here809"); 
    823  
    824818        glPushAttrib(GL_VIEWPORT_BIT); 
    825819        glViewport(0, 0, mIllumFbo->GetWidth(), mIllumFbo->GetHeight()); 
    826  
    827         PrintGLerror("here45"); 
    828820 
    829821        // read the second buffer, write to the first buffer 
    830822        mIllumFbo->Bind(); 
    831823        glDrawBuffers(2, mrt + mIllumFboIndex); 
    832  
    833         PrintGLerror("here8"); 
    834824 
    835825        int i = 0; 
     
    10931083 
    10941084        DrawQuad(sCgFilterSsaoProgram); 
    1095         PrintGLerror("combine ssao"); 
     1085        PrintGLerror("filter ssao"); 
    10961086} 
    10971087 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h

    r3331 r3340  
    55//////////// 
    66//-- ssao + gi parameters 
     7 
    78#define NUM_PRECOMPUTED_SAMPLES 4096 
    89 
     
    6869#define DEPTH_THRESHOLD 1e10f 
    6970 
     71#define PERFORMANCE_TEST 1 
    7072 
    7173#endif // __SHADERENV_H 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/deferred.cg

    r3332 r3340  
    353353                                                                         ); 
    354354#else 
     355 
    355356        const float2 pValid = float2(0,0); 
     357 
    356358#endif 
    357359 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg

    r3339 r3340  
    393393 
    394394                ++ numSamples; 
     395 
    395396#ifdef PERFORMANCE_TEST 
    396397                // check if the samples have been valid in the last frame 
     
    497498        //const float radiusMult = kernelRadius * invw; 
    498499         
    499 #ifdef PERFORMANCE_TEST  
     500#if 1 
     501//#ifdef PERFORMANCE_TEST        
    500502 
    501503        float3 diffVec = tex2Dlod(attribsTex, float4(IN.texCoord, 0, 0)).xyz; 
     
    537539        if (eyeSpaceDepth < DEPTH_THRESHOLD) 
    538540        { 
    539                 if (0) 
     541                if (1) 
    540542                { 
    541543                        ao = ssao(IN, colors, noiseTex, samples, normal, eyeSpacePos.xyz,  
     
    555557        } 
    556558 
    557 #ifdef PERFORMANCE_TEST 
     559#if 1 
     560//#ifdef PERFORMANCE_TEST 
    558561 
    559562        /////////// 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/toto.txt

    r3296 r3340  
    210210 
    211211fix normals!! 
     212 
     213 
     214test against old version 
     215index + Q in same channel 
     216 
     217make ambient first then ao then diffuse!! 
Note: See TracChangeset for help on using the changeset viewer.