Changeset 3287 for GTP


Ignore:
Timestamp:
01/19/09 20:49:54 (15 years ago)
Author:
mattausch
Message:

worked on videos - still problems with strange white pixels

Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/default.env

    r3286 r3287  
    1717filename=city 
    1818bvhname=city 
    19 useLODs=1 
     19useLODs=0 
    2020# shadow map size 
    2121shadowSize=4096 
    2222# the filenames given to recorded frames (+ number.bmp) 
    2323#recordedFramesSuffix=frames/vienna_frame 
    24 recordedFramesSuffix=frames_100_pgv/vienna_frame 
     24recordedFramesSuffix=vienna_frame 
    2525#recordedFramesSuffix=frames_50_spgvu/vienna_frame 
    2626# the filename for the statistics 
     
    4949 
    5050#visibilitySolutionInitialState=50000000 
    51 visibilitySolutionInitialState=100000000 
     51#visibilitySolutionInitialState=300000000 
     52visibilitySolutionInitialState=500000000 
    5253 
    5354 
     
    99100## window options 
    100101 
    101 winWidth=800 
    102 winHeight=600 
     102#winWidth=800 
     103#winHeight=600 
    103104 
    104 #winWidth=1024 
    105 #winHeight=768 
     105winWidth=1024 
     106winHeight=768 
    106107 
    107108useFullScreen=0 
     
    127128# skylight turbitity 
    128129turbitity=3.0f 
     130#turbitity=2.0f 
    129131#sky dome scale factor 
    130132 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/plot_friendly

    r3276 r3287  
    77COMMAND3=./ps_memory_plot3 
    88 
    9 PREFIX=pp_2 
     9#PREFIX=pp_2 
     10PREFIX=myvienna 
    1011 
    1112#FILES="$PREFIX-vfc.log $PREFIX_chc.log $PREFIX-vfc_pvs.log $PREFIX-chc++_b20.log $PREFIX-chc++_pvs_b20.log" 
     
    1415#FILES="$PREFIX-chc++.log $PREFIX-chc++_b20.log" 
    1516#FILES="$PREFIX-chc.log $PREFIX-vfc_pvs.log $PREFIX-vfc_pvs_smaller.log $PREFIX-chc++.log $PREFIX-chc++_pvs.log $PREFIX-chc++_pvs_smaller.log" 
    16 FILES="$PREFIX-chc.log $PREFIX-vfc_pvs.log $PREFIX-chc++.log $PREFIX-chc++_pvs.log" 
     17FILES="$PREFIX-vfc.log $PREFIX-vfc_pvs.log $PREFIX-chc++.log" 
     18#FILES="$PREFIX-vfc.log $PREFIX-chc++.log $PREFIX-vfc_pvs.log" 
    1719 
    1820echo $FILES 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/ps_memory_plot2

    r3276 r3287  
    2424#echo set xrange \[4200:4600\] >> $FILE 
    2525#echo set xrange \[100:400\] >> $FILE 
    26 echo set xrange \[1:500\] >> $FILE 
     26echo set xrange \[1600:2100\] >> $FILE 
     27#echo set xrange \[3000:3500\] >> $FILE 
    2728#echo set xrange \[1600:2000\] >> $FILE 
    2829# echo set boxwidth 0.4 >> $FILE 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredRenderer.cpp

    r3270 r3287  
    13581358 
    13591359        static char imageName[200]; 
    1360         sprintf(imageName, "%s_%05d.bmp", mSavedFrameSuffix.c_str(), mSavedFrameNumber); 
     1360        sprintf(imageName, "%s_%05d.tga", mSavedFrameSuffix.c_str(), mSavedFrameNumber); 
    13611361 
    13621362        ILstring fileName = ILstring(imageName); 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Pvs.h

    r3285 r3287  
    1111class Bvh; 
    1212 
    13 #define USE_TIMESTAMPS 
     13//#define USE_TIMESTAMPS 
    1414 
    1515struct PvsEntry 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SkyPreetham.cpp

    r3279 r3287  
    296296                ambient *= 1e-1f; 
    297297 
     298        //  could be too blueish ... 
     299        ambient.x *= 1.3f; 
     300        ambient.y *= 1.2f; 
     301        ambient.z = max(max(ambient.z, ambient.x), ambient.y); 
     302 
    298303        // simulate the sun intensity by modulating the ambient term. 
    299304        ambient *= (10.0f - 9.0f * DotProd(sunDir, Vector3::UNIT_Z())); 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp

    r3286 r3287  
    386386void LoadPompeiiFloor(); 
    387387 
     388void LoadOrUpdatePVSs(const Vector3 &pos); 
     389 
     390 
     391 
    388392float pvsTotalSamples = .0f; 
    389393float pvsTotalTime = .0f; 
     
    12141218        SetupEyeView(); 
    12151219         
     1220 
    12161221        // set frame related parameters for GPU programs 
    12171222        GPUProgramParameters::InitFrame(camera, light); 
     
    12421247        glEnableClientState(GL_VERTEX_ARRAY); 
    12431248 
    1244         if (usePvs) 
    1245         { 
    1246                 if (!viewCellsTree)      
    1247                 { 
    1248                         LoadVisibilitySolution(); 
    1249                         applicationTimer.Start(); 
    1250                         shotRays = visibilitySolutionInitialState; 
    1251                 } 
    1252  
    1253                 if (viewCellsTree) LoadPvs(); 
    1254         } 
     1249        if (usePvs) LoadOrUpdatePVSs(camera->GetPosition()); 
     1250 
    12551251 
    12561252        // render with the specified method (forward rendering, forward + depth, deferred) 
     
    13351331                //if (traverser->GetType() == RenderTraverser::CULL_COLLECTOR) 
    13361332                //      ((PvsCollectionRenderer *)traverser)->SetViewCell(usePvs ? viewCell : NULL); 
     1333 
     1334                //renderState.LockCullFaceEnabled(true); 
    13371335 
    13381336                // actually render the scene geometry using the specified algorithm 
     
    18051803 
    18061804                        // hack: load pvs on replay (remove later!) 
    1807                         usePvs = true; 
     1805                        //usePvs = true; 
    18081806                } 
    18091807                else 
     
    25342532        renderState.SetUseAlphaToCoverage(false); 
    25352533 
     2534        const Vector3 lightPos = light->GetDirection() * -1e3f; 
     2535        if (usePvs) LoadOrUpdatePVSs(lightPos); 
     2536 
     2537 
    25362538        // change CHC++ set of renderState variables  
    25372539        // this must be done for each change of camera because 
     
    26712673 
    26722674 
    2673 void LoadPvs() 
     2675void UpdatePvs(const Vector3 &pos) 
    26742676{ 
    26752677        viewCell = viewCellsTree->GetViewCell(camera->GetPosition()); 
     
    27982800        staticObjects.push_back(myplane); 
    27992801} 
     2802 
     2803 
     2804void LoadOrUpdatePVSs(const Vector3 &pos) 
     2805{ 
     2806        if (!viewCellsTree)      
     2807        { 
     2808                LoadVisibilitySolution(); 
     2809                applicationTimer.Start(); 
     2810                shotRays = visibilitySolutionInitialState; 
     2811        } 
     2812 
     2813        if (viewCellsTree) UpdatePvs(pos); 
     2814} 
Note: See TracChangeset for help on using the changeset viewer.