Changeset 2418 for GTP/trunk/App/Demos/Illum/Ogre/src/Moria/include
- Timestamp:
- 06/06/07 19:19:42 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/Moria/include/Moria.h
r2415 r2418 70 70 float thisTime = (float) Root::getSingleton().getTimer()->getMilliseconds() / 2000.0f; 71 71 thisTime= 0; 72 mainLightNode->setPosition(Vector3(2*cos(thisTime), 2, 2 * sin(thisTime)) + Vector3(5, 0, 5));72 //mainLightNode->setPosition(Vector3(2*cos(thisTime), 2, 2 * sin(thisTime)) + Vector3(5, 0, 5)); 73 73 Vector3 pos = light->getDerivedPosition(); 74 74 pos.normalise(); … … 170 170 mTimeUntilNextToggle = 0.2; 171 171 } 172 173 if (mInputDevice->isKeyDown(KC_I)) 174 { 175 light->getParentSceneNode()->setPosition( 176 light->getParentSceneNode()->getPosition() 177 + Vector3(0.2,0,0)); 178 } 179 if (mInputDevice->isKeyDown(KC_K)) 180 { 181 light->getParentSceneNode()->setPosition( 182 light->getParentSceneNode()->getPosition() 183 + Vector3(-0.2,0,0)); 184 } 185 if (mInputDevice->isKeyDown(KC_J)) 186 { 187 light->getParentSceneNode()->setPosition( 188 light->getParentSceneNode()->getPosition() 189 + Vector3(0,0,0.2)); 190 } 191 if (mInputDevice->isKeyDown(KC_L)) 192 { 193 light->getParentSceneNode()->setPosition( 194 light->getParentSceneNode()->getPosition() 195 + Vector3(0,0,-0.2)); 196 } 197 172 198 173 199 … … 290 316 //mCamera->setPosition(0,100,0); 291 317 //mCamera->lookAt(0,-1,0); 292 mCamera->setFOVy(Radian(Degree( 90)));318 mCamera->setFOVy(Radian(Degree(100))); 293 319 mCamera->setNearClipDistance(0.001); 294 320 mCamera->setFarClipDistance(150); … … 351 377 mainLightNode->attachObject(mainLight); 352 378 //mainLight->setSpotlightRange(Degree(0),Degree(120)); 353 mainLight->setAttenuation(200.0, 0, 0, 2);379 mainLight->setAttenuation(200.0, 0, 0, 1); 354 380 /* 355 381 Light* blueLight = mSceneMgr->createLight("blueLight"); … … 385 411 gFPSPlayer->addWeaponModel("sword.mesh", "joint28"); 386 412 387 PlayerCharacter* troll = new PlayerCharacter("troll1", NXScene, mSceneMgr, Vector3(1.5, 3.0, 1.2), Vector3( 5, 10,5), false);413 PlayerCharacter* troll = new PlayerCharacter("troll1", NXScene, mSceneMgr, Vector3(1.5, 3.0, 1.2), Vector3(15, 10, 15), false); 388 414 troll->addPlayerMesh("troll.mesh", 0.05, false); 389 415 /*
Note: See TracChangeset
for help on using the changeset viewer.