Changeset 1638 for GTP/trunk/App/Demos/Illum/Ogre/src/DiffuseTest/include
- Timestamp:
- 10/18/06 15:21:29 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/DiffuseTest/include/DiffuseTest.h
r1629 r1638 51 51 if (mInputDevice->isKeyDown(KC_UP)) 52 52 { 53 objectNode->translate(0,0,0. 5);53 objectNode->translate(0,0,0.1); 54 54 } 55 55 if (mInputDevice->isKeyDown(KC_MULTIPLY)) … … 71 71 if (mInputDevice->isKeyDown(KC_HOME)) 72 72 { 73 objectNode->translate(0,0. 5,0);73 objectNode->translate(0,0.1,0); 74 74 } 75 75 if (mInputDevice->isKeyDown(KC_END)) 76 76 { 77 objectNode->translate(0,-0. 5,0);77 objectNode->translate(0,-0.1,0); 78 78 } 79 79 if (mInputDevice->isKeyDown(KC_DOWN)) 80 80 { 81 objectNode->translate(0,0,-0. 5);81 objectNode->translate(0,0,-0.1); 82 82 } 83 83 if (mInputDevice->isKeyDown(KC_RIGHT)) … … 578 578 void createScene3() 579 579 { 580 OgreIlluminationManager::getSingleton().setFocusingSM(false); 581 OgreIlluminationManager::getSingleton().setShadowMapSize(1024); 582 // OgreIlluminationManager::getSingleton().setBlurShadowMap(true); 580 583 mSceneMgr->setAmbientLight(ColourValue(0.505 * 0.2, 0.897 * 0.2, 0.914 * 0.2)); 581 584 582 585 SceneNode* rootNode = mSceneMgr->getRootSceneNode(); 583 586 584 Entity* object = mSceneMgr->createEntity("object", " santa.mesh");587 Entity* object = mSceneMgr->createEntity("object", "buddha.mesh"); 585 588 object->setMaterialName("GameTools/Diffuse/use"); 586 589 //object->setMaterialName("GameTools/Diffuse2"); 587 590 objectNode = rootNode->createChildSceneNode(); 588 591 objectNode->attachObject(object); 589 objectNode->scale(0. 1,0.1,0.1);592 objectNode->scale(0.5,0.5,0.5); 590 593 objectNode->rotate(Vector3(0,1,0),Radian(Math::PI)); 591 objectNode->setPosition(0,0, 2);594 objectNode->setPosition(0,0,0); 592 595 objectNode->_updateBounds(); 593 596 … … 622 625 mainBlueLight->setDiffuseColour(ColourValue(0.395,0.766, 1.0)); 623 626 mainBlueLight->setPowerScale(5.0); 624 mainBlueLight->setSpotlightRange(Degree(20),Degree(90)); 627 mainBlueLight->setSpotlightRange(Degree(0),Degree(160)); 628 mainBlueLight->setAttenuation(5, 0, 1, 0); 625 629 SceneNode* mainBlueLightNode = rootNode->createChildSceneNode(); 626 630 mainBlueLightNode->setPosition(-0.546,2.095,1.035);
Note: See TracChangeset
for help on using the changeset viewer.