Changeset 3080 for GTP


Ignore:
Timestamp:
10/30/08 10:46:54 (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/chcdemo.cpp

    r3079 r3080  
    458458        //-- load some dynamic stuff 
    459459 
    460         /*LoadModel("hbuddha.dem", dynamicObjects); 
     460        LoadModel("hbuddha.dem", dynamicObjects); 
    461461        buddha = dynamicObjects.back(); 
    462462         
     
    480480                ent->SetTransform(transform); 
    481481                dynamicObjects.push_back(ent); 
    482         }*/ 
     482        } 
    483483 
    484484 
     
    875875void MainLoop()  
    876876{        
    877         motionPath->Move(0.3f); 
     877        //motionPath->Move(0.3f); 
     878        motionPath->Move(0.01f); 
    878879 
    879880        Vector3 planepos = motionPath->GetCurrentPosition(); 
    880881 
    881882        Matrix4x4 mat = TranslationMatrix(planepos); 
    882         //buddha->GetTransform()->SetMatrix(mat); 
     883        buddha->GetTransform()->SetMatrix(mat); 
    883884 
    884885        Vector3 oldPos = camera->GetPosition(); 
     
    20442045{ 
    20452046        const float radius = 5.0f; 
    2046         const Vector3 center(483.398f, 242.364f, 186.078f); 
     2047        const Vector3 center(480.398f, 268.364f, 181.3); 
    20472048 
    20482049        VertexArray vertices; 
    20492050 
    2050         for (int i = 0; i < 360; ++ i) 
     2051        /*for (int i = 0; i < 360; ++ i) 
    20512052        { 
    20522053                float angle = (float)i * M_PI / 180.0f; 
     
    20542055                Vector3 offs = Vector3(cos(angle) * radius, sin(angle) * radius, 0); 
    20552056                vertices.push_back(center + offs); 
     2057        }*/ 
     2058 
     2059        for (int i = 0; i < 5; ++ i) 
     2060        { 
     2061                Vector3 offs = Vector3(i, 0, 0); 
     2062                vertices.push_back(center + offs); 
     2063        } 
     2064 
     2065         
     2066        for (int i = 0; i < 5; ++ i) 
     2067        { 
     2068                Vector3 offs = Vector3(4 -i, 0, 0); 
     2069                vertices.push_back(center + offs); 
    20562070        } 
    20572071 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h

    r3079 r3080  
    4040#define MAX_LOD_LEVEL 10 
    4141 
    42 #define MIN_DEPTH_DIFF 1e-6f 
     42#define MIN_DEPTH_DIFF 1e-5f 
    4343// burnout 
    4444#define WHITE_LUMINANCE 3e4f 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg

    r3079 r3080  
    163163 
    164164        //////////////// 
    165         //-- calculcate the current projected depth for next frame 
     165        //-- calculcate the current projected posiion (also used for next frame) 
    166166         
    167167        float4 currentPos = mul(modelViewProj, worldPos); 
Note: See TracChangeset for help on using the changeset viewer.