Changeset 3221 for GTP/trunk/App/Demos/Vis/FriendlyCulling
- Timestamp:
- 12/10/08 17:35:24 (16 years ago)
- 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 260 260 </File> 261 261 <File 262 RelativePath=".\src\StatsWriter.cpp" 263 > 264 </File> 265 <File 266 RelativePath=".\src\StatsWriter.h" 267 > 268 </File> 269 <File 262 270 RelativePath=".\src\WalkThroughRecorder.cpp" 263 271 > -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SampleGenerator.cpp
r3162 r3221 29 29 // the solution is a possion sampling with respect to the adjusted min distance 30 30 // better solutions have been proposed, i.e., using hierarchical sampling 31 const float maxTries = 1000;31 const int maxTries = 1000; 32 32 const float f_reduction = 0.9f; 33 33 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r3220 r3221 1009 1009 void MainLoop() 1010 1010 { 1011 #if TODO1012 GPUProgramParameters *vtxParams =1013 buddha->GetShape(0)->GetMaterial()->GetTechnique(1)->GetVertexProgramParameters();1014 1015 1011 Matrix4x4 oldTrafo = buddha->GetTransform()->GetMatrix(); 1016 1012 Vector3 buddhaPos = motionPath->GetCurrentPosition(); … … 1019 1015 buddha->GetTransform()->SetMatrix(trafo); 1020 1016 1017 #if TODO 1021 1018 /*for (int i = 0; i < 10; ++ i) 1022 1019 { … … 1030 1027 } 1031 1028 }*/ 1029 #endif 1030 1031 1032 ///////////////////////// 1033 //-- update animations 1032 1034 1033 1035 Matrix4x4 rotMatrix = RotationZMatrix(M_PI * 1e-3f); 1034 1036 dynamicObjects[1]->GetTransform()->MultMatrix(rotMatrix); 1035 1037 1036 1037 /////////////////////////1038 //-- update animations1039 1040 1038 motionPath->Move(0.01f); 1041 1039 1042 #endif 1040 1043 1041 1044 1042 … … 1225 1223 1226 1224 // if no lense flare => just set sun to invisible 1227 int sunVisiblePixels = useLenseFlare && useDeferred ? TestSunVisible() : 0;1225 const int sunVisiblePixels = useLenseFlare && useDeferred ? TestSunVisible() : 0; 1228 1226 1229 1227 … … 1236 1234 RenderSky(); 1237 1235 1236 1237 ////////////////////////////// 1238 1238 1239 1239 if (useDeferred) -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h
r3216 r3221 6 6 //-- ssao + gi parameters 7 7 8 //#define NUM_SAMPLES 89 #define NUM_SAMPLES 168 #define NUM_SAMPLES 8 9 //#define NUM_SAMPLES 16 10 10 //#define NUM_SAMPLES 24 11 //#define NUM_SAMPLES 9611 //#define NUM_SAMPLES 48 12 12 13 13 #define DISTANCE_SCALE 1e-2f … … 58 58 #define DYNAMIC_OBJECTS_THRESHOLD 1e-8f 59 59 60 #define USE_GTX 60 61 61 62 #endif // __SHADERENV_H -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r3213 r3221 325 325 validSamples = max(validSamples, (1.0f - tooFarAway) * pixelValid); 326 326 327 #ifdef USE_GTX327 #ifdef QWQ//USE_GTX 328 328 // we can bail out early and use a minimal #samples) 329 329 // if some conditions are met as long as the hardware supports it
Note: See TracChangeset
for help on using the changeset viewer.