Changeset 751 for GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/src/IBRBillboardCloudTreeApplication.cpp
- Timestamp:
- 04/19/06 00:27:14 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/src/IBRBillboardCloudTreeApplication.cpp
r747 r751 59 59 //mLBBCManager->loadSampleConfigFile(mOpts.cfg); 60 60 mLBBCManager->initialize(); 61 mLBBCManager->loadBillboardCloudMergedXML(); 61 //mLBBCManager->loadBillboardCloudMergedXML(); 62 mLBBCManager->loadBillboardCloudGroupedXML(); 62 63 this->go(); 63 64 for (unsigned int iFrameListenerMode = 0; iFrameListenerMode < mFrameListener->getNumFrameListenerModes(); iFrameListenerMode++) … … 147 148 148 149 { 149 LBBC::BillboardCloudTextureViewMode *anotherFrameListenerMode;150 anotherFrameListenerMode = new LBBC::BillboardCloudTextureViewMode(mWindow,mFrameListener->getNumFrameListenerModes());151 anotherFrameListenerMode->chooseSceneManager();152 anotherFrameListenerMode->createCamera();153 anotherFrameListenerMode->createViewports();154 anotherFrameListenerMode->setTextureAtlasSize(mSampleConfigFile->getBillboardCloudDiffuseColorMergedBillboardsTextureAtlasSize());155 anotherFrameListenerMode->setTextureSize(mSampleConfigFile->getBillboardCloudDiffuseColorMergedBillboardsTextureSize());156 anotherFrameListenerMode->setTextureAtlasBitRange(mSampleConfigFile->getBillboardCloudDiffuseColorMergedBillboardsTextureAtlasBitRange());157 anotherFrameListenerMode->setTextureAtlasName(mSampleConfigFile->getBillboardCloudDiffuseColorMergedBillboardsTextureAtlasName());158 anotherFrameListenerMode->setTextureAtlasFolder(mSampleConfigFile->getBillboardCloudFolder());159 anotherFrameListenerMode->setEntityName(mSampleConfigFile->getEntityClustersMergedMeshName());160 anotherFrameListenerMode->createScene();161 mFrameListener->addFrameListenerMode(anotherFrameListenerMode);162 }163 164 {165 LBBC::ClusterViewMode *anotherFrameListenerMode;166 anotherFrameListenerMode = new LBBC::ClusterViewMode(mWindow,mFrameListener->getNumFrameListenerModes());167 anotherFrameListenerMode->chooseSceneManager();168 anotherFrameListenerMode->createCamera();169 anotherFrameListenerMode->createViewports();170 anotherFrameListenerMode->createScene();171 mFrameListener->addFrameListenerMode(anotherFrameListenerMode);172 }173 174 {175 LBBC::BillboardViewMode *anotherFrameListenerMode;176 anotherFrameListenerMode = new LBBC::BillboardViewMode(mWindow,mFrameListener->getNumFrameListenerModes());177 anotherFrameListenerMode->chooseSceneManager();178 anotherFrameListenerMode->createCamera();179 anotherFrameListenerMode->createViewports();180 anotherFrameListenerMode->createScene();181 mFrameListener->addFrameListenerMode(anotherFrameListenerMode);182 }183 184 {185 150 LBBC::EntityTextureAtlasViewMode *textureAtlasFrameListenerMode; 186 151 textureAtlasFrameListenerMode = new LBBC::EntityTextureAtlasViewMode(mWindow,mFrameListener->getNumFrameListenerModes()); … … 199 164 } 200 165 166 { 167 LBBC::BillboardCloudTextureViewMode *anotherFrameListenerMode; 168 anotherFrameListenerMode = new LBBC::BillboardCloudTextureViewMode(mWindow,mFrameListener->getNumFrameListenerModes()); 169 anotherFrameListenerMode->chooseSceneManager(); 170 anotherFrameListenerMode->createCamera(); 171 anotherFrameListenerMode->createViewports(); 172 anotherFrameListenerMode->setTextureAtlasSize(mSampleConfigFile->getBillboardCloudDiffuseColorGroupedBillboardsTextureAtlasSize()); 173 anotherFrameListenerMode->setTextureSize(mSampleConfigFile->getBillboardCloudDiffuseColorGroupedBillboardsTextureSize()); 174 anotherFrameListenerMode->setTextureAtlasBitRange(mSampleConfigFile->getBillboardCloudDiffuseColorGroupedBillboardsTextureAtlasBitRange()); 175 anotherFrameListenerMode->setTextureAtlasName(mSampleConfigFile->getBillboardCloudDiffuseColorGroupedBillboardsTextureAtlasName()); 176 anotherFrameListenerMode->setTextureName(mSampleConfigFile->getBillboardCloudDiffuseColorEntityTextureName()); 177 anotherFrameListenerMode->setTextureAtlasFolder(mSampleConfigFile->getBillboardCloudFolder()); 178 anotherFrameListenerMode->setEntityClustersGroupedName(mSampleConfigFile->getEntityClustersGroupedMeshName()); 179 //anotherFrameListenerMode->setBillboardCloudSplittedName(mSampleConfigFile->getBillboardCloudSplittedMeshName()); 180 anotherFrameListenerMode->setBillboardCloudSplittedName(mSampleConfigFile->getBillboardCloudIndirectPointMeshName()); 181 anotherFrameListenerMode->setBillboardCloudGroupedTextureAtlasDebug(mSampleConfigFile->getBillboardCloudDiffuseColorGroupedBillboardsTextureAtlasDebug()); 182 anotherFrameListenerMode->createScene(); 183 mFrameListener->addFrameListenerMode(anotherFrameListenerMode); 184 } 185 186 { 187 LBBC::BillboardViewMode *anotherFrameListenerMode; 188 anotherFrameListenerMode = new LBBC::BillboardViewMode(mWindow,mFrameListener->getNumFrameListenerModes()); 189 anotherFrameListenerMode->chooseSceneManager(); 190 anotherFrameListenerMode->createCamera(); 191 anotherFrameListenerMode->createViewports(); 192 //anotherFrameListenerMode->setBillboardCloudMeshName(mSampleConfigFile->getBillboardCloudGroupedMeshName()); 193 anotherFrameListenerMode->createScene(); 194 mFrameListener->addFrameListenerMode(anotherFrameListenerMode); 195 } 196 197 { 198 LBBC::ClusterViewMode *anotherFrameListenerMode; 199 anotherFrameListenerMode = new LBBC::ClusterViewMode(mWindow,mFrameListener->getNumFrameListenerModes()); 200 anotherFrameListenerMode->chooseSceneManager(); 201 anotherFrameListenerMode->createCamera(); 202 anotherFrameListenerMode->createViewports(); 203 //anotherFrameListenerMode->setEntityClustersMeshName(mSampleConfigFile->getEntityClustersGroupedMeshName()); 204 anotherFrameListenerMode->createScene(); 205 mFrameListener->addFrameListenerMode(anotherFrameListenerMode); 206 } 207 201 208 mFrameListener->removeFrameListenerMode(0); 202 209 mFrameListener->setEnabledFrameListenerMode(0);
Note: See TracChangeset
for help on using the changeset viewer.