Changeset 1879 for GTP/trunk/App/Demos/Illum/Ogre/src/DiffuseTest
- Timestamp:
- 12/11/06 16:30:08 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/DiffuseTest/include/DiffuseTest.h
r1868 r1879 368 368 } 369 369 370 void createCamera(void) 371 { 372 // Create the camera 373 mCamera = mSceneMgr->createCamera("PlayerCam"); 374 375 SceneNode* camNode = mSceneMgr->getRootSceneNode()->createChildSceneNode("mainCameraNode"); 376 camNode->attachObject(mCamera); 377 //camNode->setPosition(Vector3(0,1,0)); 378 // Position it at 500 in Z direction 379 //mCamera->setPosition(Vector3(0,0,500)); 380 // Look back along -Z 381 //mCamera->lookAt(Vector3(0,0,-300)); 382 mCamera->setNearClipDistance(5); 383 384 } 370 385 371 386 void createScene(void) 372 387 { 373 388 374 createPostproc();389 //createPostproc(); 375 390 376 391 OgreIlluminationManager::getSingleton().setMainCamera(mCamera); … … 381 396 Root::getSingleton()._setCurrentSceneManager(mSceneMgr); 382 397 383 mCamera->setPosition(0,1,0);398 //mCamera->setPosition(0,1,0); 384 399 mCamera->setFOVy(Radian(Degree(80))); 385 400 mCamera->setFarClipDistance(200); … … 643 658 SceneNode* roomNode = rootNode->createChildSceneNode(); 644 659 roomNode->attachObject(room); 645 roomNode->_updateBounds(); 660 roomNode->_updateBounds(); 661 662 663 capture->addAnimableNode(objectNode); 664 capture->addAnimableNode(mCamera->getParentSceneNode()); 646 665 647 666 mSceneMgr->setShadowTechnique(SHADOWTYPE_NONE);
Note: See TracChangeset
for help on using the changeset viewer.