25#ifndef _Hydrax_Modules_RadialGrid_H_
26#define _Hydrax_Modules_RadialGrid_H_
40namespace Hydrax{
namespace Module
123 const float &_Radius,
125 const bool &_ChoppyWaves,
126 const float &_ChoppyStrength,
127 const float &_StepSizeCube,
128 const float &_StepSizeFive,
129 const float &_StepSizeLin,
130 const float &_Strength)
175 void update(
const Ogre::Real &timeSinceLastFrame);
185 void saveCfg(Ogre::String &Data);
190 bool loadCfg(Ogre::ConfigFile &CfgFile);
196 float getHeigth(
const Ogre::Vector2 &Position);
NormalMode
Normal generation mode.
Class wich contains all funtions/variables related to Hydrax water mesh.
Base module class, Override it for create different ways of create water noise.
Hydrax radial grid module.
float getHeigth(const Ogre::Vector2 &Position)
Get the current heigth at a especified world-space point.
void saveCfg(Ogre::String &Data)
Save config.
bool loadCfg(Ogre::ConfigFile &CfgFile)
Load config.
void * mVertices
Vertex pointer (Mesh::POS_NORM_VERTEX or Mesh::POS_VERTEX)
Mesh::POS_NORM_VERTEX * mVerticesChoppyBuffer
Use it to store vertex positions when choppy displacement is enabled.
void _calculeNormals()
Calcule current normals.
void _performChoppyWaves()
Perform choppy waves.
const Options & getOptions() const
Get current options.
Hydrax * mHydrax
Our Hydrax pointer.
const bool _createGeometry(Mesh *mMesh) const
Create geometry in module(If special geometry is needed)
void setOptions(const Options &Options)
Set options.
void update(const Ogre::Real &timeSinceLastFrame)
Call it each frame.
Options mOptions
Our projected grid options.
Base noise class, Override it for create different ways of create water noise.
Vertex struct for position and normals data.
Struct wich contains Hydrax simple grid module options.
float Radius
Radius (In world units)
Options(const int &_Steps, const int &_Circles, const float &_Radius)
Constructor.
float ChoppyStrength
Choppy waves strength.
float StepSizeFive
Step size five.
int Circles
Number of circles.
int Steps
Number of steps (Per circle)
Options()
Default constructor.
float Strength
Water strength.
bool ChoppyWaves
Choppy waves.
Options(const int &_Steps, const int &_Circles, const float &_Radius, const bool &_Smooth, const bool &_ChoppyWaves, const float &_ChoppyStrength, const float &_StepSizeCube, const float &_StepSizeFive, const float &_StepSizeLin, const float &_Strength)
Constructor.
float StepSizeCube
Step cube size.
float StepSizeLin
Step lin size.