Ignore:
Timestamp:
05/03/05 17:30:53 (19 years ago)
Author:
mattausch
Message:

worked on the demos

Location:
trunk/VUT/work/TestCulling
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/work/TestCulling/SceneContentGenerator.cpp

    r79 r82  
    7373        currentObject->roll(Degree(rotation.z)); 
    7474 
    75         return currentObject; 
    76          
    7775        /* 
    7876        char msg[100]; 
    79         sprintf(msg, "pos: %3.3f %3.3f %3.3f, newpos: %3.3f %3.3f %3.3f\n",  
    80                 position.x, position.y, position.z, queryResult.x, queryResult.y, queryResult.z); 
    81  
     77        sprintf(msg, "pos: %3.3f %3.3f %3.3f\n", position.x, position.y, position.z); 
    8278        OutputDebugString(msg); 
    8379        */ 
     80 
     81        return currentObject; 
    8482} 
    8583//----------------------------------------------------------------------- 
  • trunk/VUT/work/TestCulling/SceneContentGenerator.h

    r79 r82  
    1414public: 
    1515        SceneContentGenerator(SceneManager *sm); 
    16          
     16        virtual ~SceneContentGenerator() {}; 
    1717        /** Generates scene object in a random fashion. 
    1818                @param number of objects to generate 
     
    2121        void GenerateScene(int numObjects, const String &objName); 
    2222        /** Generates a new object in the scene using ray scene queries  
    23                 and inserts it into scene hierarchy. 
     23                and inserts it into thr scene hierarchy. 
    2424                @param position position where the object is created 
    2525                @param rotation rotation angle applied locally to object 
     
    2727                @returns scene object if it was successfully created, NULL otherwise 
    2828        */ 
    29         SceneNode *GenerateSceneObject(const Vector3 &position,  
     29        virtual SceneNode *GenerateSceneObject(const Vector3 &position,  
    3030                const Vector3 &rotation, const String &objName); 
    3131 
  • trunk/VUT/work/TestCulling/TestCulling.vcproj

    r79 r82  
    122122                        UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"> 
    123123                        <File 
    124                                 RelativePath="..\TestCullingTerrain\SceneContentGenerator.cpp"> 
     124                                RelativePath=".\SceneContentGenerator.cpp"> 
    125125                        </File> 
    126126                        <File 
     
    133133                        UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"> 
    134134                        <File 
    135                                 RelativePath="..\TestCullingTerrain\SceneContentGenerator.h"> 
     135                                RelativePath=".\SceneContentGenerator.h"> 
    136136                        </File> 
    137137                        <File 
  • trunk/VUT/work/TestCulling/TestCullingApplication.cpp

    r79 r82  
    4848        //l->setPosition(20,80,50); 
    4949 
    50         SceneContentGenerator contentGenerator(); 
    51         contentGenerator.GenerateScene(330); 
     50        SceneContentGenerator contentGenerator(mSceneMgr); 
     51        contentGenerator.GenerateScene(330, "robot.mesh"); 
    5252 
    5353        // Create a skybox 
Note: See TracChangeset for help on using the changeset viewer.