Changeset 2885 for GTP


Ignore:
Timestamp:
08/29/08 17:27:05 (16 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src
Files:
2 edited

Legend:

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

    r2848 r2885  
    777777void Bvh::PrintBvhStats() const 
    778778{ 
    779         cout << "bvh stats:" << endl; 
     779        cout << "\n******** bvh stats: ***********" << endl; 
    780780        cout << "interiorNodesSA = " << mBvhStats.mInteriorSA / mRoot->mBox.SurfaceArea() << endl; 
    781781        cout << "leafNodesSA = " << mBvhStats.mLeafSA / mRoot->mBox.SurfaceArea() << endl; 
     
    785785        cout << "geometry per leaf: " <<  mBvhStats.mGeometryRatio << endl; 
    786786        cout << "triangles per leaf: " <<  mBvhStats.mTriangleRatio << endl; 
     787        cout << "**************" << endl << endl; 
    787788} 
    788789 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg

    r2884 r2885  
    7878                float3 direction_to_sample = vector_to_sample / length_to_sample; 
    7979 
    80                 // Angle between current normal and direction to sample controls AO intensity. 
     80                // angle between current normal and direction to sample controls AO intensity. 
    8181                const float cos_angle = max(dot(direction_to_sample, currentNormal), 0.0f); 
    8282 
     
    8585                        (SAMPLE_INTENSITY * DISTANCE_SCALE) / (DISTANCE_SCALE + length_to_sample * length_to_sample); 
    8686 
    87                 // if surface normal perpenticular to view dir, some samples probably count less  
    88                 // => compensate for this 
     87                // if surface normal perpenticular to view dir, approx. half of the samples will not count 
     88                // => compensate for this (on the other hand, projected sampling area could be larger!) 
    8989                const float view_correction = 1.0f + VIEW_CORRECTION_SCALE * (1.0f - dot(currentViewDir, currentNormal)); 
    9090 
Note: See TracChangeset for help on using the changeset viewer.