Changeset 2185


Ignore:
Timestamp:
03/02/07 19:06:44 (17 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/OgreIlluminationManager.h

    r1711 r2185  
    1717#include "OgreIllumVolumeRenderTechnique.h" 
    1818#include "OgrePhaseTextureRenderingRun.h" 
     19#include "OgrePathMapRenderTechnique.h" 
    1920 
    2021 
    2122using namespace Ogre; 
    2223 
     24struct PathMapClusters 
     25{ 
     26        unsigned int count; 
     27        unsigned int* clusters; 
     28        String pathMapTextureFilename; 
     29        unsigned int pathMapResolution; 
     30}; 
     31 
     32struct PathMapEntryPoint 
     33{ 
     34    Vector3 position; 
     35        Vector3 normal; 
     36}; 
    2337/** 
    2438        @brief Implementation of IlluminationManager in an OGRE environment. 
     
    7791        unsigned int phaseTextureSize; 
    7892        std::map<RenderingRunType,float> maxRads; 
     93        std::map<String, PathMapClusters> pathMapClusters; 
     94        std::vector<PathMapEntryPoint> pathMapEntryPoints; 
     95        std::vector<unsigned int> pathMapClusterLengths; 
    7996        /** 
    8097                @brief The camera attached to the player. 
     
    317334        void setBlurShadowMap(bool use){blurSM = use;} 
    318335        void setShadowMapMaterialName(String name){shadowMapMaterialName = name;} 
     336 
     337        void addPathMapClusters(String subEntityName, PathMapClusters clusters) 
     338        { 
     339                this->pathMapClusters[subEntityName] = clusters; 
     340        } 
     341        PathMapClusters* getPathMapClusters(String subEntityName) 
     342        { 
     343                return &pathMapClusters[subEntityName]; 
     344        } 
     345        void addPathMapEntryPoint(PathMapEntryPoint p) 
     346        { 
     347                this->pathMapEntryPoints.push_back(p); 
     348        } 
     349        void addPathMapClusterLength(unsigned int l) 
     350        { 
     351                this->pathMapClusterLengths.push_back(l); 
     352        } 
    319353}; 
    320354 
  • GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/scripts/OgreIllumModule.7.10.vcproj

    r2174 r2185  
    171171                                </File> 
    172172                                <File 
     173                                        RelativePath="..\src\RenderTechniques\OgrePathMapRenderTechnique.cpp"> 
     174                                </File> 
     175                                <File 
    173176                                        RelativePath="..\src\RenderTechniques\OgreSBBRenderTechnique.cpp"> 
    174177                                </File> 
     
    268271                                </File> 
    269272                                <File 
     273                                        RelativePath="..\include\RenderTechniques\OgrePathMapRenderTechnique.h"> 
     274                                </File> 
     275                                <File 
    270276                                        RelativePath="..\include\RenderTechniques\OgreSBBRenderTechnique.h"> 
    271277                                </File> 
  • GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/OgreIlluminationManager.cpp

    r2180 r2185  
    113113        OgreIllumVolumeRenderTechniqueFactory* illumVolume = new OgreIllumVolumeRenderTechniqueFactory(); 
    114114                addRenderTechniqueFactory(illumVolume); 
     115        OgrePathMapRenderTechniqueFactory* pathmap = new OgrePathMapRenderTechniqueFactory(); 
     116        addRenderTechniqueFactory(pathmap); 
    115117} 
    116118 
Note: See TracChangeset for help on using the changeset viewer.