Ignore:
Timestamp:
04/20/09 09:11:32 (15 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r3360 r3361  
    149149 
    150150bool useSkylightForIllum = true; 
    151  
    152151bool showFPS = true; 
    153  
    154152static int globalVisibleId = 0; 
    155  
    156153PerfTimer applicationTimer; 
    157154 
     
    203200// ssao parameters 
    204201float ssaoKernelRadius = 1e-8f; 
    205 float ssaoSampleIntensity = 0.2f; 
     202float ssaoSampleIntensity = .2f; 
    206203float ssaoFilterRadius = 3.0f; 
    207204float ssaoTempCohFactor = 255.0; 
     
    647644         
    648645        // for buddha (lowres) 
    649         /*positions.push_back(Vector3(6.07307, 8.20723, 6.62)); 
     646        positions.push_back(Vector3(6.07307, 8.20723, 6.62)); 
    650647        positions.push_back(Vector3(-17.1935, 11.1687, 8.8781)); 
    651         positions.push_back(Vector3(1.50032, 31.1943, 19.1f));*/ 
     648        positions.push_back(Vector3(1.50032, 31.1943, 19.1f)); 
    652649 
    653650        // for happy buddha 
     
    658655        // for dragon 
    659656        //positions.push_back(Vector3(6.07307, 8.20723, 5.0f)); 
    660         positions.push_back(Vector3(0, 0, -0.8)); 
     657        //positions.push_back(Vector3(0, 0, -0.8)); 
    661658 
    662659#endif 
     
    666663         
    667664        //LoadModel("hbuddha.dem", dynamicObjects); 
    668         LoadModel("horse.dem", dynamicObjects); 
    669         //LoadModel("happy.dem", dynamicObjects); 
     665        //LoadModel("horse.dem", dynamicObjects); 
     666        LoadModel("happy.dem", dynamicObjects); 
    670667        //LoadModel("dragon.dem", dynamicObjects); 
    671668        //LoadModel("torus.dem", dynamicObjects); 
     
    681678        } 
    682679 
     680        /* 
    683681        const float rotAngle = M_PI / 2.0f; 
    684682        const Matrix4x4 rotMatrix = RotationXMatrix(rotAngle); 
     
    689687        dynamicObjects[0]->GetTransform()->MultMatrix(scaleMatrix); 
    690688 
    691         //dynamicObjects[1]->GetTransform()->MultMatrix(rotMatrix); 
    692         //dynamicObjects[1]->GetTransform()->MultMatrix(scaleMatrix); 
    693  
    694         //dynamicObjects[2]->GetTransform()->MultMatrix(rotMatrix); 
    695         //dynamicObjects[2]->GetTransform()->MultMatrix(scaleMatrix); 
     689        dynamicObjects[1]->GetTransform()->MultMatrix(rotMatrix); 
     690        dynamicObjects[1]->GetTransform()->MultMatrix(scaleMatrix); 
     691 
     692        dynamicObjects[2]->GetTransform()->MultMatrix(rotMatrix); 
     693        dynamicObjects[2]->GetTransform()->MultMatrix(scaleMatrix); 
    696694 
    697695        cout << "dynamic objects: " << (int)dynamicObjects.size() << endl; 
    698  
     696        */ 
    699697        CreateAnimation(positions[0]); 
     698 
    700699#endif 
    701700 
     
    827826        // buffer holding the difference vector to the old frame 
    828827        fbo->AddColorBuffer(ColorBufferObject::RGB_FLOAT_16, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR); 
     828        //fbo->AddColorBuffer(ColorBufferObject::RGB_UBYTE, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR); 
    829829        // another color buffer 
    830830        fbo->AddColorBuffer(ColorBufferObject::RGBA_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR, ColorBufferObject::FILTER_NEAREST); 
     
    11721172                dynamicObjects[i]->GetTransform()->InitFrame(); 
    11731173 
    1174         if (0)//buddha) 
     1174        if (buddha) 
    11751175        { 
    11761176                Matrix4x4 oldTrafo = buddha->GetTransform()->GetMatrix(); 
     
    11941194#endif 
    11951195 
    1196 #if 0 
     1196#if 1 
    11971197                ///////////////////////// 
    11981198                //-- update animations 
    11991199 
    12001200                //const float rotAngle = M_PI * 1e-3f; 
    1201                 //const float rotAngle = 0.3f * M_PI / 180.0f; 
    1202                 const float rotAngle = 0.6f * M_PI / 180.0f; 
     1201                const float rotAngle = 0.3f * M_PI / 180.0f; 
     1202                //const float rotAngle = 0.6f * M_PI / 180.0f; 
    12031203 
    12041204                Matrix4x4 rotMatrix = RotationZMatrix(rotAngle); 
     
    12061206                dynamicObjects[1]->GetTransform()->MultMatrix(rotMatrix); 
    12071207 
     1208                // hack: second buddha 
    12081209                const float rotAngle2 = 0.0033f * M_PI; 
    1209  
    12101210                Matrix4x4 rotMatrix2 = RotationZMatrix(rotAngle); 
    1211                 // hack: second buddha 
    12121211                //dynamicObjects[3]->GetTransform()->MultMatrix(rotMatrix2); 
    1213  
    12141212 
    12151213                //const float moveSpeed = 5e-3f; 
Note: See TracChangeset for help on using the changeset viewer.