Changeset 2025 for GTP/trunk/App/Demos/Illum
- Timestamp:
- 01/23/07 08:57:19 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/src
- Files:
-
- 8 added
- 16 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/CausticTest/include/CausticTest.h
r1691 r2025 147 147 SceneNode* sphereNode; 148 148 149 void loadResources(void) 150 { 151 // Initialise, parse scripts etc 152 ResourceGroupManager::getSingleton().initialiseResourceGroup("Bootstrap"); 153 ResourceGroupManager::getSingleton().initialiseResourceGroup("General"); 154 ResourceGroupManager::getSingleton().initialiseResourceGroup("PostProc"); 155 } 156 149 157 void createPostproc() 150 { 158 { 151 159 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 152 "G ameTools/Glow");160 "GTP/PostProc/Glow"); 153 161 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 154 "GameTools/Glow", true); 155 162 "GTP/PostProc/Glow", true); 163 164 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 165 "GTP/PostProc/ToneMap"); 166 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 167 "GTP/PostProc/ToneMap", true); 156 168 } 157 169 -
GTP/trunk/App/Demos/Illum/Ogre/src/DiffuseTest/include/DiffuseTest.h
r1879 r2025 354 354 SceneNode* objectNode; 355 355 356 void loadResources(void) 357 { 358 // Initialise, parse scripts etc 359 ResourceGroupManager::getSingleton().initialiseResourceGroup("Bootstrap"); 360 ResourceGroupManager::getSingleton().initialiseResourceGroup("General"); 361 ResourceGroupManager::getSingleton().initialiseResourceGroup("PostProc"); 362 } 363 356 364 void createPostproc() 357 { 358 /*CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0),359 "G ameTools/Glow");365 { 366 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 367 "GTP/PostProc/Glow"); 360 368 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 361 "G ameTools/Glow", true);*/369 "GTP/PostProc/Glow", true); 362 370 363 371 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 364 "G ameTools/ToneMap");372 "GTP/PostProc/ToneMap"); 365 373 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 366 "GameTools/ToneMap", true); 367 374 "GTP/PostProc/ToneMap", true); 368 375 } 369 376 -
GTP/trunk/App/Demos/Illum/Ogre/src/GameToolsParticleDemo/include/GameToolsParticleDemo.h
r1590 r2025 105 105 }*/ 106 106 107 void loadResources(void) 108 { 109 // Initialise, parse scripts etc 110 ResourceGroupManager::getSingleton().initialiseResourceGroup("Bootstrap"); 111 ResourceGroupManager::getSingleton().initialiseResourceGroup("General"); 112 ResourceGroupManager::getSingleton().initialiseResourceGroup("PostProc"); 113 } 114 107 115 void createPostproc() 108 { 116 { 109 117 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 110 "G ameTools/Glow");118 "GTP/PostProc/Glow"); 111 119 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 112 "GameTools/Glow", true); 120 "GTP/PostProc/Glow", true); 121 122 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 123 "GTP/PostProc/ToneMap"); 124 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 125 "GTP/PostProc/ToneMap", true); 113 126 } 114 127 -
GTP/trunk/App/Demos/Illum/Ogre/src/GameToolsRaytraceDemo/include/GameToolsRaytraceDemo.h
r1712 r2025 182 182 183 183 184 void loadResources(void) 185 { 186 // Initialise, parse scripts etc 187 ResourceGroupManager::getSingleton().initialiseResourceGroup("Bootstrap"); 188 ResourceGroupManager::getSingleton().initialiseResourceGroup("General"); 189 ResourceGroupManager::getSingleton().initialiseResourceGroup("PostProc"); 190 } 191 184 192 void createPostproc() 185 { 193 { 186 194 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 187 "G ameTools/Glow");195 "GTP/PostProc/Glow"); 188 196 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 189 "G ameTools/Glow", true);190 /* 197 "GTP/PostProc/Glow", true); 198 191 199 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 192 "G ameTools/ToneMap");200 "GTP/PostProc/ToneMap"); 193 201 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 194 "G ameTools/ToneMap", true);*/202 "GTP/PostProc/ToneMap", true); 195 203 } 196 204 -
GTP/trunk/App/Demos/Illum/Ogre/src/GameToolsToneMapDemo/include/GameToolsToneMapDemo.h
r1831 r2025 63 63 SceneNode* mainLightNode; 64 64 65 void loadResources(void) 66 { 67 // Initialise, parse scripts etc 68 ResourceGroupManager::getSingleton().initialiseResourceGroup("Bootstrap"); 69 ResourceGroupManager::getSingleton().initialiseResourceGroup("General"); 70 ResourceGroupManager::getSingleton().initialiseResourceGroup("PostProc"); 71 } 65 72 66 73 void createPostproc() 67 { 68 74 { 69 75 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 70 "G ameTools/Glow");76 "GTP/PostProc/Glow"); 71 77 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 72 "G ameTools/Glow", true);78 "GTP/PostProc/Glow", true); 73 79 74 80 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 75 "G ameTools/ToneMap");81 "GTP/PostProc/ToneMap"); 76 82 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 77 "GameTools/ToneMap", true); 78 79 80 83 "GTP/PostProc/ToneMap", true); 81 84 } 82 85 83 84 86 void createScene(void) 85 87 { … … 98 100 // Skybox 99 101 mSceneMgr->setSkyBox(true, "Examples/MorningSkyBox"); 100 SceneNode* rootNode = mSceneMgr->getRootSceneNode(); 101 102 102 SceneNode* rootNode = mSceneMgr->getRootSceneNode(); 103 103 104 //init objects 104 105 Entity* kupola = mSceneMgr->createEntity("kupola", "kupola.mesh"); -
GTP/trunk/App/Demos/Illum/Ogre/src/HierarchicalSystem/include/HierarchicalSystem.h
r1879 r2025 27 27 28 28 29 int scene = 2;29 int scene = 1; 30 30 31 31 // Listener class for frame updates … … 73 73 SceneNode* mainLightNode; 74 74 75 void loadResources(void) 76 { 77 // Initialise, parse scripts etc 78 ResourceGroupManager::getSingleton().initialiseResourceGroup("Bootstrap"); 79 ResourceGroupManager::getSingleton().initialiseResourceGroup("General"); 80 //ResourceGroupManager::getSingleton().initialiseResourceGroup("PostProc"); 81 ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_Particles"); 82 } 83 75 84 void createPostproc() 76 { 85 { 77 86 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 78 "G ameTools/Glow");87 "GTP/PostProc/Glow"); 79 88 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 80 "GameTools/Glow", true); 89 "GTP/PostProc/Glow", true); 90 91 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 92 "GTP/PostProc/ToneMap"); 93 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 94 "GTP/PostProc/ToneMap", true); 81 95 } 82 96 … … 143 157 144 158 145 ParticleSystem* pSys1 = mSceneMgr->createParticleSystem("psys1", "G ameTools/Big");159 ParticleSystem* pSys1 = mSceneMgr->createParticleSystem("psys1", "GTP/HPS/Smoke_Large"); 146 160 pSys1->setKeepParticlesInLocalSpace(false); 147 161 SceneNode *pSysNode = rootNode->createChildSceneNode("psys1"); -
GTP/trunk/App/Demos/Illum/Ogre/src/PRMDemo/include/PRMDemo.h
r1132 r2025 57 57 { 58 58 59 public:60 virtual void go(void)61 {62 if (!setup())63 return;64 59 65 renderScene(); 66 67 // clean up 68 destroyScene(); 69 } 60 70 61 71 62 protected: 72 63 SceneNode* kupolaNode; 73 64 SceneNode* mainLightNode; 74 75 void renderScene(){ 76 77 mWindow->resetStatistics(); 78 while(true){ 79 80 81 #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 82 // Pump events on Win32 83 MSG msg; 84 while( PeekMessage( &msg, NULL, 0U, 0U, PM_REMOVE ) ) 85 { 86 TranslateMessage( &msg ); 87 DispatchMessage( &msg ); 88 } 89 90 #endif 91 92 if(!mRoot->_fireFrameStarted()){ 93 break; 94 } 95 unsigned long framenum = mRoot->getCurrentFrameNumber(); 96 97 OgreIlluminationManager::getSingleton().update(framenum, mWindow); 98 99 //mRoot->renderOneFrame(); 100 mRoot->_updateAllRenderTargets(); 101 102 mRoot->_fireFrameEnded(); 103 104 } 65 66 void loadResources(void) 67 { 68 // Initialise, parse scripts etc 69 ResourceGroupManager::getSingleton().initialiseResourceGroup("Bootstrap"); 70 ResourceGroupManager::getSingleton().initialiseResourceGroup("General"); 71 ResourceGroupManager::getSingleton().initialiseResourceGroup("PostProc"); 105 72 } 106 73 107 74 void createPostproc() 108 { 75 { 109 76 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 110 "G ameTools/Glow");77 "GTP/PostProc/Glow"); 111 78 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 112 "GameTools/Glow", true); 79 "GTP/PostProc/Glow", true); 80 81 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 82 "GTP/PostProc/ToneMap"); 83 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 84 "GTP/PostProc/ToneMap", true); 113 85 } 114 86 … … 183 155 mFrameListener= new PRMDemoFrameListener(mWindow, 184 156 mCamera ); 185 mRoot->addFrameListener(mFrameListener); 186 157 mFrameListener->setPriority(1); 158 mRoot->addFrameListener(mFrameListener); 159 OgreIlluminationManager::getSingleton().setPriority(2); 160 mRoot->addFrameListener(&OgreIlluminationManager::getSingleton()); 187 161 } 188 162
Note: See TracChangeset
for help on using the changeset viewer.