Changeset 3135


Ignore:
Timestamp:
11/18/08 12:30:49 (16 years ago)
Author:
mattausch
Message:

working ok (most of the aa is also there for not-ssao mode, so it is probabl a matter of correct aa)

Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src
Files:
4 edited

Legend:

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

    r3134 r3135  
    286286mSamplingMethod(SAMPLING_POISSON), 
    287287mShadingMethod(DEFAULT), 
    288 mIllumFboIndex(0), 
    289 invTrafo(IdentityMatrix()) 
     288mIllumFboIndex(0) 
    290289{ 
    291290        /////////// 
     
    441440        /////////// 
    442441 
    443         const float filterWidth = 10.0f; 
     442        const float filterWidth = 50.0f; 
    444443 
    445444#if 1 
     
    512511 
    513512        // antialiasing of the color buffer 
    514         AntiAliasing(fbo, light); 
     513        //AntiAliasing(fbo, light); 
    515514 
    516515        switch (mShadingMethod) 
     
    538537        } 
    539538 
     539        AntiAliasing(fbo, light); 
     540 
    540541        Output(fbo); 
    541542 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredRenderer.h

    r3132 r3135  
    6060        static int colorBufferIdx; 
    6161 
    62         Matrix4x4 invTrafo; 
    6362 
    6463protected: 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp

    r3134 r3135  
    11321132                        shadingMethod = DeferredRenderer::DEFAULT; 
    11331133 
    1134                 deferredShader->invTrafo = invTrafo; 
    11351134                deferredShader->SetShadingMethod(shadingMethod); 
    11361135                deferredShader->SetSamplingMethod(samplingMethod); 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/combineSsao.cg

    r3134 r3135  
    6262} 
    6363 
    64 #define USE_POSITION 
     64//#define USE_POSITION 
    6565 
    6666float DiscontinuityFilter(float2 texCoord, 
     
    109109#endif 
    110110                normalFactor = max(step(0.6f, dot(sampleNorm, norm)), 1e-3f); 
    111                 convergenceFactor = min(60.0f, aoSample.y) * 0.01f;//max(step(18.5f, aoSample.y), 1e-3f); 
     111                convergenceFactor = min(100.0f, aoSample.y) * 0.01f;//max(step(18.5f, aoSample.y), 1e-3f); 
    112112 
    113113                w = filterWeights[i] * normalFactor * depthFactor * convergenceFactor; 
     
    176176                //ao.x = DiscontinuityFilter(IN.texCoord, ao, ssaoTex, normalsTex, filterOffs, filterWeights, adaptFactor * scaleFactor  / (adaptFactor + ao.y), 0); 
    177177 
    178                 if (ao.y < 60.5f) ao.x = DiscontinuityFilter(IN.texCoord, ao, ssaoTex, normalsTex, filterOffs, filterWeights, scaleFactor, bl, br, tl, tr); 
     178                if (ao.y < 50.5f) ao.x = DiscontinuityFilter(IN.texCoord, ao, ssaoTex, normalsTex, filterOffs, filterWeights, ao.z, bl, br, tl, tr); 
    179179                //ao.x = DiscontinuityFilter(IN.texCoord, ao, ssaoTex, normalsTex, filterOffs, filterWeights, 1, 0); 
    180180        } 
     
    189189        //      if (ao.y < 10.5f) OUT.illum_col.xyz = float3(0, 10000, 0); 
    190190        //OUT.illum_col = float4(dummy3, dummy3, dummy3, col.w); 
    191         OUT.illum_col = float4(ao.x, ao.x, ao.x, col.w); 
     191        //OUT.illum_col = float4(ao.x, ao.x, ao.x, col.w); 
    192192 
    193193        //OUT.illum_col.xyz = float3(1.0f - ao.x, dummy2, 0);//dummy2); 
Note: See TracChangeset for help on using the changeset viewer.