Changeset 2465 for GTP/trunk/App/Demos/Illum/Ogre/src
- Timestamp:
- 06/25/07 15:41:04 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/Common/src/FPSPlayer.cpp
r2462 r2465 79 79 mFireBallLight->setPowerScale(200); 80 80 mFireBallLight->setAttenuation(200.0, 0, 0, 6); 81 mFireBallLight->setVisible(false); 81 82 82 83 attachNode = meshNode->createChildSceneNode(name + "_AttachNode"); 83 84 fireBallNode = attachNode->createChildSceneNode(name + "_FireBallNode"); 85 // fireBallNode->attachObject(mFireBallLight); 86 BillboardSet* bbs = ((BillboardParticleRenderer*)mFireBall->getRenderer())->getBillboardSet(); 84 87 fireBallNode->attachObject(mFireBall); 85 //fireBallNode->attachObject(mFireBallLight);86 BillboardSet* bbs = ((BillboardParticleRenderer*)mFireBall->getRenderer())->getBillboardSet();87 88 bbs->setMaterialName(mFireBall->getMaterialName()); 88 89 OgreIlluminationManager::getSingleton().initTechniques( … … 90 91 mFireBall); 91 92 fireBallNode->detachObject(mFireBall); 93 mFireBall->setVisible(false); 92 94 sceneManager = sm; 93 95 this->attachBone = attachBone; … … 146 148 { 147 149 isActive = true; 150 mFireBall->setVisible(true); 151 // mFireBallLight->setVisible(true); 148 152 fireBallNode->attachObject(mFireBall); 149 153 fireBallNode->attachObject(mFireBallLight); … … 160 164 fireBallNode->detachObject(mFireBallLight); 161 165 //mFireBallLight->setPowerScale(0); 166 mFireBall->setVisible(false); 167 // mFireBallLight->setVisible(false); 162 168 CompositorManager::getSingleton().setCompositorEnabled( 163 169 OgreIlluminationManager::getSingleton().getMainViewport(),
Note: See TracChangeset
for help on using the changeset viewer.