Changeset 2418 for GTP/trunk/App/Demos
- Timestamp:
- 06/06/07 19:19:42 (17 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/Common/include/FPSPlayer.h
r2411 r2418 62 62 bool mDebug; 63 63 64 virtual String getAnimStateName(PlayerAnimState as, int option = 0){return " walk";}64 virtual String getAnimStateName(PlayerAnimState as, int option = 0){return "stand";} 65 65 virtual void setAnimState(PlayerAnimState as) 66 66 { -
GTP/trunk/App/Demos/Illum/Ogre/src/Common/src/FPSPlayer.cpp
r2415 r2418 95 95 { 96 96 mCharacterMeshEntity = mSceneManager->createEntity(mName, meshname); 97 mCharacterMeshEntity->setCastShadows( true);97 mCharacterMeshEntity->setCastShadows(false); 98 98 mMeshScale = meshscale; 99 99 mCurrentAnimState = PLAYERANIMSTATE_STAND; … … 242 242 if(mCharacterController ) 243 243 ((MyCharMoveController*)mCharacterController)->movespeed = 1.5; 244 mPlayerCharacter->addMovement(Character::DR_StepRight);244 //mPlayerCharacter->addMovement(Character::DR_StepRight); 245 245 //} 246 246 247 247 } 248 if(mCharacterMeshEntity)249 setAnimState(PLAYERANIMSTATE_WALK);248 //if(mCharacterMeshEntity) 249 //setAnimState(PLAYERANIMSTATE_WALK); 250 250 } 251 251 -
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.