Ignore:
Timestamp:
08/19/08 16:36:13 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2851 r2853  
    3131#include "Halton.h" 
    3232#include "Transform3.h" 
     33#include "SampleGenerator.h" 
    3334 
    3435 
     
    188189bool useFullScreen = false; 
    189190 
    190 float expFactor = 0.1f; 
     191// exp factor for ssao 
     192float expFactor = 0.05f; 
    191193 
    192194// ssao number of samples 
     
    376378        glutInitWindowSize(winWidth, winHeight); 
    377379        glutInit(&argc, argv); 
    378         //glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH | GLUT_MULTISAMPLE); 
    379         glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH); 
     380        glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH | GLUT_MULTISAMPLE); 
     381        //glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH); 
    380382 
    381383        //glutInitDisplayString("samples=2"); 
     
    20412043        bool validIntersect = sceneQuery->CalcIntersection(playerPos); 
    20422044 
    2043         if (validIntersect )  
     2045        if (validIntersect)  
    20442046                // && ((playerPos.z - oldPos.z) < bvh->GetBox().Size(2) * 1e-1f)) 
    20452047        { 
     
    22712273void GenerateSamples() 
    22722274{ 
    2273         static HaltonSequence halton; 
     2275        /*static HaltonSequence halton; 
    22742276 
    22752277        float r[2]; 
     
    23282330                        } 
    23292331                } 
    2330                 //cout << "sample: " << samples[i] << " " << i / 2 << " " << samples[i + 1] << " r: " << sqrt(samples[i] * samples[i]  + samples[i + 1] * samples[i + 1]) << " tries: " << totalTries << endl; 
    2331         } 
    2332  
    2333         //cout << "minDist after= " << minDist << endl; 
     2332        } 
     2333*/ 
     2334 
     2335        static PoissonDiscSampleGenerator poisson(NUM_SAMPLES, 1.0f); 
     2336        poisson.Generate((Sample2 *)samples); 
    23342337} 
    23352338 
Note: See TracChangeset for help on using the changeset viewer.