Changeset 161 for trunk/VUT/Ogre


Ignore:
Timestamp:
07/08/05 17:34:05 (19 years ago)
Author:
mattausch
Message:

added moving robots

Location:
trunk/VUT/Ogre
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/Ogre/include/OgreTerrainContentGenerator.h

    r135 r161  
    44#include "OgreSceneContentGenerator.h" 
    55//#include <Ogre.h> 
     6 
     7#define MAX_HEIGHT 5000 // maximal possible height for object position 
    68 
    79namespace Ogre { 
     
    2325 
    2426/**  
    25         Class which randomly fills a terrain with objects. 
     27        Thsi class used to fill a terrain with content, 
     28        e.g., it randomly fills a terrain with objects of a specific type. 
    2629*/ 
    2730class __declspec(dllexport) TerrainContentGenerator: public SceneContentGenerator 
     
    3134        ~TerrainContentGenerator(); 
    3235 
    33         /**  
    34                 Generates objects and places it on the terrain. 
     36        /** Generates objects and places it on the terrain. 
    3537        */ 
    3638        SceneNode *GenerateSceneObject(const Vector3 &position,  
    3739                const Vector3 &rotation, const String &objName); 
    38         /**  
    39                 Generates objects and optionally places it on the terrain. 
     40        /** Generates objects and optionally places it on the terrain. 
    4041                @param clampToTerrain if true, scene object is clamped to the terrain 
    4142        */ 
     
    4344                const Vector3 &rotation, const String &objName, const bool clampToTerrain); 
    4445         
    45         /** offset which is added to objects when put into the terrain */ 
     46        /** The offset is added to objects when they are put into the terrain. 
     47        */ 
    4648        void SetOffset(Real offset); 
    47          
    48         RayQueryExecutor *GetRayQueryExecutor(); 
    4949 
    5050protected: 
  • trunk/VUT/Ogre/resources/VisibilityDemo.overlay

    r160 r161  
    326326                        caption [F4] Start / End frame recording 
    327327                } 
     328                element TextArea(Example/Visibility/Help/Animation): Example/Visibility/Templates/BasicText 
     329                { 
     330                        left 5 
     331                        width 180 
     332                        height 30 
     333                        caption [F9] Start / End animation 
     334                } 
    328335                element TextArea(Example/Visibility/Help/Screenshots): Example/Visibility/Templates/BasicText 
    329336                { 
  • trunk/VUT/Ogre/src/OgreTerrainContentGenerator.cpp

    r135 r161  
    11#include "OgreTerrainContentGenerator.h" 
    22 
    3 #define MAX_HEIGHT 5000 // maximal possible height 
    43 
    54namespace Ogre { 
     
    6968SceneNode *TerrainContentGenerator::GenerateSceneObject(const Vector3 &position,  
    7069                                         const Vector3 &rotation, const String& objName, const bool clampToTerrain) 
    71 { 
     70{        
     71        if (clampToTerrain) 
     72                return GenerateSceneObject(position, rotation, objName); 
    7273         
    73         if (clampToTerrain) 
    74         { 
    75                 return GenerateSceneObject(position, rotation, objName); 
    76         } 
    77         else 
    78         { 
    79                 return SceneContentGenerator::GenerateSceneObject(position, rotation, objName); 
    80         } 
     74        return SceneContentGenerator::GenerateSceneObject(position, rotation, objName); 
    8175} 
    8276//----------------------------------------------------------------------- 
     
    10397} 
    10498//----------------------------------------------------------------------- 
    105 RayQueryExecutor *TerrainContentGenerator::GetRayQueryExecutor() 
    106 { 
    107         return mRayQueryExecutor; 
    108 } 
    109 //----------------------------------------------------------------------- 
    11099void TerrainContentGenerator::SetOffset(Real offset) 
    111100{ 
Note: See TracChangeset for help on using the changeset viewer.