Changeset 2264
- Timestamp:
- 03/19/07 13:02:58 (18 years ago)
- Location:
- GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgreDepthShadowMapRenderingRun.h
r2251 r2264 49 49 void refreshLight(unsigned long frameNum); 50 50 /** 51 @brief retuns the view matrix of the camera from which the depth shadow map was created51 @brief Retuns the view matrix of the camera from which the depth shadow map was created. 52 52 */ 53 53 Matrix4 getLightViewMatrix(); 54 54 /** 55 @brief retuns the concatenation of the view and projection matrices of the camera from which the depth shadow map was created55 @brief Retuns the concatenation of the view and projection matrices of the camera from which the depth shadow map was created. 56 56 */ 57 57 Matrix4 getLightViewProjMatrix(); 58 /** 59 @brief Retuns the far plane of the light projection. 60 */ 58 61 Real getLightFarPlane(){return lightFarPlane;} 59 62 60 63 protected: 61 64 /** 62 @brief the light source this depth shadow map belongs to65 @brief The light source this depth shadow map belongs to. 63 66 */ 64 67 Light* light; 65 68 /** 66 @brief pointer to the camera of the lightsource69 @brief Pointer to the camera of the lightsource. 67 70 */ 68 71 Camera* depthMapCamera; 69 72 /** 70 @brief the name of the material to be used when rendering the depth shadow map73 @brief The name of the material to be used when rendering the depth shadow map. 71 74 */ 72 75 String materialName; 73 76 /** 74 @brief a pointer to the OgreSharedRuns this run belongs to77 @brief A pointer to the OgreSharedRuns this run belongs to. 75 78 */ 76 79 OgreSharedRuns* sharedRuns; 77 80 /** 78 @brief the name of the depth shadow map texture that was created by this run81 @brief The name of the depth shadow map texture that was created by this run. 79 82 */ 80 83 String name; 84 /** 85 @brief The name of the blurred depth shadow map texture that was created by this run. 86 */ 81 87 String blurredname; 82 88 /** 83 @brief a pointer to the depth shadow texture that was created by this run89 @brief A pointer to the depth shadow texture that was created by this run. 84 90 */ 85 91 Texture* depthMapTexture; 92 /** 93 @brief A pointer to the blurred depth shadow texture that was created by this run. 94 */ 86 95 Texture* blurredDepthMapTexture; 87 96 Real lightFarPlane; -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgreFocusingMapRenderingRun.h
r2251 r2264 23 23 /** 24 24 @brief Constructor. 25 26 25 @param name the name of the focusing map texture to be created 26 @param lightMatrix the light matrix to be focused 27 @param focusingMapSize size of the focusing map 27 28 */ 28 29 OgreFocusingMapRenderingRun(String name, … … 33 34 */ 34 35 String getFocusingTextureName(){return name;} 36 /** 37 @brief gets the boundig box min-max points 38 39 These values are given in light space and can be used to adjust the light matrices to focuse on important objects only. 40 */ 35 41 void getMinMax(Vector3& min, Vector3& max); 42 /** 43 @brief Sets the light matrix that should be focused. 44 */ 36 45 void setLightMatrix(Matrix4 &m){this->lightMatrix = m;} 46 /** 47 @brief Sets the player camera matrices. 48 */ 37 49 void setCameraMatrices(const Matrix4 &view, const Matrix4 &projection); 38 50 39 51 protected: 40 52 /** 41 @brief pointer to the player's viewport53 @brief light matrix to be focused 42 54 */ 43 55 Matrix4 lightMatrix; 44 56 /** 45 @brief pointer to the player'scamera57 @brief fosusing map camera 46 58 */ 47 59 Camera* camera; … … 55 67 */ 56 68 Texture* focusingTexture; 69 /** 70 @brief the size of the focusing map 71 */ 57 72 unsigned int focusingMapSize; 58 73 59 74 //inherited 60 75 void updateFrame(unsigned long frameNum); 61 76 /** 77 @brief creates the focusing map texture 78 */ 62 79 inline void createFocusingMap(); 63 80 //inherited 64 81 bool needUpdate(unsigned long frameNum ) 65 82 { -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgreLightVolumeRenderingRun.h
r2041 r2264 14 14 15 15 /** 16 @brief ColorCubeMapRenderingRun used in an OGRE environment.16 @brief LightVolumeRenderingRun used in an OGRE environment. 17 17 */ 18 18 class OgreLightVolumeRenderingRun : public OgreRenderingRun, … … 25 25 26 26 @param sharedRuns a pointer to the OgreSharedRuns this run belongs to 27 @param name the name of the texture to be created27 @param name the name of the light volume texture to be created 28 28 @param startFrame adds an offset to the current frame number to help evenly distribute updates between frames 29 29 @param updateInterval update frequency 30 @param resolution color cubemapresolution31 @param materialName the name of the material should be used when rendering the choton hit map30 @param resolution light volume texture resolution 31 @param materialName the name of the material should be used when rendering the light volume 32 32 */ 33 33 OgreLightVolumeRenderingRun(OgreSharedRuns* sharedRuns, … … 39 39 String materialName); 40 40 /** 41 @brief returns the name of the resulting photon hit map41 @brief returns the name of the resulting light volume texture 42 42 */ 43 43 String getLightVolumeTextureName() … … 52 52 */ 53 53 void refreshLight(); 54 54 /** 55 @brief Returns the light matrix used while rendering the light volume. 56 */ 55 57 Matrix4 getLightViewProjectionMatrix() 56 58 { … … 68 70 protected: 69 71 /** 70 @brief the name of the material should be used when rendering the choton hit map72 @brief the name of the material should be used when rendering the light volume 71 73 */ 72 74 String materialName; 73 75 /** 74 @brief pointer to the nearest light source from the caster object76 @brief pointer to the nearest light source to the particle system 75 77 */ 76 78 Light* light; 77 79 /** 78 @brief the created photon hit map texture80 @brief pointer to the camera used while rendering the light volume 79 81 */ 80 82 Camera* lightVolumeCamera; … … 84 86 OgreSharedRuns* sharedRuns; 85 87 /** 86 @brief the name of the photonmaptexture that was created by this run88 @brief the name of the light volume texture that was created by this run 87 89 */ 88 90 String name; 89 /** 90 @brief a pointer to the photonmap texture that was created by this run 91 */ 91 92 92 Texture* lightVolumeTexture; 93 93 Texture* lightVolumeTexture2; 94 94 Texture* lightVolumeTextureThis; 95 95 Texture* lightVolumeTextureLast; 96 97 Texture* lightVolumeTexture3D; 98 99 unsigned char* volumeBuffer; 96 100 /** 97 @brief a pointer to the photonmap texture that was created by this run101 @brief the radius of the particle system 98 102 */ 99 Texture* lightVolumeTexture3D;100 unsigned char* volumeBuffer;101 103 float systemRadius; 102 103 104 void createVolumeBuffer(); 104 105 -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgrePMEntryPointMapRenderingRun.h
r2200 r2264 13 13 14 14 /** 15 @brief ColorCubeMapRenderingRun used in an OGRE environment. 15 @brief Entry point map computing run. 16 17 This map is used in the pathmap technique. It stores entry point positions and normals. 18 This texture will be used to determine the amount of incoming light to an entry point. @see OgrePMWeightComputeRenderingRun 16 19 */ 17 20 class OgrePMEntryPointMapRenderingRun : public OgreRenderingRun … … 22 25 @brief Constructor. 23 26 24 27 @param name the name of the entry point texture created ny this run 25 28 */ 26 29 OgrePMEntryPointMapRenderingRun(String name); 27 30 /** 28 @brief returns the name of the camera depthtexture31 @brief returns the name of the entry point texture 29 32 */ 30 33 String getEntryPointTextureName(){return name;} 34 /** 35 @brief returns the name of the cluster length texture. 36 37 This texture stores the size (number of entripoints) of each entry point cluster. 38 */ 31 39 String getClusterLengthTextureName(){return clusterLengthTexture->getName();} 32 40 33 41 protected: 42 34 43 /** 35 44 @brief the name of the entry point texture that was created by this run … … 37 46 String name; 38 47 /** 39 @brief a pointer to the scene depthtexture that was created by this run48 @brief a pointer to the entry point texture that was created by this run 40 49 */ 41 50 Texture* entryPointTexture; 51 /** 52 @brief a pointer to the cluster length texture that was created by this run 53 54 This texture stores the size (number of entripoints) of each entry point cluster. 55 */ 42 56 Texture* clusterLengthTexture; 43 57 44 58 //inherited 45 59 void updateFrame(unsigned long frameNum); 46 60 /** 61 @brief Creates and fills the entry point and the cluster length texture. 62 */ 47 63 inline void createEntryPointMap(); 48 64 //inherited 49 65 bool needUpdate(unsigned long frameNum ) 50 66 { -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgrePMWeightComputeRenderingRun.h
r2200 r2264 13 13 14 14 /** 15 @brief ColorCubeMapRenderingRun used in an OGRE environment. 15 @brief Weight computing rendering run. 16 17 This run is used in the pathmap technique. 18 It creates a texture for a light source that stores the weights that should be used for each cluster of entry points. 16 19 */ 17 20 class OgrePMWeightComputeRenderingRun : public OgreRenderingRun … … 22 25 @brief Constructor. 23 26 24 27 @param name the name of the weight texture to be created 28 @param LightName the name of the light source to use 25 29 */ 26 30 OgrePMWeightComputeRenderingRun(String name, String LightName); 27 31 /** 28 @brief returns the name of the camera depthtexture32 @brief returns the name of the weight texture 29 33 */ 30 34 String getPMWeightTetureName(){return weightTexture->getName();} 35 //not used 31 36 float* getWeights(){return weights;} 32 37 33 38 protected: 34 39 /** 35 @brief pointer to the player's viewport40 @brief light view-projection matrix 36 41 */ 37 42 Matrix4 lightMatrix; 43 /** 44 @brief light view matrix 45 */ 38 46 Matrix4 lightViewMatrix; 39 47 /** … … 42 50 String name; 43 51 /** 44 @brief a pointer to the scene depthtexture that was created by this run52 @brief a pointer to the weight texture that was created by this run 45 53 */ 46 54 Texture* weightTexture; 55 /** 56 @brief A pointer to a texture that stores weights for all the entry point. 57 58 This texture will be used to determine the weights of the clusters. 59 */ 47 60 Texture* allWeightsTexture; 48 61 /** 62 @brief A pointer to the light source. 63 */ 49 64 Light* light; 50 65 //not used 51 66 float* weights; 52 53 67 //inherited 54 68 void updateFrame(unsigned long frameNum); 55 69 /** 70 @brief Creates the weight texture. 71 72 It also creates the texture storing all weights. @see allWeightsTexture 73 */ 56 74 inline void createWeightMap(); 57 75 }; -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgrePhaseTextureRenderingRun.h
r1425 r2264 14 14 15 15 /** 16 @brief ColorCubeMapRenderingRun used in an OGRE environment.16 @brief PhaseTextureRenderingRun used in an OGRE environment. 17 17 */ 18 18 class OgrePhaseTextureRenderingRun : public OgreRenderingRun, … … 24 24 @brief Constructor. 25 25 26 @param sharedRuns a pointer to the OgreSharedRuns this run belongs to 27 @param name the name of the depth map texture to be created 28 @param light the light source this depth shadow map belongs to 29 @param resolutionX the resolution width of the depth shadow map 30 @param resolutionY the resolution height of the depth shadow map 31 @param materialName the name of the material to be used when rendering the depth shadow map 26 @param name the name of the phase texture to be created 27 @param resolutionX the resolution width of the phase texture 28 @param resolutionY the resolution height of the phase texture 29 @param materialName the name of the material to be used when rendering the phase texture 32 30 */ 33 31 OgrePhaseTextureRenderingRun( String name, … … 37 35 38 36 /** 39 @brief returns the depth shadow maptexture created by this run37 @brief returns the name of thew phase texture created by this run 40 38 */ 41 39 String getPhaseTextureName(){return name;} … … 54 52 */ 55 53 Texture* phaseTexture; 54 /** 55 @brief a pointer to the camera that was used while rendering the phase texture 56 */ 56 57 Camera* phaseCamera; 57 58 58 59 //inherited 59 60 void updateFrame(unsigned long frameNum); 61 /** 62 @brief Creates the phase texture. 63 */ 60 64 inline void createPhaseTexture(); 61 65 -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgrePhotonMapRenderingRun.h
r1722 r2264 14 14 15 15 /** 16 @brief ColorCubeMapRenderingRun used in an OGRE environment.16 @brief PhotonMapRenderingRun used in an OGRE environment. 17 17 */ 18 18 class OgrePhotonMapRenderingRun : public OgreRenderingRun, … … 28 28 @param startFrame adds an offset to the current frame number to help evenly distribute updates between frames 29 29 @param updateInterval update frequency 30 @param resolution color cubemap resolution31 @param materialName the name of the material should be used when rendering the choton hit map30 @param resolution photon map resolution 31 @param materialName the name of the material should be used when rendering the photon hit map 32 32 @param useDistance tells if a distance cubemap impostor should be used in photon hit calculation (recommended) 33 33 */ … … 40 40 bool useDistance); 41 41 /** 42 @brief returns the name of the resulting photon hit map 42 @brief returns the name of the resulting photon hit map texture 43 43 */ 44 44 String getPhotonMapTextureName(){return name;} … … 47 47 */ 48 48 void refreshLight(); 49 49 //inherited 50 50 bool canJoin(RenderingRun* run) 51 51 { … … 55 55 return false; 56 56 } 57 //inherited 57 58 void distanceCubeMapChanged(RenderingRun* run); 58 59 //inherited 59 60 void distanceCubeMapUpdated(RenderingRun* run); 60 61 61 62 protected: 62 63 /** 63 @brief the name of the material should be used when rendering the choton hit map64 @brief the name of the material should be used when rendering the photon hit map 64 65 */ 65 66 String materialName; … … 69 70 Light* light; 70 71 /** 71 @brief the c reated photon hit map texture72 @brief the camera used while rendering the photon hit map 72 73 */ 73 74 Camera* photonMapCamera; … … 81 82 OgreSharedRuns* sharedRuns; 82 83 /** 83 @brief the name of the photon map texture that was created by this run84 @brief the name of the photon map texture that was created by this run 84 85 */ 85 86 String name; 86 87 /** 87 @brief a pointer to the photon map texture that was created by this run88 @brief a pointer to the photon map texture that was created by this run 88 89 */ 89 90 Texture* photonMapTexture; -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgreReducedCubeMapRenderingRun.h
r790 r2264 14 14 15 15 /** 16 @brief ColorCubeMapRenderingRun used in an OGRE environment.16 @brief ReducedCubeMapRenderingRun used in an OGRE environment. 17 17 */ 18 18 class OgreReducedCubeMapRenderingRun : public OgreRenderingRun, … … 47 47 48 48 /** 49 @brief returns the name of the resulting reduced sized color cubemap texture49 @brief returns the name of the resulting downsampled color cubemap texture 50 50 */ 51 51 String& getReducedCubeMapTextureName(){return name;} … … 60 60 OgreSharedRuns* sharedRuns; 61 61 /** 62 @brief the name of the cubemap texture that was created by this run62 @brief the name of the downsampled cubemap texture that was created by this run 63 63 */ 64 64 String name; 65 65 /** 66 @brief a pointer to the cubemap texture that was created by this run66 @brief a pointer to the downsampled cubemap texture that was created by this run 67 67 */ 68 68 Texture* reducedCubemapTexture; -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgreSceneCameraDepthRenderingRun.h
r790 r2264 14 14 15 15 /** 16 @brief ColorCubeMapRenderingRun used in an OGRE environment.16 @brief SceneCameraDepthRenderingRun used in an OGRE environment. 17 17 */ 18 18 class OgreSceneCameraDepthRenderingRun : public OgreRenderingRun, … … 25 25 26 26 @param sharedRuns a pointer to the OgreSharedRuns this run belongs to 27 @param name the name of the scenedepth texture to be created27 @param name the name of the depth texture to be created 28 28 @param playerView pointer to the player's viewport 29 29 */
Note: See TracChangeset
for help on using the changeset viewer.