Changeset 3291 for GTP


Ignore:
Timestamp:
01/23/09 18:33:15 (15 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/MainApp.vcproj

    r3290 r3291  
    155155                                IgnoreAllDefaultLibraries="false" 
    156156                                IgnoreDefaultLibraryNames="LIBCMT" 
    157                                 GenerateDebugInformation="true" 
     157                                GenerateDebugInformation="false" 
    158158                                SubSystem="1" 
    159159                                LargeAddressAware="2" 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/default.env

    r3290 r3291  
    1313#filename=mypompeii 
    1414#bvhname=mypompeii 
    15 #filename=pompeii/pompeii_full 
     15filename=pompeii/pompeii_full 
    1616#filename=pompeii/pompeii_part 
    17 filename=city 
    18 bvhname=city 
     17#filename=city 
     18#bvhname=city 
    1919useLODs=1 
    2020# shadow map size 
     
    7575 
    7676# initial camera position 
    77 camPosition=483.398f 242.364f 186.078f 
     77#camPosition=483.398f 242.364f 186.078f 
    7878# pompeii view point 
    79 #camPosition=1300.0f -2500.0f 10.0f 
     79camPosition=1300.0f -2500.0f 10.0f 
    8080# pompeii problematic 
    8181#camPosition=627.003 -1725.33 25.2 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.cpp

    r3274 r3291  
    675675        // collect bvh nodes 
    676676        BvhNodeContainer nodes; 
     677        // also add root 
     678        nodes.push_back(mRoot); 
    677679        // first collect dynamic nodes so we make sure that they are in the beginning 
    678680        CollectNodes(mDynamicRoot, nodes); 
     
    680682        CollectNodes(mStaticRoot, nodes); 
    681683        //CollectNodes(mRoot, nodes); 
    682         // also add root 
    683         nodes.push_back(mRoot); 
     684         
    684685 
    685686        cout << "creating new indices" << endl; 
     
    748749        // collect all nodes 
    749750        BvhNodeContainer nodes; 
     751        // also add root 
     752        nodes.push_back(mRoot); 
    750753        //CollectNodes(mRoot, nodes); 
    751754        // first collect dynamic nodes so we make sure that they are in the beginning 
     
    753756        // then collect static nodes 
    754757        CollectNodes(mStaticRoot, nodes); 
    755         // also add root 
    756         nodes.push_back(mRoot); 
    757758 
    758759        // assign ids to all nodes of the hierarchy 
     
    773774 
    774775        nodes.reserve(GetNumNodes()); 
     776        // also add root 
     777        nodes.push_back(mRoot); 
    775778        // first collect dynamic nodes so we make sure that they are in the beginning 
    776779        CollectNodes(mDynamicRoot, nodes); 
    777780        // then collect static nodes 
    778781        CollectNodes(mStaticRoot, nodes); 
    779         // also add root 
    780         nodes.push_back(mRoot); 
    781782 
    782783        const unsigned int bufferSize = 8 * (int)nodes.size(); 
     
    828829        nodes.clear(); 
    829830 
    830         CollectNodes(mDynamicRoot, nodes); 
    831831        // also add root 
    832832        nodes.push_back(mRoot); 
     833         
     834        CollectNodes(mDynamicRoot, nodes); 
     835 
    833836 
    834837        const unsigned int bufferSize = 8 * (int)nodes.size(); 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SkyPreetham.cpp

    r3288 r3291  
    6161        } 
    6262        else 
     63        { 
    6364                cerr << "sky program failed to load" << endl; 
     65        } 
    6466 
    6567        mSkyFragProgram =  
     
    294296                ambient *= 8e-6f; 
    295297        else 
     298        { 
    296299                ambient *= 1e-1f; 
    297300 
    298         //  slightly too blueish => scale 
    299         ambient.x *= 1.3f; 
    300         ambient.y *= 1.1f; 
    301         ambient.z = max(max(ambient.z, ambient.x), ambient.y); 
     301                //  slightly too blueish with tone mapping => scale 
     302                ambient.x *= 1.3f; 
     303                ambient.y *= 1.1f; 
     304                ambient.z = max(max(ambient.z, ambient.x), ambient.y); 
     305        } 
     306         
    302307 
    303308        // simulate the sun intensity by modulating the ambient term. 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp

    r3290 r3291  
    616616        //LoadModel("sibenik.dem", dynamicObjects); 
    617617 
    618         if (0) LoadPompeiiFloor(); 
    619  
    620 #if 1 
     618        if (1) LoadPompeiiFloor(); 
     619 
     620#if 0 
    621621        const Vector3 sceneCenter(470.398f, 240.364f, 181.7f); 
    622622        //const Vector3 sceneCenter(470.398f, 240.364f, 180.3); 
     
    630630        for (int i = 0; i < 10; ++ i) 
    631631        { 
    632                 cout << "here3" << endl; 
    633632                SceneEntity *ent = new SceneEntity(*buddha); 
    634633                resourceManager->AddSceneEntity(ent); 
     
    11201119void MainLoop()  
    11211120{        
    1122         if (0)//buddha) 
     1121        if (buddha) 
    11231122        { 
    11241123                Matrix4x4 oldTrafo = buddha->GetTransform()->GetMatrix(); 
     
    11461145 
    11471146                //const float rotAngle = M_PI * 1e-3f; 
    1148                 const float rotAngle = 1.0f * M_PI / 180.0f; 
     1147                const float rotAngle = 0.3f * M_PI / 180.0f; 
    11491148 
    11501149                Matrix4x4 rotMatrix = RotationZMatrix(rotAngle); 
    1151                 dynamicObjects[2]->GetTransform()->MultMatrix(rotMatrix); 
    1152  
    1153                 motionPath->Move(0.01f); 
     1150                dynamicObjects[1]->GetTransform()->MultMatrix(rotMatrix); 
     1151 
     1152                motionPath->Move(0.005f); 
    11541153        } 
    11551154 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg

    r3284 r3291  
    246246                //-- (affects performance for some reason!) 
    247247 
    248                 if (1)//convergence < 700) 
     248                if (convergence < 700) 
    249249                { 
    250250                        float2 mynoise = tex2Dlod(noiseTex, float4(IN.texCoord * 4.0f, 0, 0)).xy; 
Note: See TracChangeset for help on using the changeset viewer.