Ignore:
Timestamp:
12/22/08 10:56:58 (15 years ago)
Author:
mattausch
Message:

worked on sampling / convergence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp

    r3226 r3227  
    5858#include "WalkThroughRecorder.h" 
    5959#include "StatsWriter.h" 
     60#include "Halton.h" 
    6061 
    6162 
     
    645646 
    646647        // this function assign the render queue bucket ids of the materials in beforehand 
    647         // => probably a little less overhead for new parts of the scene that are not yet assigned 
     648        // => probably less overhead for new parts of the scene that are not yet assigned 
    648649        PrepareRenderQueue(); 
    649650        /// forward rendering is the default 
     
    651652        // frame time is restarted every frame 
    652653        frameTimer.Start(); 
     654 
     655        Halton::TestHalton(7, 1); 
     656        Halton::TestHalton(7, 2); 
     657 
     658        HaltonSequence::TestHalton(15, 2); 
     659        HaltonSequence::TestHalton(15, 1); 
     660 
     661        Halton::TestPrime(); 
    653662 
    654663        // the rendering loop 
     
    14051414                break; 
    14061415        case '7': 
    1407                 ssaoTempCohFactor *= 0.5f; 
     1416                ssaoTempCohFactor *= 1.0f / 1.2f; 
    14081417                cout << "new temporal coherence factor: " << ssaoTempCohFactor << endl; 
    14091418                break; 
    14101419        case '8': 
    1411                 ssaoTempCohFactor *= 2.0f; 
     1420                ssaoTempCohFactor *= 1.2f; 
    14121421                cout << "new temporal coherence factor: " << ssaoTempCohFactor << endl; 
    14131422                break; 
     
    14171426                break; 
    14181427        case '0': 
    1419                 ssaoKernelRadius *= 1.2f; 
     1428                ssaoKernelRadius *= 1.0f / 0.8f; 
    14201429                cout << "new ssao kernel radius: " << ssaoKernelRadius << endl; 
    14211430                break; 
     
    14251434                break; 
    14261435        case 'N': 
    1427                 ssaoSampleIntensity *= 1.1f; 
     1436                ssaoSampleIntensity *= 1.0f / 0.9f; 
    14281437                cout << "new ssao sample intensity: " << ssaoSampleIntensity << endl; 
    14291438                break; 
     
    14331442                break; 
    14341443        case 'O': 
    1435                 ssaoFilterRadius *= 1.1f; 
     1444                ssaoFilterRadius *= 1.0f / 0.9f; 
    14361445                cout << "new ssao filter radius: " << ssaoFilterRadius << endl; 
    14371446                break; 
Note: See TracChangeset for help on using the changeset viewer.