Changeset 2423 for GTP/trunk/App/Demos/Illum/Ogre/src/PRMDemo
- Timestamp:
- 06/08/07 00:06:06 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/PRMDemo/include/PRMDemo.h
r2411 r2423 59 59 float dt = evt.timeSinceLastFrame / 4.0; 60 60 t += dt; 61 61 /* 62 62 Vector3 pos(30 * sin(t), 1, 30 * cos(t)); 63 blueLight->getParentSceneNode()->setPosition(pos);64 Vector3 dir = pos;63 light->getParentSceneNode()->setPosition(pos); 64 Vector3 dir = -pos; 65 65 dir.normalise(); 66 blueLight->setDirection(dir);66 light->setDirection(dir);*/ 67 67 68 68 … … 245 245 246 246 Root::getSingleton()._setCurrentSceneManager(mSceneMgr); 247 mCamera->setPosition(32,0,0); 247 mCamera->setPosition(32,0.68,11); 248 //mCamera->setPosition(50,35,-2); 249 //mCamera->lookAt(0,0,0); 248 250 //mCamera->setPosition(0,100,0); 249 251 //mCamera->lookAt(0,-1,0); … … 262 264 inputStream = ResourceGroupManager::getSingleton().openResource("processed.level"); //towers2.level 263 265 s.parseScript(inputStream, ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 264 s.parseEntryPoints(" prmEntryPoints.text");266 s.parseEntryPoints("SpacePrmEntryPoints.text"); 265 267 266 268 //createPlane("p","GTP/Basic/ShadowReceiver/Depth",Vector3(0,-0.3,0),Vector2(150,150)); 267 /* 269 268 270 mainLight = mSceneMgr->createLight("MainLight"); 269 271 mainLight->setType(Light::LT_SPOTLIGHT); … … 278 280 mainLight->setDirection(-1, 0, 0); 279 281 mainLight->setSpotlightOuterAngle(Radian(Degree(90))); 282 mainLight->setSpotlightFalloff(1); 280 283 mainLight->setAttenuation(200, 0, 0, 1); 281 284 mainLightNode->attachObject(mainLight); 282 */ 285 /* 283 286 blueLight = mSceneMgr->createLight("BlueLight"); 284 287 blueLight->setType(Light::LT_SPOTLIGHT); 285 288 blueLight->setCastShadows(true); 286 blueLight->setDiffuseColour(ColourValue( 1,1,1,1));289 blueLight->setDiffuseColour(ColourValue(0.3,0.5,1.0,1)); 287 290 blueLight->setSpecularColour(ColourValue::White); 288 291 SceneNode* blueLightNode = rootNode->createChildSceneNode(); … … 291 294 //blueLight->setPosition(-30,1,0); 292 295 blueLight->setPowerScale(200); 293 //blueLight->setDirection(1, 0, 0);294 blueLight->setSpotlightOuterAngle(Radian(Degree( 90)));296 blueLight->setDirection(1, 0, 0); 297 blueLight->setSpotlightOuterAngle(Radian(Degree(160))); 295 298 blueLight->setSpotlightFalloff(1); 296 299 blueLight->setAttenuation(2000, 0, 0, 1); 297 blueLightNode->attachObject(blueLight); 300 blueLightNode->attachObject(blueLight); */ 298 301 299 302
Note: See TracChangeset
for help on using the changeset viewer.