Changeset 2853 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
- Timestamp:
- 08/19/08 16:36:13 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r2851 r2853 31 31 #include "Halton.h" 32 32 #include "Transform3.h" 33 #include "SampleGenerator.h" 33 34 34 35 … … 188 189 bool useFullScreen = false; 189 190 190 float expFactor = 0.1f; 191 // exp factor for ssao 192 float expFactor = 0.05f; 191 193 192 194 // ssao number of samples … … 376 378 glutInitWindowSize(winWidth, winHeight); 377 379 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); 380 382 381 383 //glutInitDisplayString("samples=2"); … … 2041 2043 bool validIntersect = sceneQuery->CalcIntersection(playerPos); 2042 2044 2043 if (validIntersect 2045 if (validIntersect) 2044 2046 // && ((playerPos.z - oldPos.z) < bvh->GetBox().Size(2) * 1e-1f)) 2045 2047 { … … 2271 2273 void GenerateSamples() 2272 2274 { 2273 static HaltonSequence halton;2275 /*static HaltonSequence halton; 2274 2276 2275 2277 float r[2]; … … 2328 2330 } 2329 2331 } 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); 2334 2337 } 2335 2338
Note: See TracChangeset
for help on using the changeset viewer.