Changeset 140 for trunk/VUT/work
- Timestamp:
- 06/20/05 18:57:50 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/TestCullingTerrain/TerrainFrameListener.cpp
r139 r140 360 360 if (fromPoint) 361 361 { 362 Vector3 point;363 362 mVisibilityManager->GetQueryManager()-> 364 ComputeFromPointVisibility(point, &visibleNodes, &visibleGeometry, relativeVisibility); 363 ComputeFromPointVisibility(mCamNode->getPosition(), &visibleNodes, 364 &visibleGeometry, relativeVisibility); 365 365 } 366 366 else … … 430 430 void TerrainFrameListener::Clamp2Terrain() 431 431 { 432 // clamp to terrain432 // clamp camera to terrain 433 433 Vector3 camPos = mCamNode->getPosition(); 434 434 Vector3 queryResult; … … 437 437 Vector3(camPos.x, 5000.0f, camPos.z), Vector3::NEGATIVE_UNIT_Y)) 438 438 { 439 mCamNode->setPosition(camPos.x, queryResult.y + 10, camPos.z); 439 const int overTerrain = 200; 440 mCamNode->setPosition(camPos.x, queryResult.y + overTerrain, camPos.z); 440 441 } 441 442 } … … 494 495 mFrameInfo.push_back(info); 495 496 496 /* std::stringstream d; 497 d << StringConverter::toString(info.position) << " " << StringConverter::toString(info.orientation); 498 LogManager::getSingleton().logMessage(d.str()); */ 497 // std::stringstream d; d << StringConverter::toString(info.position) << " " << StringConverter::toString(info.orientation); 498 // LogManager::getSingleton().logMessage(d.str()); 499 499 } 500 500 ifstr.close();
Note: See TracChangeset
for help on using the changeset viewer.