Changeset 3221


Ignore:
Timestamp:
12/10/08 17:35:24 (15 years ago)
Author:
mattausch
Message:

added some statistics stuff, but ssao slower than before (probably because made ssao width and intensity variable and not hardcoded anymore) from >180 frames to < 130 frames!!!

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

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/FriendlyCulling.vcproj

    r3212 r3221  
    260260                        </File> 
    261261                        <File 
     262                                RelativePath=".\src\StatsWriter.cpp" 
     263                                > 
     264                        </File> 
     265                        <File 
     266                                RelativePath=".\src\StatsWriter.h" 
     267                                > 
     268                        </File> 
     269                        <File 
    262270                                RelativePath=".\src\WalkThroughRecorder.cpp" 
    263271                                > 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SampleGenerator.cpp

    r3162 r3221  
    2929        // the solution is a possion sampling with respect to the adjusted min distance 
    3030        // better solutions have been proposed, i.e., using hierarchical sampling 
    31         const float maxTries = 1000; 
     31        const int maxTries = 1000; 
    3232        const float f_reduction = 0.9f; 
    3333 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp

    r3220 r3221  
    10091009void MainLoop()  
    10101010{        
    1011 #if TODO 
    1012         GPUProgramParameters *vtxParams =  
    1013                 buddha->GetShape(0)->GetMaterial()->GetTechnique(1)->GetVertexProgramParameters(); 
    1014  
    10151011        Matrix4x4 oldTrafo = buddha->GetTransform()->GetMatrix(); 
    10161012        Vector3 buddhaPos = motionPath->GetCurrentPosition(); 
     
    10191015        buddha->GetTransform()->SetMatrix(trafo); 
    10201016 
     1017#if TODO 
    10211018        /*for (int i = 0; i < 10; ++ i) 
    10221019        { 
     
    10301027                } 
    10311028        }*/ 
     1029#endif 
     1030 
     1031 
     1032        ///////////////////////// 
     1033        //-- update animations 
    10321034 
    10331035        Matrix4x4 rotMatrix = RotationZMatrix(M_PI * 1e-3f); 
    10341036        dynamicObjects[1]->GetTransform()->MultMatrix(rotMatrix); 
    10351037 
    1036  
    1037         ///////////////////////// 
    1038         //-- update animations 
    1039          
    10401038        motionPath->Move(0.01f); 
    10411039 
    1042 #endif 
     1040 
    10431041 
    10441042 
     
    12251223 
    12261224        // if no lense flare => just set sun to invisible 
    1227         int sunVisiblePixels = useLenseFlare  &&  useDeferred ? TestSunVisible() : 0; 
     1225        const int sunVisiblePixels = useLenseFlare  &&  useDeferred ? TestSunVisible() : 0; 
    12281226 
    12291227 
     
    12361234        RenderSky(); 
    12371235 
     1236 
     1237        ////////////////////////////// 
    12381238 
    12391239        if (useDeferred) 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h

    r3216 r3221  
    66//-- ssao + gi parameters 
    77 
    8 //#define NUM_SAMPLES 8 
    9 #define NUM_SAMPLES 16 
     8#define NUM_SAMPLES 8 
     9//#define NUM_SAMPLES 16 
    1010//#define NUM_SAMPLES 24 
    11 //#define NUM_SAMPLES 96 
     11//#define NUM_SAMPLES 48 
    1212 
    1313#define DISTANCE_SCALE 1e-2f 
     
    5858#define DYNAMIC_OBJECTS_THRESHOLD 1e-8f 
    5959 
     60#define USE_GTX 
    6061 
    6162#endif // __SHADERENV_H 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg

    r3213 r3221  
    325325                validSamples = max(validSamples, (1.0f - tooFarAway) * pixelValid); 
    326326 
    327 #ifdef USE_GTX 
     327#ifdef QWQ//USE_GTX 
    328328                // we can bail out early and use a minimal #samples) 
    329329                // if some conditions are met as long as the hardware supports it 
Note: See TracChangeset for help on using the changeset viewer.