Changeset 345 for trunk/VUT/work
- Timestamp:
- 10/21/05 19:53:30 (19 years ago)
- Location:
- trunk/VUT/work
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/TestCullingTerrain/TerrainFrameListener.cpp
r343 r345 49 49 Real TerrainFrameListener::msObjectScales[] = 50 50 { 51 0. 1,51 0.07, 52 52 0.03, 53 53 //0.1, … … 191 191 192 192 // arb or nv queries 193 mSceneMgr->setOption("UseArbQueries", &mUseArbQueries);193 //mSceneMgr->setOption("UseArbQueries", &mUseArbQueries); 194 194 195 195 // reset statistics -
trunk/VUT/work/TestCullingTerrain/TestCullingTerrainApplication.cpp
r254 r345 302 302 303 303 // if no objects in file, we generate new objects 304 if (!mTerrainContentGenerator->LoadObjects("objects.out"))305 {304 //if (!mTerrainContentGenerator->LoadObjects("objects.out")) 305 //{ 306 306 // the objects are generated randomly distributed over the terrain 307 307 generateScene(900, 0); // create soldiers, trees, ninjas 308 308 generateScene(500, 1); 309 309 generateScene(100, 2); 310 }310 //} 311 311 312 312 // no limitations on height => it is possible for the user to put single … … 317 317 void TestCullingTerrainApplication::generateScene(int num, int objectType) 318 318 { 319 Vector3 scale(TerrainFrameListener::msObjectScales[objectType], 320 TerrainFrameListener::msObjectScales[objectType], 321 TerrainFrameListener::msObjectScales[objectType]); 319 float val = TerrainFrameListener::msObjectScales[objectType]; 320 Vector3 scale(val, val, val); 322 321 323 322 // to provide much occlusion, … … 325 324 mTerrainContentGenerator->SetMinPos(Vector3(mTerrainMinPos)); 326 325 mTerrainContentGenerator->SetMaxPos(Vector3(mTerrainMaxPos.x, 75.0f, mTerrainMaxPos.z)); 327 326 std::stringstream d; d << "objscale: " << scale[0]; 327 Ogre::LogManager::getSingleton().logMessage(d.str()); 328 328 mTerrainContentGenerator->SetScale(scale); 329 329 mTerrainContentGenerator->SetOffset(TerrainFrameListener::msObjectTerrainOffsets[objectType]); -
trunk/VUT/work/iv/IVFrameListener.cpp
r343 r345 126 126 mSceneMgr->setOption("DelayRenderTransparents", &delayRenderTransparents); 127 127 mSceneMgr->setOption("UseDepthPass", &mUseDepthPass); 128 mSceneMgr->setOption("UseArbQueries", &mUseArbQueries);128 //mSceneMgr->setOption("UseArbQueries", &mUseArbQueries); 129 129 130 130 mSceneMgr->setOption("ShowOctree", &mShowOctree);
Note: See TracChangeset
for help on using the changeset viewer.