Ignore:
Timestamp:
12/10/08 15:57:06 (16 years ago)
Author:
mattausch
Message:

worked on video replay function

File:
1 edited

Legend:

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

    r3219 r3220  
    122122int currentReplayFrame = -1; 
    123123 
     124string recordedFramesSuffix("frames"); 
     125 
    124126/// the walkThroughRecorder 
    125127WalkThroughRecorder *walkThroughRecorder = NULL; 
     
    416418                env.GetFloatParam(string("ssaoKernelRadius"), ssaoKernelRadius); 
    417419                env.GetFloatParam(string("ssaoSampleIntensity"), ssaoSampleIntensity); 
    418  
    419420                env.GetBoolParam(string("ssaoUseFullResolution"), ssaoUseFullResolution); 
     421 
     422                env.GetStringParam(string("recordedFramesSuffix"), recordedFramesSuffix); 
    420423 
    421424                //env.GetStringParam(string("modelPath"), model_path); 
     
    446449                cout << "kernel radius: " << ssaoKernelRadius << endl; 
    447450                cout << "ssao full resolution: " << ssaoUseFullResolution << endl; 
     451                cout << "recorded frames suffix: " << recordedFramesSuffix << endl; 
    448452 
    449453                //cout << "model path: " << model_path << endl; 
     
    511515        resourceManager = ResourceManager::GetSingleton(); 
    512516        shaderManager = ShaderManager::GetSingleton(); 
     517 
    513518 
    514519        /////////// 
     
    12611266                deferredShader->SetUseTemporalCoherence(useTemporalCoherence); 
    12621267                deferredShader->SetSortSamples(sortSamples); 
    1263                 deferredShader->SetSaveFrame((recordFrames && replayPath) ? -1 : currentReplayFrame); 
     1268                deferredShader->SetSaveFrame(recordedFramesSuffix, (recordFrames && replayPath) ? currentReplayFrame : -1); 
    12641269 
    12651270                ShadowMap *sm = showShadowMap ? shadowMap : NULL; 
     
    14901495        case 'u': 
    14911496        case 'U': 
     1497                // move light source instead of camera tilt 
    14921498                moveLight = !moveLight; 
    14931499                break; 
Note: See TracChangeset for help on using the changeset viewer.