Changeset 1132 for GTP/trunk/App/Demos/Illum/Ogre/src/PRMDemo/include
- Timestamp:
- 07/13/06 08:19:24 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/PRMDemo/include/PRMDemo.h
r1127 r1132 120 120 OgreIlluminationManager::getSingleton().setMainCamera(mCamera); 121 121 OgreIlluminationManager::getSingleton().setMainViewport(mWindow->getViewport(0)); 122 OgreIlluminationManager::getSingleton().setShadowMapSize(512); 122 123 123 124 Root::getSingleton()._setCurrentSceneManager(mSceneMgr); 124 //mCamera->setPosition(0,20,40);125 mCamera->setPosition(0,100,0);125 mCamera->setPosition(0,20,40); 126 //mCamera->setPosition(0,100,0); 126 127 //mCamera->lookAt(0,-1,0); 127 128 mCamera->setFOVy(Radian(Degree(80))); … … 132 133 133 134 SceneNode* rootNode = mSceneMgr->getRootSceneNode(); 134 /* 135 135 136 SceneSerializer s(mSceneMgr); 136 137 DataStreamPtr inputStream; 137 138 inputStream = ResourceGroupManager::getSingleton().openResource("level.txt"); 138 139 s.parseScript(inputStream, ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 139 */ 140 Entity* lepcso = mSceneMgr->createEntity("lepcso","stairs.mesh");140 141 /* Entity* lepcso = mSceneMgr->createEntity("lepcso","stairs.mesh"); 141 142 SceneNode* lNode = rootNode->createChildSceneNode("l"); 142 lNode->attachObject(lepcso); 143 lNode->attachObject(lepcso);*/ 143 144 144 createPlane("p","lambert1",Vector3(0, 0,0),Vector2(100,100));145 createPlane("p","lambert1",Vector3(0,-20,0),Vector2(100,100)); 145 146 146 147 Light* mainLight = mSceneMgr->createLight("MainLight"); … … 152 153 mainLightNode->setPosition(0,0,0); 153 154 mainLight->setPosition(mainLightNode->getWorldPosition()); 154 mainLight->setDirection( 0,-1, 0);155 mainLight->setDirection(-1,-1, 0); 155 156 mainLightNode->attachObject(mainLight); 156 157
Note: See TracChangeset
for help on using the changeset viewer.