Changeset 1671 for GTP/trunk/App/Demos/Illum/Ogre/src/DiffuseTest
- Timestamp:
- 10/23/06 23:28:16 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/DiffuseTest/include/DiffuseTest.h
r1638 r1671 520 520 SceneNode* rootNode = mSceneMgr->getRootSceneNode(); 521 521 522 Entity* object = mSceneMgr->createEntity("object", " santa.mesh");522 Entity* object = mSceneMgr->createEntity("object", "buddha.mesh"); 523 523 object->setMaterialName("GameTools/Diffuse/use"); 524 524 //object->setMaterialName("GameTools/Diffuse2"); 525 525 objectNode = rootNode->createChildSceneNode(); 526 526 objectNode->attachObject(object); 527 objectNode->scale( 0.5,0.5,0.5);527 objectNode->scale(1.8,1.8,1.8); 528 528 objectNode->rotate(Vector3(0,1,0),Radian(Math::PI)); 529 objectNode->setPosition(0,0, 2);529 objectNode->setPosition(0,0,0); 530 530 objectNode->_updateBounds(); 531 531 … … 579 579 { 580 580 OgreIlluminationManager::getSingleton().setFocusingSM(false); 581 OgreIlluminationManager::getSingleton().setShadowMapSize(1024); 582 // OgreIlluminationManager::getSingleton().setBlurShadowMap(true); 581 OgreIlluminationManager::getSingleton().setShadowMapSize(512); 582 OgreIlluminationManager::getSingleton().setBlurShadowMap(true); 583 OgreIlluminationManager::getSingleton().setShadowMapMaterialName("GameTools/ShadowMapDistance"); 583 584 mSceneMgr->setAmbientLight(ColourValue(0.505 * 0.2, 0.897 * 0.2, 0.914 * 0.2)); 584 585 585 586 SceneNode* rootNode = mSceneMgr->getRootSceneNode(); 586 587 587 588 Entity* object = mSceneMgr->createEntity("object", "buddha.mesh"); 588 589 object->setMaterialName("GameTools/Diffuse/use"); 589 //object->setMaterialName("GameTools/Diffuse 2");590 //object->setMaterialName("GameTools/DiffuseP2P"); 590 591 objectNode = rootNode->createChildSceneNode(); 591 592 objectNode->attachObject(object); 592 objectNode->scale(0. 5,0.5,0.5);593 objectNode->scale(0.4,0.4,0.4); 593 594 objectNode->rotate(Vector3(0,1,0),Radian(Math::PI)); 594 595 objectNode->setPosition(0,0,0); … … 626 627 mainBlueLight->setPowerScale(5.0); 627 628 mainBlueLight->setSpotlightRange(Degree(0),Degree(160)); 628 mainBlueLight->setAttenuation( 5, 0, 1, 0);629 mainBlueLight->setAttenuation(2.5, 0, 1, 0); 629 630 SceneNode* mainBlueLightNode = rootNode->createChildSceneNode(); 630 631 mainBlueLightNode->setPosition(-0.546,2.095,1.035);
Note: See TracChangeset
for help on using the changeset viewer.