Changeset 3098 for GTP


Ignore:
Timestamp:
11/05/08 10:49:35 (16 years ago)
Author:
mattausch
Message:

detected error on edges of buildings: why doing ssao there?

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

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/deferred.cg

    r3097 r3098  
    7171        float4 col = shade(IN, color, normal, lightDir); 
    7272         
    73         OUT.color = col; 
     73        //OUT.color = col; 
     74        OUT.color.xyz = normal * 0.5f + 0.5f; 
    7475 
    7576        // store scaled view vector so wie don't have to normalize for e.g., ssao 
    7677        OUT.color.w = color.w / length(IN.view); 
    77         //OUT.color.w = color.w; 
    78  
     78         
    7979        return OUT; 
    8080} 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg

    r3097 r3098  
    295295                total_ao += cosAngle * aoContrib * viewCorrection; 
    296296#else 
    297                 total_ao += cosAngle * intensity; 
     297                total_ao += cosAngle * aoContrib; 
    298298#endif 
    299299        } 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/toto.txt

    r3091 r3098  
    7676to compare the depth of the current pixel, but the depth of the 
    7777samples taken for ao 
    78  
    79  
    80 idea for incorporation of dynamic objects: 
    81  
    82 store object id with render target 
    83 for each object we know the trafo 
    84 when doing the back projection => 
    85 as usual: 
    86 transform current pixel back to world space 
    87 find pixel from last frame using the inverse model view trafo 
    88  
    89 now apply the transformation from the current frame on the pixel => 
    90 do the equality comparison 
    91  
Note: See TracChangeset for help on using the changeset viewer.