Changeset 3353
- Timestamp:
- 04/14/09 13:53:30 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r3341 r3353 557 557 558 558 visCamera = new PerspectiveCamera(winWidth / winHeight, fov); 559 visCamera->SetNear( 0.0f);559 visCamera->SetNear(.0f); 560 560 visCamera->Yaw(.5 * M_PI); 561 561 … … 633 633 if (0) LoadPompeiiFloor(); 634 634 635 #if 1636 635 637 636 #if 0 … … 670 669 } 671 670 672 #endif 671 const float rotAngle = M_PI / 180.0f; 672 const Matrix4x4 rotMatrix = RotationZMatrix(rotAngle); 673 // hack: second buddha 674 //dynamicObjects[1]->GetTransform()->MultMatrix(rotMatrix); 673 675 674 676 … … 1164 1166 #endif 1165 1167 1168 #if 0 1166 1169 ///////////////////////// 1167 1170 //-- update animations … … 1185 1188 const float moveSpeed = 1e-1f; 1186 1189 motionPath->Move(moveSpeed); 1190 #endif 1187 1191 } 1188 1192 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h
r3347 r3353 31 31 32 32 //#define MIN_DEPTH_DIFF 5e-3f 33 #define MIN_DEPTH_DIFF 1e-3f 33 //#define MIN_DEPTH_DIFF 1e-3f 34 #define MIN_DEPTH_DIFF 1e-9f 34 35 #define DYNAMIC_OBJECTS_THRESHOLD 1e-8f 35 36 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/combineSsaoSep.cg
r3349 r3353 241 241 if (depth < DEPTH_THRESHOLD) 242 242 { 243 OUT.illum_col.xyz = col.xyz * max(minAO, 1.0f - ao.x); 243 //OUT.illum_col.xyz = col.xyz * max(minAO, 1.0f - ao.x); 244 OUT.illum_col.xyz = max(minAO, 1.0f - ao.x); 244 245 //OUT.illum_col.xyz = max(minAO, 1.0f - ao.x); 245 246 } -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/deferred.cg
r3352 r3353 40 40 41 41 // hack: prevent to shade the sky 42 #if 0 42 43 if (color.w > DEPTH_THRESHOLD) 43 44 { … … 51 52 outColor = (ambient + diffuse) * color; 52 53 } 54 #else 55 outColor = ao; 56 #endif 53 57 54 58 return outColor; … … 361 365 ); 362 366 #else 363 const float2 pValid = float2(0, 0);367 const float2 pValid = float2(0, 0); 364 368 #endif 365 369 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r3349 r3353 522 522 523 523 float oldWeight = temporalVals.y; 524 float oldIdx = temporalCoherence > 1 ? temporalVals.z : 0; 524 //float oldIdx = temporalCoherence > 1 ? temporalVals.z : 0; 525 float oldIdx = temporalVals.z; 525 526 526 527 #else … … 602 603 OUT.illum_col.w = eyeSpaceDepth; 603 604 604 //if (OUT.illum_col.z > 1000) OUT.illum_col.z = 0;605 606 605 // this value can be used to check if this pixel belongs to a moving object 607 606 OUT.col.x = SqrLen(diffVec); -
GTP/trunk/App/Demos/Vis/FriendlyCulling/vienna.env
r3342 r3353 66 66 lightDirection=0.556361 0.559966 -0.613923 67 67 68 68 69 ##################### 69 70 ## window options
Note: See TracChangeset
for help on using the changeset viewer.