Changeset 2216 for GTP/trunk/App/Demos/Illum/Ogre
- Timestamp:
- 03/09/07 10:30:45 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/PRMDemo/include/PRMDemo.h
r2201 r2216 49 49 bool frameStarted(const FrameEvent& evt) 50 50 { 51 /*light->setDirection(mCamera->getDirection());51 /* light->setDirection(mCamera->getDirection()); 52 52 light->setPosition(mCamera->getPosition()); 53 53 mainLightNode->setPosition(mCamera->getPosition());*/ … … 227 227 OgreIlluminationManager::getSingleton().setMainViewport(mWindow->getViewport(0)); 228 228 OgreIlluminationManager::getSingleton().setShadowMapSize(512); 229 OgreIlluminationManager::getSingleton().setShadowMapMaterialName("GTP/Basic/D epthCCW");230 OgreIlluminationManager::getSingleton().setFocusingSM( true);231 OgreIlluminationManager::getSingleton().setShadowMapSize( 700);232 OgreIlluminationManager::getSingleton().setBlurShadowMap( true);233 OgreIlluminationManager::getSingleton().setUseLISPSM( true);229 OgreIlluminationManager::getSingleton().setShadowMapMaterialName("GTP/Basic/Distance_Normalized"); 230 OgreIlluminationManager::getSingleton().setFocusingSM(false); 231 OgreIlluminationManager::getSingleton().setShadowMapSize(512); 232 OgreIlluminationManager::getSingleton().setBlurShadowMap(false); 233 OgreIlluminationManager::getSingleton().setUseLISPSM(false); 234 234 235 235 Root::getSingleton()._setCurrentSceneManager(mSceneMgr); 236 mCamera->setPosition( 0,0,0);236 mCamera->setPosition(32,0,0); 237 237 //mCamera->setPosition(0,100,0); 238 238 //mCamera->lookAt(0,-1,0); … … 262 262 mainLightNode = rootNode->createChildSceneNode(); 263 263 264 mainLightNode->setPosition( 0,0,0);265 mainLight->setPosition( 0,0,0);264 mainLightNode->setPosition(32,1,0.9); 265 mainLight->setPosition(32,1,0.9); 266 266 mainLight->setPowerScale(5); 267 mainLight->setDirection( 0, 0, 1);267 mainLight->setDirection(-1, 0, 0); 268 268 mainLight->setSpotlightOuterAngle(Radian(Degree(90))); 269 mainLight->setAttenuation( 20, 0, 0, 0);269 mainLight->setAttenuation(50, 0, 1, 0); 270 270 mainLightNode->attachObject(mainLight); 271 271
Note: See TracChangeset
for help on using the changeset viewer.