Changeset 2395 for GTP/trunk/App/Demos/Illum
- Timestamp:
- 05/28/07 16:29:31 (17 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/GameToolsToneMapDemo/include/GameToolsToneMapDemo.h
r2301 r2395 80 80 void createPostproc() 81 81 { 82 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0),82 /*CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 83 83 "GTP/PostProc/Glow"); 84 84 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 85 "GTP/PostProc/Glow", true); 85 "GTP/PostProc/Glow", true);*/ 86 86 87 87 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), -
GTP/trunk/App/Demos/Illum/Ogre/src/Moria/include/Moria.h
r2391 r2395 159 159 { 160 160 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 161 "GTP/Moria/PostProc/DoF"); 162 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 163 "GTP/Moria/PostProc/DoF", true); 164 165 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 161 166 "GTP/PostProc/Glow"); 162 167 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 163 168 "GTP/PostProc/Glow", true); 164 169 170 165 171 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 166 172 "GTP/PostProc/ToneMap"); … … 168 174 "GTP/PostProc/ToneMap", true); 169 175 170 /* CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 171 "GTP/PostProc/Plain"); 176 /* 177 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 178 "GTP/PostProc/MotionBlur"); 172 179 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 173 "GTP/PostProc/ Plain", true); */180 "GTP/PostProc/MotionBlur", true); */ 174 181 175 182 } … … 214 221 DataStreamPtr inputStream; 215 222 inputStream = ResourceGroupManager::getSingleton().openResource("moria.level"); //towers2.level 216 World* NXWorld = new World("FrameListener: yes, log: html"); 223 World* NXWorld = new World("FrameListener: no, log: html"); 224 NXWorld->getPhysXDriver()->createFrameListener(25); 217 225 NXScene = NXWorld->createScene("Main", mSceneMgr, "gravity: yes, floor: no"); 218 226 s.setScene(NXScene); … … 258 266 259 267 mainLightNode->setPosition(15,5,15); 260 mainLight->setPowerScale( 20);268 mainLight->setPowerScale(100); 261 269 //mainLight->setDirection(1,0, 0); 262 270 mainLightNode->attachObject(mainLight); 263 271 //mainLight->setSpotlightRange(Degree(0),Degree(120)); 264 mainLight->setAttenuation( 1000.0, 0, 8, 0);272 mainLight->setAttenuation(200.0, 0, 0, 2); 265 273 /* 266 274 Light* blueLight = mSceneMgr->createLight("blueLight"); … … 291 299 mAnimState->setEnabled(true); 292 300 293 gFPSPlayer = new FPSPlayer(NXScene, mSceneMgr, Vector3(0. 1, 0.6, 0.1), Vector3(5, 10, 5), 0.5, mCamera);294 gFPSPlayer->addPlayerMesh("FPSarm.mesh", 0.0 05, true);301 gFPSPlayer = new FPSPlayer(NXScene, mSceneMgr, Vector3(0.5, 1.8, 0.3), Vector3(15, 1, 15), 1.6, mCamera, false); 302 gFPSPlayer->addPlayerMesh("FPSarm.mesh", 0.02, true); 295 303 gFPSPlayer->addWeaponModel("sword.mesh", "joint28"); 296 304 297 for(float i = 0; i< 10; i++)305 for(float i = 0; i< 7; i++) 298 306 { 307 float size = 0.5; 299 308 ActorParams ac; 300 309 ac.setToDefault(); 301 ac.mass = 1 0.0;302 ac.nodescale = 1.0;303 NXScene->createBody("cube.mesh",304 new CubeShape( 1, 1, 1),305 Vector3(3, i,3),310 ac.mass = 1.0; 311 ac.nodescale = size; 312 Body* b = NXScene->createBody("cube.mesh", 313 new CubeShape(size, size, size), 314 Vector3(3,size/2.0 + size * (i + 0.01),3), 306 315 ac); 316 b->setCharacterCollisionGroup(NX_CHARACTER_COL_GROUP_PUSHABLE); 307 317 } 308 309 /* 310 ParticleSystem* pSys1 = mSceneMgr->createParticleSystem("psys1", "MoriaDust"); 318 319 /* ParticleSystem* pSys1 = mSceneMgr->createParticleSystem("psys1", "MoriaDust"); 311 320 pSys1->setKeepParticlesInLocalSpace(true); 312 321 pSysNode = rootNode->createChildSceneNode("psys1"); 313 322 pSysNode->attachObject(pSys1); 314 pSysNode->setPosition(0,0,0); 315 */ 323 pSysNode->setPosition(0,0,0);*/ 324 316 325 317 326 OgreIlluminationManager::getSingleton().initTechniques(); … … 343 352 mFrameListener= new MoriaDemoFrameListener(mWindow, 344 353 mCamera, mainLightNode, mainLight, pSysNode ); 345 mFrameListener->setPriority( 2);354 mFrameListener->setPriority(10); 346 355 mRoot->addFrameListener(mFrameListener); 347 gFPSPlayer->setPriority( 3);356 gFPSPlayer->setPriority(20); 348 357 mRoot->addFrameListener(gFPSPlayer); 349 OgreIlluminationManager::getSingleton().setPriority( 4);358 OgreIlluminationManager::getSingleton().setPriority(30); 350 359 mRoot->addFrameListener(&OgreIlluminationManager::getSingleton()); 351 360
Note: See TracChangeset
for help on using the changeset viewer.