Changeset 3353 for GTP


Ignore:
Timestamp:
04/14/09 13:53:30 (15 years ago)
Author:
mattausch
Message:

something strange happening in sibenik: reprojection not working!!

Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling
Files:
6 edited

Legend:

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

    r3341 r3353  
    557557 
    558558        visCamera = new PerspectiveCamera(winWidth / winHeight, fov); 
    559         visCamera->SetNear(0.0f); 
     559        visCamera->SetNear(.0f); 
    560560        visCamera->Yaw(.5 * M_PI); 
    561561 
     
    633633        if (0) LoadPompeiiFloor(); 
    634634 
    635 #if 1 
    636635 
    637636#if 0 
     
    670669        } 
    671670 
    672 #endif 
     671        const float rotAngle = M_PI / 180.0f; 
     672        const Matrix4x4 rotMatrix = RotationZMatrix(rotAngle); 
     673        // hack: second buddha 
     674        //dynamicObjects[1]->GetTransform()->MultMatrix(rotMatrix); 
    673675 
    674676         
     
    11641166#endif 
    11651167 
     1168#if 0 
    11661169                ///////////////////////// 
    11671170                //-- update animations 
     
    11851188                const float moveSpeed = 1e-1f; 
    11861189                motionPath->Move(moveSpeed); 
     1190#endif 
    11871191        } 
    11881192 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h

    r3347 r3353  
    3131 
    3232//#define MIN_DEPTH_DIFF 5e-3f 
    33 #define MIN_DEPTH_DIFF 1e-3f 
     33//#define MIN_DEPTH_DIFF 1e-3f 
     34#define MIN_DEPTH_DIFF 1e-9f 
    3435#define DYNAMIC_OBJECTS_THRESHOLD 1e-8f 
    3536 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/combineSsaoSep.cg

    r3349 r3353  
    241241        if (depth < DEPTH_THRESHOLD) 
    242242        { 
    243                 OUT.illum_col.xyz = col.xyz * max(minAO, 1.0f - ao.x); 
     243                //OUT.illum_col.xyz = col.xyz * max(minAO, 1.0f - ao.x); 
     244                OUT.illum_col.xyz = max(minAO, 1.0f - ao.x); 
    244245                //OUT.illum_col.xyz = max(minAO, 1.0f - ao.x); 
    245246        } 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/deferred.cg

    r3352 r3353  
    4040 
    4141        // hack: prevent to shade the sky 
     42#if 0 
    4243        if (color.w > DEPTH_THRESHOLD) 
    4344        { 
     
    5152                        outColor = (ambient + diffuse) * color; 
    5253        } 
     54#else 
     55        outColor = ao; 
     56#endif 
    5357 
    5458        return outColor; 
     
    361365                                                                         ); 
    362366#else 
    363         const float2 pValid = float2(0,0); 
     367        const float2 pValid = float2(0, 0); 
    364368#endif 
    365369 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg

    r3349 r3353  
    522522         
    523523        float oldWeight = temporalVals.y; 
    524         float oldIdx = temporalCoherence > 1 ? temporalVals.z : 0; 
     524        //float oldIdx = temporalCoherence > 1 ? temporalVals.z : 0; 
     525        float oldIdx = temporalVals.z; 
    525526         
    526527#else 
     
    602603        OUT.illum_col.w = eyeSpaceDepth; 
    603604 
    604         //if (OUT.illum_col.z > 1000) OUT.illum_col.z = 0; 
    605  
    606605        // this value can be used to check if this pixel belongs to a moving object 
    607606        OUT.col.x = SqrLen(diffVec); 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/vienna.env

    r3342 r3353  
    6666lightDirection=0.556361 0.559966 -0.613923 
    6767 
     68 
    6869##################### 
    6970## window options 
Note: See TracChangeset for help on using the changeset viewer.