Changeset 3091


Ignore:
Timestamp:
11/03/08 09:33:59 (16 years ago)
Author:
mattausch
Message:

working on rigid objects

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

Legend:

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

    r3089 r3091  
    137137                                                 uniform float3 oldbr, 
    138138                                                 uniform float3 oldtl, 
    139                                                  uniform float3 oldtr 
     139                                                 uniform float3 oldtr, 
     140                                                 const uniform float4x4 inverseModelTrafo, 
     141                                                 float id 
    140142                                                 ) 
    141143{ 
     
    144146        ///////////////// 
    145147        //-- compute reprojection for temporal smoothing 
     148 
     149        float4x4 trafo; 
     150 
     151        // dynamic object 
     152        if (id > 20) 
     153                trafo = oldModelViewProj; 
     154        else 
     155                trafo = inverseModelTrafo * oldModelViewProj; 
    146156 
    147157        // reproject into old frame and calculate projected depth 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/toto.txt

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