Ignore:
Timestamp:
08/17/06 13:56:10 (18 years ago)
Author:
szydlowski
Message:

enhanced visibility partially implemented

Location:
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreKdTree.h

    r1203 r1206  
    3434namespace Ogre 
    3535{ 
     36        class KdTreeCamera; 
    3637        class KdRenderable; 
    3738        struct SplitInfo; 
     
    519520 
    520521                // test visibility of objects and add to render queue 
    521                 void queueVisibleObjects(Camera* cam, RenderQueue* queue, bool onlyShadowCasters,  
     522                void queueVisibleObjects(KdTreeCamera* cam, RenderQueue* queue, bool onlyShadowCasters,  
    522523                        bool showBoxes, KdTree::NodeList& visibleNodes); 
    523524 
     
    555556 
    556557                // recursive rendering function 
    557                 void recQueueVisibleObjects(KdTree::Node * node, unsigned long currentFrame, Camera* cam, 
    558                         RenderQueue* queue, bool onlyShadowCasters, bool showBoxes, KdTree::NodeList& visibleNodes); 
     558                void recQueueVisibleObjects(KdTree::Node * node, unsigned long currentFrame, KdTreeCamera* cam, 
     559                        RenderQueue* queue, bool onlyShadowCasters, bool showBoxes,  
     560                        KdTree::NodeList& visibleNodes, bool fullVis = false); 
    559561 
    560562                // recursively find visible nodes 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreKdTreeSceneManager.h

    r1203 r1206  
    1515#include <VisibilityManager.h> 
    1616#include "OgreKdTree.h" 
     17#include "OgreKdTreeCamera.h" 
    1718 
    1819#define KDTREE_MAX_DEPTH 12 
     
    3839        /************************************************************************/ 
    3940 
     41        /** Override from Scenemanager to create Camera as instance of KdTreeCamera 
     42        */ 
     43        virtual Camera* createCamera(const String& name); 
     44 
    4045        /** Override from SceneManager to create SceneNodes as instance of KdTreeSceneNode 
    4146        */ 
     
    171176        */ 
    172177        void WriteLog(); 
     178 
     179        /** Switches between simple & enhanced visibility 
     180        */ 
     181        void setEnhancedVis(bool enhanced); 
    173182 
    174183 
Note: See TracChangeset for help on using the changeset viewer.