Changeset 2163 for GTP/trunk/App/Demos/Illum/Ogre/src/PRMDemo
- Timestamp:
- 02/26/07 09:48:36 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/PRMDemo/include/PRMDemo.h
r2158 r2163 40 40 { 41 41 framecount = 0; 42 mMoveSpeed /= 5 .0;42 mMoveSpeed /= 50.0; 43 43 } 44 44 … … 102 102 103 103 Root::getSingleton()._setCurrentSceneManager(mSceneMgr); 104 mCamera->setPosition(0, 20,40);104 mCamera->setPosition(0,0,0); 105 105 //mCamera->setPosition(0,100,0); 106 106 //mCamera->lookAt(0,-1,0); 107 107 mCamera->setFOVy(Radian(Degree(80))); 108 //mCamera->setFarClipDistance(1000); 108 mCamera->setNearClipDistance(0.01); 109 mCamera->setFarClipDistance(1000); 109 110 // Set ambient light 110 111 mSceneMgr->setAmbientLight(ColourValue(0.1, 0.1, 0.1)); 111 mSceneMgr->setSkyBox(true, "Examples/EveningSkyBox" );112 112 mSceneMgr->setSkyBox(true, "Examples/EveningSkyBox", 500); 113 113 114 SceneNode* rootNode = mSceneMgr->getRootSceneNode(); 114 115 115 /*116 116 117 SceneSerializer s(mSceneMgr); 117 118 DataStreamPtr inputStream; 118 inputStream = ResourceGroupManager::getSingleton().openResource(" level.txt");119 inputStream = ResourceGroupManager::getSingleton().openResource("towers2.level"); 119 120 s.parseScript(inputStream, ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 120 */121 Entity* tower = mSceneMgr->createEntity("tower","tower.mesh");121 122 /* Entity* tower = mSceneMgr->createEntity("tower","tower.mesh"); 122 123 SceneNode* tNode = rootNode->createChildSceneNode("tower"); 123 124 tNode->setScale(10,10,10); … … 129 130 tNode2->setScale(10,10,10); 130 131 tNode2->setPosition(0,0,100); 131 tNode2->attachObject(tower2); 132 tNode2->attachObject(tower2);*/ 132 133 133 134 /* Entity* tower3 = mSceneMgr->createEntity("tower3","tower.mesh");
Note: See TracChangeset
for help on using the changeset viewer.