Changeset 3341 for GTP/trunk/App/Demos


Ignore:
Timestamp:
04/12/09 23:24:55 (16 years ago)
Author:
mattausch
Message:

nix geht

Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src
Files:
5 edited

Legend:

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

    r3340 r3341  
    811811        attribsTex = fbo->GetColorBuffer(2)->GetTexture(); 
    812812 
     813 
    813814        ///////// 
    814815        //-- flip flop between illumination buffers 
     
    845846                { 
    846847                        CreateSampleTex(samples2, NUM_PRECOMPUTED_SAMPLES); 
     848                        cout<<"here34"<<endl; 
    847849                } 
    848850                else 
     
    14191421        const float distanceToLight = Magnitude(vectorToLight); 
    14201422        vectorToLight /= distanceToLight; 
    1421  
    14221423        //cout << "dist " << distanceToLight << " v " << vectorToLight << endl; 
    14231424 
     
    15111512 
    15121513        delete [] data; 
    1513  
    15141514        stopil(); 
    15151515 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp

    r3338 r3341  
    657657        Matrix4x4 transl = TranslationMatrix(positions[0]); 
    658658         
    659         //LoadModel("hbuddha.dem", dynamicObjects); 
    660         LoadModel("torus.dem", dynamicObjects); 
     659        LoadModel("hbuddha.dem", dynamicObjects); 
     660        //LoadModel("torus.dem", dynamicObjects); 
    661661        //LoadModel("venusm.dem", dynamicObjects); 
    662662 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/combineSsaoSep.cg

    r3339 r3341  
    194194        } 
    195195 
     196 
    196197        return OUT; 
    197198} 
     
    248249        } 
    249250 
    250         //OUT.illum_col.xyz = float3(ao.w * 5e-3f, 0, 0); 
    251         //OUT.illum_col.xyz = float3(ao.y * 1e-2f, 0, 0); 
     251        OUT.illum_col.xyz = float3(ao.w * 5e-1f, 0, 0); 
     252        //OUT.illum_col.xyz = float3(ao.z * 1e-1f); 
     253        OUT.illum_col.xyz = float3(ao.y * 1e-1f);//, 0, 0); 
    252254        //OUT.illum_col.xyz = ao.xyz; 
    253255 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/deferred.cg

    r3340 r3341  
    331331 
    332332        float4 color = tex2Dlod(colorsTex, float4(IN.texCoord, .0f, .0f)); 
    333         // store scaled view vector so wie don't have to normalize for e.g., ssao 
     333        // store scaled view vector so wie don't have to normalize for e.g., SSAO 
    334334        color.w /= length(IN.view); 
    335335 
     
    353353                                                                         ); 
    354354#else 
    355  
    356355        const float2 pValid = float2(0,0); 
    357  
    358356#endif 
    359357 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg

    r3340 r3341  
    128128        float w; 
    129129        float idx; 
     130 
    130131 
    131132        ////////////// 
     
    433434 
    434435#endif // PERFORMANCE_TEST 
    435  
    436436        } 
    437437 
     
    487487        const float4 eyeSpacePos = float4(-viewDir * eyeSpaceDepth, 1.0f); 
    488488 
     489 
    489490        //////////////// 
    490491        //-- calculcate the current projected posiion (also used for next frame) 
     
    522523         
    523524        float oldWeight = temporalVals.y; 
    524         float oldIdx = temporalCoherence > 1 ? temporalVals.z : 0; 
     525        float oldIdx = /*temporalCoherence > 1 ? */temporalVals.z/* : 0*/; 
    525526         
    526527#else 
     
    599600 
    600601        OUT.illum_col.y = combinedWeight; 
    601         OUT.illum_col.z = oldIdx + newWeight; // the new index 
     602        OUT.illum_col.z = oldIdx + 8;//newWeight; // the new index 
    602603        OUT.illum_col.w = eyeSpaceDepth; 
    603604 
Note: See TracChangeset for help on using the changeset viewer.