Changeset 3323 for GTP/trunk/App
- Timestamp:
- 02/20/09 18:47:25 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/Converter/ObjConverter.cpp
r3319 r3323 107 107 108 108 109 if ( 0)//!normals.empty())109 if (!normals.empty()) 110 110 { 111 111 faceNormals.push_back(normals[nIndices[idx1]]); … … 358 358 str.write(reinterpret_cast<char *>(geom->mTexcoords), sizeof(float) * texCoordCount * 2); 359 359 360 /* 361 ////////////// 362 //-- hack: a default material 360 363 361 /////// 364 362 //-- texture 365 363 /* 366 364 #ifdef USE_TEXTURE 367 365 int texId = 0; -
GTP/trunk/App/Demos/Vis/FriendlyCulling/sibenik.env
r3319 r3323 101 101 ssaoUseFullResolution=1 102 102 # ssao kernel radius 103 #ssaoKernelRadius=2.5f 104 ssaoKernelRadius=1.28f 103 ssaoKernelRadius=2.5f 105 104 # ssao sample intensity 106 105 #ssaoSampleIntensity=0.2f 107 106 ssaoSampleIntensity=0.8f 108 107 # ssao temporal coherence factor 109 tempCohFactor= 2000.0f108 tempCohFactor=1500.0f 110 109 # ssao filter radius 111 110 ssaoFilterRadius=12.0f -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SampleGenerator.cpp
r3322 r3323 169 169 s[i].y = r * sin(a); 170 170 171 total1 += x[0];171 /*total1 += x[0]; 172 172 total2 += x[1]; 173 173 totalSamples ++; … … 179 179 180 180 cout << "here3 " << n1 << " " << n2 << endl; 181 } 181 }*/ 182 182 } 183 183 } -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h
r3322 r3323 9 9 //#define NUM_SAMPLES 16 10 10 //#define NUM_SAMPLES 24 11 #define NUM_SAMPLES 811 #define NUM_SAMPLES 24 12 12 13 13 //#define MIN_SAMPLES 48 14 #define MIN_SAMPLES 814 #define MIN_SAMPLES 24 15 15 16 16 #define DISTANCE_SCALE 1e-2f -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/combineSsaoSep.cg
r3322 r3323 192 192 { 193 193 // the filtered ssao value 194 //OUT.illum_col.x = FilterXY(IN.texCoord, ssaoTex, colorsTex, bl, br, tl, tr, xyStep, convergence, maxConvergence, spatialWeight);194 OUT.illum_col.x = FilterXY(IN.texCoord, ssaoTex, colorsTex, bl, br, tl, tr, xyStep, convergence, maxConvergence, spatialWeight); 195 195 } 196 196 … … 232 232 { 233 233 // the filtered ssao value 234 //ao.x = FilterXY(IN.texCoord, ssaoTex, colorsTex, bl, br, tl, tr, xyStep, convergence, maxConvergence, spatialWeight);234 ao.x = FilterXY(IN.texCoord, ssaoTex, colorsTex, bl, br, tl, tr, xyStep, convergence, maxConvergence, spatialWeight); 235 235 } 236 236 … … 241 241 if (depth < DEPTH_THRESHOLD) 242 242 { 243 OUT.illum_col.xyz = col.xyz * max(minAO, 1.0f - ao.x);244 //OUT.illum_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); 245 245 } 246 246 else
Note: See TracChangeset
for help on using the changeset viewer.