Changeset 909 for GTP/trunk


Ignore:
Timestamp:
05/05/06 15:19:28 (19 years ago)
Author:
igarcia
Message:
 
Location:
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/LBBC/LBBCBillboardViewMode.h

    r900 r909  
    2525                bool frameStarted(const Ogre::FrameEvent& evt, Ogre::InputReader *inputReader) 
    2626                { 
     27                        Ogre::LogManager::getSingleton().logMessage("Before reloading the textureUnitState:" + mBillboardCloudEntity->getSubEntity(0)->getMaterial()->getBestTechnique()->getPass(0)->getTextureUnitState(1)->getName()); 
     28                        Ogre::TextureManager::getSingleton().load(mBillboardCloudEntity->getSubEntity(0)->getMaterial()->getBestTechnique()->getPass(0)->getTextureUnitState(1)->getName(), Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 
     29                        //mBillboardCloudEntity->getSubEntity(0)->getMaterial()->getBestTechnique()->getPass(0)->getTextureUnitState(1)->_load(); 
     30                        Ogre::LogManager::getSingleton().logMessage("After reloading the textureUnitState:" + mBillboardCloudEntity->getSubEntity(0)->getMaterial()->getBestTechnique()->getPass(0)->getTextureUnitState(1)->getName()); 
     31                        //mWindow->setDebugText(mBillboardCloudEntity->getSubEntity(0)->getMaterial()->getBestTechnique()->getPass(0)->getTextureUnitState(1)->getName()); 
     32 
    2733                        showDebugOverlay(true); 
    2834                        mWindow->getViewport(0)->setBackgroundColour(Ogre::ColourValue(0.0, 0.0, 0.0, 1.0));                     
    29                         mEpsilonText = Ogre::String("Epsilon:") + Ogre::StringConverter::toString(epsilonX) + Ogre::String(",") + Ogre::StringConverter::toString(epsilonY); 
    30                         mWindow->setDebugText(mEpsilonText); 
    31  
     35                        //mEpsilonText = Ogre::String("Epsilon:") + Ogre::StringConverter::toString(epsilonX) + Ogre::String(",") + Ogre::StringConverter::toString(epsilonY); 
     36                        //mWindow->setDebugText(mEpsilonText); 
     37                         
    3238                        return OgreFrameListenerMode::frameStarted(evt, inputReader);    
    3339                } 
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/OBA/OBAOgreApplication.h

    r900 r909  
    2727        OgreBase *mOgreBase; 
    2828        Ogre::Root *mRoot; 
     29    Ogre::SceneManager* mSceneMgr; 
    2930    Ogre::Camera* mCamera; 
    3031    OgreFrameListener* mFrameListener; 
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/scripts/IBRBillboardCloudTreeGeneratorCommandLine.vcproj

    r861 r909  
    2424                                MinimalRebuild="TRUE" 
    2525                                BasicRuntimeChecks="3" 
    26                                 RuntimeLibrary="1" 
     26                                RuntimeLibrary="3" 
    2727                                DisableLanguageExtensions="FALSE" 
    2828                                UsePrecompiledHeader="0" 
     
    7373                                AdditionalIncludeDirectories="../include;../include/OBA;../include/BBC;../include/IMG;../include/LBBC;../../../../../../../OGRE/trunk/ogrenew/OgreMain/include;../../../../../../../OGRE/trunk/ogrenew/Tools/XMLConverter/include;../../../../../../../NonGTP\Boost;../../../../../../../NonGTP\ImageDebugger\include" 
    7474                                PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" 
    75                                 RuntimeLibrary="0" 
     75                                RuntimeLibrary="2" 
    7676                                DisableLanguageExtensions="FALSE" 
    7777                                UsePrecompiledHeader="0" 
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/src/LBBCManager.cpp

    r900 r909  
    7676        entityLeaves->setMesh(meshLeaves);       
    7777        mLeaves->setEntity(entityLeaves); 
    78         mLeaves->getEntity()->setMesh(meshLeaves); 
    7978} 
    8079 
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/src/OBAOgreApplication.cpp

    r900 r909  
    8181                        // If returned true, user clicked OK so initialise 
    8282                        // Here we choose to let the system create a default rendering window by passing 'true' 
    83                         //mRoot->initialise(true); 
     83                        //mWindow = mRoot->initialise(true); 
    8484                        //mWindow->resize(512,512); 
    8585                        mRoot->initialise(false); 
     
    101101void OgreApplication::createFrameListener(void) 
    102102{ 
    103     mFrameListener = new OgreFrameListener(mWindow); 
     103        OBA::OgreFrameListenerMode *defaultFrameListenerMode; 
    104104         
     105    mFrameListener = new OgreFrameListener(mWindow);  
     106        defaultFrameListenerMode =  mFrameListener->getFrameListenerMode(0); 
     107        mSceneMgr = defaultFrameListenerMode->getSceneManager(); 
     108 
    105109    mRoot->addFrameListener(mFrameListener); 
    106110} 
Note: See TracChangeset for help on using the changeset viewer.