Changeset 2334 for GTP/trunk/App/Demos/Illum/Ogre/src/PRMDemo/include
- Timestamp:
- 04/24/07 14:05:42 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/PRMDemo/include/PRMDemo.h
r2296 r2334 81 81 ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_Basic"); 82 82 ResourceGroupManager::getSingleton().initialiseResourceGroup("PostProc"); 83 ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_Demo");83 //ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_Demo"); 84 84 ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_PathMapDemo"); 85 85 } … … 163 163 OgreIlluminationManager::getSingleton().initTechniques(); 164 164 }*/ 165 165 /* 166 166 void createScene(void) ///TOWERS 167 167 { … … 214 214 215 215 OgreIlluminationManager::getSingleton().initTechniques(); 216 } /*216 }*/ 217 217 218 218 void createScene(void) ///PATHMAP Hangar … … 256 256 mainLight = mSceneMgr->createLight("MainLight"); 257 257 mainLight->setType(Light::LT_SPOTLIGHT); 258 mainLight->setCastShadows( true);259 mainLight->setDiffuseColour(ColourValue ::White);258 mainLight->setCastShadows(false); 259 mainLight->setDiffuseColour(ColourValue(0.5,0.8,1,1)); 260 260 mainLight->setSpecularColour(ColourValue::White); 261 261 mainLightNode = rootNode->createChildSceneNode(); 262 262 263 mainLightNode->setPosition(3 2,1,0.0);263 mainLightNode->setPosition(30,1,0.0); 264 264 mainLight->setPosition(30,0,0); 265 265 mainLight->setPowerScale(300); … … 268 268 mainLight->setAttenuation(50, 0, 1, 0); 269 269 mainLightNode->attachObject(mainLight); 270 271 272 273 274 Light* blueLight = mSceneMgr->createLight("BlueLight"); 275 blueLight->setType(Light::LT_SPOTLIGHT); 276 blueLight->setCastShadows(false); 277 blueLight->setDiffuseColour(ColourValue(0.0,0.1,1,1)); 278 blueLight->setSpecularColour(ColourValue::White); 279 SceneNode* blueLightNode = rootNode->createChildSceneNode(); 280 281 blueLightNode->setPosition(-30,1,0.0); 282 blueLight->setPosition(-30,0,0); 283 blueLight->setPowerScale(300); 284 blueLight->setDirection(1, 0, 0); 285 blueLight->setSpotlightOuterAngle(Radian(Degree(90))); 286 blueLight->setAttenuation(50, 0, 1, 0); 287 blueLightNode->attachObject(blueLight); 288 270 289 271 290 OgreIlluminationManager::getSingleton().initTechniques(); 272 } */291 } 273 292 274 293 void createPlane(Ogre::String _name, Ogre::String _material, Ogre::Vector3 _pos, Ogre::Vector2 _size, Ogre::Vector2 _subdivisions = Ogre::Vector2(1,1))
Note: See TracChangeset
for help on using the changeset viewer.