Ignore:
Timestamp:
01/07/09 14:22:34 (15 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r3252 r3256  
    265265 
    266266int sCurrentMrtSet = 0; 
    267  
    268267static Matrix4x4 invTrafo = IdentityMatrix(); 
    269  
    270268float mouseMotion = 0.2f; 
     269 
     270float viewCellsScaleFactor = 1.0f; 
    271271 
    272272 
     
    457457 
    458458                env.GetBoolParam(string("usePvs"), usePvs); 
    459  
    460459                env.GetBoolParam(string("useSkylightForIllum"), useSkylightForIllum); 
     460                env.GetFloatParam(string("viewCellsScaleFactor"), viewCellsScaleFactor); 
    461461 
    462462                //env.GetStringParam(string("modelPath"), model_path); 
     
    492492                cout << "use PVSs: " << usePvs << endl; 
    493493                cout << "visibility solution: " << visibilitySolution << endl; 
     494                cout << "view cells scale factor: " << viewCellsScaleFactor << endl; 
    494495                cout << "use skylight for illumination: " << useSkylightForIllum << endl; 
    495496 
     
    523524 
    524525        SceneEntity::SetUseLODs(useLODs); 
     526 
    525527 
    526528        if (!useFullScreen) 
     
    11921194        if (1 && usePvs) 
    11931195        { 
    1194                 if (!viewCellsTree) LoadVisibilitySolution(); 
    1195                 LoadPvs(); 
     1196                if (!viewCellsTree)     LoadVisibilitySolution(); 
     1197 
     1198                if (viewCellsTree) 
     1199                { 
     1200                        viewCellsTree->SetScaleFactor(viewCellsScaleFactor); 
     1201                        LoadPvs(); 
     1202                } 
    11961203        } 
    11971204 
Note: See TracChangeset for help on using the changeset viewer.