- Timestamp:
- 06/27/06 10:16:24 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/HierarchicalSystem/include/HierarchicalSystem.h
r1054 r1059 133 133 134 134 135 ParticleSystem* pSys1 = mSceneMgr->createParticleSystem("psys1", "GameTools/ Little");135 ParticleSystem* pSys1 = mSceneMgr->createParticleSystem("psys1", "GameTools/DemoParticle1"); 136 136 pSys1->setKeepParticlesInLocalSpace(false); 137 137 SceneNode *pSysNode = rootNode->createChildSceneNode(); 138 138 pSysNode->attachObject(pSys1); 139 139 140 //pSysNode->setPosition(0,100,0); 140 141 /* … … 171 172 mainLightNode->attachObject(mainLight); 172 173 */ 173 /* 174 {//SBB 175 OgreSharedRuns* sharedruns = new OgreSharedRuns(); 176 OgreIlluminationManager::getSingleton().addSharedRuns(sharedruns); 177 OgreTechniqueGroup* group = new OgreTechniqueGroup(); 178 group->addSharedRun(sharedruns); 179 SpriteParticleRenderer* renderer = (SpriteParticleRenderer*)pSys1->getRenderer(); 180 OgreRenderable* rend = new OgreRenderable(renderer->getSpriteSet()); 181 sharedruns->addRenderable(rend); 182 sharedruns->updateBounds(); 183 Material* mat = (Material*) MaterialManager::getSingleton().getByName("GameTools/SBB").getPointer(); 184 185 OgreSBBRenderTechnique* techn = 186 new OgreSBBRenderTechnique(1, 187 mat->getTechnique(0)->getPass(0), 188 rend, 189 group 190 ); 191 group->addRenderTechnique(techn); 192 renderer->getSpriteSet()->setRenderTechniqueGroup(group); 193 }*/ 174 175 176 OgreIlluminationManager::getSingleton().initTechniques(); 194 177 195 178 }
Note: See TracChangeset
for help on using the changeset viewer.