Changeset 3344 for GTP


Ignore:
Timestamp:
04/13/09 12:16:29 (15 years ago)
Author:
mattausch
Message:

works well with index

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

Legend:

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

    r3343 r3344  
    377377 
    378378                const float minDist = 1e-6f; 
    379                 const float delta = 1e-3f; 
     379                const float eps = 1e-3f; 
    380380 
    381381                const float lengthToSample = length(dirSample); 
    382                 const float sampleWeight = 1.0f / (lengthToSample + delta); 
     382                const float sampleWeight = 1.0f / max(lengthToSample, eps); 
    383383 
    384384                dirSample /= max(length(dirSample), minDist); // normalize 
     
    599599 
    600600        OUT.illum_col.y = combinedWeight; 
    601         OUT.illum_col.z = oldIdx + 8;//newWeight; // the new index 
     601        OUT.illum_col.z = oldIdx + newWeight; // the new index 
    602602        OUT.illum_col.w = eyeSpaceDepth; 
    603603 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/toto.txt

    r3342 r3344  
    148148fix walk speed for deferred shading 
    149149 
    150 fix color bleeding 
    151 fix ao2 
    152 fix full resolution mode 
    153  
    154 for the paper: make ao more efficient, for example we do not need to downsample normal texture for ao version 1 
    155 also for full resolution mode: test what happens if we do not use downsampling, look why currently so slow with full resolution (was previously > 80 frame or so!!) 
     150fix color bleeding fix ao2 fix full resolution mode 
     151 
     152for the paper: make ao more efficient, for example we do not need to 
     153downsample normal texture for ao version 1 also for full resolution 
     154mode: test what happens if we do not use downsampling, look why 
     155currently so slow with full resolution (was previously > 80 frame or 
     156so!!) 
    156157 
    157158 
    158159/////////////// 
     160 
    159161 
    160162always update tempcoh after changes to sample intensity usw. 
     
    210212 
    211213fix normals!! 
     214 
     215 
     216ssao should be only for ambient lighting 
     217use better buddha model 
     218show rotating spheres 
     219images of sibenik 
     220performance test from vienna? 
     221try out method described in the paper for detecting pixels 
     222unifiy index and counter 
     223fix shadows! 
     224make images with / without filter 
Note: See TracChangeset for help on using the changeset viewer.