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.

Location:
GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/include/TestKdTree.h

    r1220 r1273  
    5656 
    5757        // scene options 
    58         String  mSceneFiles; 
     58        //String  mSceneFiles; 
    5959        Real    mRotationRadius; 
    6060        int             mModelSpacing; 
     
    8787 
    8888        void createMaterials(void); 
     89        void createSimpleScene(void); 
    8990private: 
    9091        std::string cat(std::string name, int x, int z) 
  • GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/include/TestKdTreeAppListener.h

    r1258 r1273  
    4949#define VIZ_VIEWPORT_Z_ORDER 10 
    5050 
     51#define TERRAIN_SCENE "terrain" 
     52 
    5153using namespace Ogre; 
    5254 
     
    8082        { 
    8183                SM_KDT, 
     84                SM_KTE, 
    8285                SM_OCM, 
    8386                SM_OCT, 
     87                SM_TER, 
    8488                SM_GEN, 
    8589                SM_SIZE, 
     
    121125                } 
    122126 
     127                String mSceneFiles; 
    123128                String mDemoInfileName; 
    124129                String mDemoOutfileName; 
     
    272277        Degree mRotScale; 
    273278        Radian mDeathAngle; 
     279        // for terrain 
     280        RaySceneQuery *mRaySceneQuery; 
    274281 
    275282        // just to stop toggles flipping too fast 
Note: See TracChangeset for help on using the changeset viewer.