Changeset 3015


Ignore:
Timestamp:
10/08/08 14:55:08 (16 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src
Files:
3 edited

Legend:

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

    r3010 r3015  
    696696 
    697697        cgGLSetMatrixParameterfc(sOldModelViewProjMatrixParam, (const float *)oldProjViewMatrix.x); 
    698  
    699         //GLuint colorsTex = fbo->GetColorBuffer(colorBufferIdx)->GetTexture(); 
    700         //GLuint normalsTex = fbo->GetColorBuffer(1)->GetTexture(); 
    701         //GLuint positionsTex = fbo->GetColorBuffer(2)->GetTexture(); 
    702  
     698#if 1 
     699        GLuint colorsTex = fbo->GetColorBuffer(colorBufferIdx)->GetTexture(); 
     700        GLuint normalsTex = fbo->GetColorBuffer(1)->GetTexture(); 
     701        GLuint positionsTex = fbo->GetColorBuffer(2)->GetTexture(); 
     702#else 
    703703        GLuint colorsTex = mDownSampleFbo->GetColorBuffer(0)->GetTexture(); 
    704704        GLuint normalsTex = mDownSampleFbo->GetColorBuffer(1)->GetTexture(); 
    705705        GLuint positionsTex = mDownSampleFbo->GetColorBuffer(2)->GetTexture(); 
    706          
     706#endif 
     707 
    707708        GLuint oldTex = mFbo->GetColorBuffer(2 - mFboIndex)->GetTexture(); 
    708709 
     
    12961297        downSampleOffsets[6] = -xoffs; downSampleOffsets[7] =  yoffs; 
    12971298        */ 
    1298         const float xoffs = .5f / w; 
    1299         const float yoffs = .5f / h; 
     1299        //const float xoffs = .5f / w; 
     1300        //const float yoffs = .5f / h; 
     1301         
     1302        const float xoffs = 1.0f / w; 
     1303        const float yoffs = 1.0f / h; 
    13001304 
    13011305        int idx  = 0; 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp

    r3014 r3015  
    627627 
    628628        // the diffuse color buffer 
    629         fbo->AddColorBuffer(ColorBufferObject::RGBA_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST, ColorBufferObject::FILTER_NEAREST); 
     629        fbo->AddColorBuffer(ColorBufferObject::RGBA_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR, ColorBufferObject::FILTER_NEAREST); 
    630630        // the normals buffer 
    631631        fbo->AddColorBuffer(ColorBufferObject::RGBA_FLOAT_16, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST); 
     
    634634        fbo->AddColorBuffer(ColorBufferObject::RGB_UBYTE, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST); 
    635635        // another color buffer 
    636         fbo->AddColorBuffer(ColorBufferObject::RGBA_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST, ColorBufferObject::FILTER_NEAREST); 
     636        fbo->AddColorBuffer(ColorBufferObject::RGBA_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR, ColorBufferObject::FILTER_NEAREST); 
    637637 
    638638        PrintGLerror("fbo"); 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h

    r3014 r3015  
    1515#define AREA_SIZE 8e-1f 
    1616 
    17 #define DISTANCE_SCALE 1e-4f 
     17#define DISTANCE_SCALE 1e-1f 
    1818//#define DISTANCE_SCALE 1e-6f 
    1919 
     
    4040#define MAX_LOD_LEVEL 10 
    4141 
    42 #define MIN_DEPTH_DIFF 1e-3f 
     42#define MIN_DEPTH_DIFF 1e-1f 
    4343// burnout 
    4444#define WHITE_LUMINANCE 3e4f 
Note: See TracChangeset for help on using the changeset viewer.