Changeset 2151 for GTP/trunk/App/Demos/Illum/Ogre/src/PRMDemo/include
- Timestamp:
- 02/22/07 16:35:30 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/PRMDemo/include/PRMDemo.h
r2025 r2151 39 39 40 40 { 41 framecount = 0; 41 framecount = 0; 42 mMoveSpeed /= 5.0; 42 43 } 43 44 … … 69 70 ResourceGroupManager::getSingleton().initialiseResourceGroup("Bootstrap"); 70 71 ResourceGroupManager::getSingleton().initialiseResourceGroup("General"); 72 ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_Basic"); 71 73 ResourceGroupManager::getSingleton().initialiseResourceGroup("PostProc"); 74 ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_Demo"); 72 75 } 73 76 … … 85 88 } 86 89 90 void chooseSceneManager() 91 { 92 mSceneMgr = mRoot->createSceneManager("OcclusionCullingSceneManager"); 93 } 87 94 88 95 void createScene(void) … … 101 108 //mCamera->setFarClipDistance(1000); 102 109 // Set ambient light 103 mSceneMgr->setAmbientLight(ColourValue( 1, 1,1));104 mSceneMgr->setSkyBox(true, "Examples/ MorningSkyBox");110 mSceneMgr->setAmbientLight(ColourValue(0.1, 0.1, 0.1)); 111 mSceneMgr->setSkyBox(true, "Examples/EveningSkyBox"); 105 112 106 113 SceneNode* rootNode = mSceneMgr->getRootSceneNode(); 107 114 115 /* 108 116 SceneSerializer s(mSceneMgr); 109 117 DataStreamPtr inputStream; 110 118 inputStream = ResourceGroupManager::getSingleton().openResource("level.txt"); 111 119 s.parseScript(inputStream, ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 120 */ 121 Entity* tower = mSceneMgr->createEntity("tower","tower.mesh"); 122 SceneNode* tNode = rootNode->createChildSceneNode("tower"); 123 tNode->setScale(10,10,10); 124 tNode->attachObject(tower); 112 125 113 126 /* Entity* lepcso = mSceneMgr->createEntity("lepcso","stairs.mesh"); … … 115 128 lNode->attachObject(lepcso);*/ 116 129 117 createPlane("p","lambert1",Vector3(0,-20,0),Vector2(100,100));130 //createPlane("p","lambert1",Vector3(0,-20,0),Vector2(100,100)); 118 131 119 132 Light* mainLight = mSceneMgr->createLight("MainLight"); … … 123 136 mainLightNode = rootNode->createChildSceneNode(); 124 137 125 mainLightNode->setPosition(0,0,0); 126 mainLight->setPosition(mainLightNode->getWorldPosition()); 127 mainLight->setDirection(-1,-1, 0); 138 mainLightNode->setPosition(10,10,0); 139 mainLight->setPosition(10,10,0); 140 mainLight->setPowerScale(5); 141 mainLight->setDirection(-1,-1, -1); 128 142 mainLightNode->attachObject(mainLight); 129 143
Note: See TracChangeset
for help on using the changeset viewer.