Changeset 3256 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
- Timestamp:
- 01/07/09 14:22:34 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r3252 r3256 265 265 266 266 int sCurrentMrtSet = 0; 267 268 267 static Matrix4x4 invTrafo = IdentityMatrix(); 269 270 268 float mouseMotion = 0.2f; 269 270 float viewCellsScaleFactor = 1.0f; 271 271 272 272 … … 457 457 458 458 env.GetBoolParam(string("usePvs"), usePvs); 459 460 459 env.GetBoolParam(string("useSkylightForIllum"), useSkylightForIllum); 460 env.GetFloatParam(string("viewCellsScaleFactor"), viewCellsScaleFactor); 461 461 462 462 //env.GetStringParam(string("modelPath"), model_path); … … 492 492 cout << "use PVSs: " << usePvs << endl; 493 493 cout << "visibility solution: " << visibilitySolution << endl; 494 cout << "view cells scale factor: " << viewCellsScaleFactor << endl; 494 495 cout << "use skylight for illumination: " << useSkylightForIllum << endl; 495 496 … … 523 524 524 525 SceneEntity::SetUseLODs(useLODs); 526 525 527 526 528 if (!useFullScreen) … … 1192 1194 if (1 && usePvs) 1193 1195 { 1194 if (!viewCellsTree) LoadVisibilitySolution(); 1195 LoadPvs(); 1196 if (!viewCellsTree) LoadVisibilitySolution(); 1197 1198 if (viewCellsTree) 1199 { 1200 viewCellsTree->SetScaleFactor(viewCellsScaleFactor); 1201 LoadPvs(); 1202 } 1196 1203 } 1197 1204
Note: See TracChangeset
for help on using the changeset viewer.