Ignore:
Timestamp:
08/24/06 14:17:44 (18 years ago)
Author:
szydlowski
Message:

Added the KdTerrainSceneManager?, a subclass of the KdTreeSceneManager? capable of rendering terrain like the TerrainSceneManager? from Ogre.
All the *Kd*Terrain* classes are identical to their octree counterparts, save prefixing all classes and structures with Kd to avoid namespace clashes.
This was necessary, since the TerrainSceneManager? was hard coded in these classes, and all references had to be replaced with the KdTerrainSceneManager?.
Also added a comprehensive README for the demo application.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreKdTreeSceneManager.cpp

    r1264 r1273  
    1313#include <OgreLogManager.h> 
    1414#include <OgreStringConverter.h> 
    15  
    16 #include <OgreTerrainPage.h> 
    17 #include <OgreTerrainVertexProgram.h> 
    18 #include <OgreHeightmapTerrainPageSource.h> 
    1915 
    2016#include "OgreKdTreeSceneManager.h" 
     
    293289        } 
    294290        // options for CHC 
    295         if (strKey == "UseDepthPass") 
     291        else if (strKey == "UseDepthPass") 
    296292        { 
    297293                mUseDepthPass = (*static_cast<const bool *>(pValue)); 
    298294                return true; 
    299295        } 
    300         if (strKey == "PrepareVisualization") 
     296        else if (strKey == "PrepareVisualization") 
    301297        { 
    302298                mShowVisualization = (*static_cast<const bool *>(pValue)); 
    303299                return true; 
    304300        } 
    305         if (strKey == "RenderNodesForViz") 
     301        else if (strKey == "RenderNodesForViz") 
    306302        { 
    307303                mRenderNodesForViz = (*static_cast<const bool *>(pValue)); 
    308304                return true; 
    309305        } 
    310         if (strKey == "RenderNodesContentForViz") 
     306        else if (strKey == "RenderNodesContentForViz") 
    311307        { 
    312308                mRenderNodesContentForViz = (*static_cast<const bool *>(pValue)); 
    313309                return true; 
    314310        } 
    315         if (strKey == "SkyBoxEnabled") 
     311        else if (strKey == "SkyBoxEnabled") 
    316312        { 
    317313                mSkyBoxEnabled = (*static_cast<const bool *>(pValue)); 
    318314                return true; 
    319315        } 
    320         if (strKey == "SkyPlaneEnabled") 
     316        else if (strKey == "SkyPlaneEnabled") 
    321317        { 
    322318                mSkyPlaneEnabled = (*static_cast<const bool *>(pValue)); 
    323319                return true; 
    324320        } 
    325         if (strKey == "SkyDomeEnabled") 
     321        else if (strKey == "SkyDomeEnabled") 
    326322        { 
    327323                mSkyDomeEnabled = (*static_cast<const bool *>(pValue)); 
    328324                return true; 
    329325        } 
    330         if (strKey == "VisualizeCulledNodes") 
     326        else if (strKey == "VisualizeCulledNodes") 
    331327        { 
    332328                mVisualizeCulledNodes = (*static_cast<const bool *>(pValue)); 
    333329                return true; 
    334330        } 
    335         if (strKey == "DelayRenderTransparents") 
     331        else if (strKey == "DelayRenderTransparents") 
    336332        { 
    337333                mDelayRenderTransparents = (*static_cast<const bool *>(pValue)); 
     
    339335        } 
    340336 
    341         if (strKey == "DepthWrite") 
     337        else if (strKey == "DepthWrite") 
    342338        { 
    343339                mEnableDepthWrite = (*static_cast<const bool *>(pValue)); 
    344340                return true; 
    345341        } 
    346         if (strKey == "UseItemBuffer") 
     342        else if (strKey == "UseItemBuffer") 
    347343        { 
    348344                mUseItemBuffer = (*static_cast<const bool *>(pValue)); 
    349345                return true; 
    350346        } 
    351         if (strKey == "ExecuteVertexProgramForAllPasses") 
     347        else if (strKey == "ExecuteVertexProgramForAllPasses") 
    352348        {  
    353349                mExecuteVertexProgramForAllPasses  = (*static_cast<const bool *>(pValue)); 
    354350                return true; 
    355351        } 
    356         if (strKey == "RenderTransparentsForItemBuffer") 
     352        else if (strKey == "RenderTransparentsForItemBuffer") 
    357353        {  
    358354                mRenderTransparentsForItemBuffer  = (*static_cast<const bool *>(pValue)); 
Note: See TracChangeset for help on using the changeset viewer.