3 #include "CloudGenerator.h"
4 #include "CloudScene.h"
13 namespace osgCloudyDay
55 void AddEllipsoide(osg::Vec3 radius, osg::Vec3 position,
float lifetime);
76 void DefineInitValues();
81 void Interpolate(
float& t);
90 inline int Index(
int i,
int j,
int k);
95 inline bool IsCellInSpace(
int x,
int y,
int z);
100 void UpdateEllisoides();
105 bool IsOutside(osg::Vec3 pos);
121 void InitCell(
int x,
int y,
int z,
float fProbSeed );
141 void AdvectionWind();
143 float* m_current_density;
146 unsigned int** m_hum;
147 unsigned int** m_act;
148 unsigned int** m_cld;
149 unsigned int* m_fact;
165 unsigned int m_elapsedSteps;
170 osg::Vec3 windVector;
173 osg::ref_ptr<osg::Vec3Array> m_positions;
174 osg::ref_ptr<osg::Vec3Array> m_radius;
175 osg::ref_ptr<osg::UIntArray> m_lifetimes;
179 osg::Vec3* randomPos;
180 osg::Vec3 windDirection;