Changeset 3323 for GTP


Ignore:
Timestamp:
02/20/09 18:47:25 (15 years ago)
Author:
mattausch
Message:

now changing to precomputed sampling version

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  
    107107 
    108108 
    109                         if (0)//!normals.empty()) 
     109                        if (!normals.empty()) 
    110110                        { 
    111111                                faceNormals.push_back(normals[nIndices[idx1]]); 
     
    358358                str.write(reinterpret_cast<char *>(geom->mTexcoords), sizeof(float) * texCoordCount * 2); 
    359359         
    360 /* 
    361         ////////////// 
    362         //-- hack: a default material 
     360 
    363361        /////// 
    364362        //-- texture 
    365  
     363/* 
    366364#ifdef USE_TEXTURE 
    367365        int texId = 0; 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/sibenik.env

    r3319 r3323  
    101101ssaoUseFullResolution=1 
    102102# ssao kernel radius 
    103 #ssaoKernelRadius=2.5f 
    104 ssaoKernelRadius=1.28f 
     103ssaoKernelRadius=2.5f 
    105104# ssao sample intensity 
    106105#ssaoSampleIntensity=0.2f 
    107106ssaoSampleIntensity=0.8f 
    108107# ssao temporal coherence factor 
    109 tempCohFactor=2000.0f 
     108tempCohFactor=1500.0f 
    110109# ssao filter radius 
    111110ssaoFilterRadius=12.0f 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SampleGenerator.cpp

    r3322 r3323  
    169169                s[i].y = r * sin(a); 
    170170 
    171                 total1 += x[0]; 
     171                /*total1 += x[0]; 
    172172                total2 += x[1]; 
    173173                totalSamples ++; 
     
    179179 
    180180                        cout << "here3 " << n1 << " " << n2 << endl; 
    181                 } 
     181                }*/ 
    182182        } 
    183183} 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h

    r3322 r3323  
    99//#define NUM_SAMPLES 16 
    1010//#define NUM_SAMPLES 24 
    11 #define NUM_SAMPLES 8 
     11#define NUM_SAMPLES 24 
    1212 
    1313//#define MIN_SAMPLES 48 
    14 #define MIN_SAMPLES 8 
     14#define MIN_SAMPLES 24 
    1515 
    1616#define DISTANCE_SCALE 1e-2f 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/combineSsaoSep.cg

    r3322 r3323  
    192192        { 
    193193                // 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); 
    195195        } 
    196196 
     
    232232        { 
    233233                // 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); 
    235235        } 
    236236 
     
    241241        if (depth < DEPTH_THRESHOLD) 
    242242        { 
    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); 
    245245        } 
    246246        else 
Note: See TracChangeset for help on using the changeset viewer.