#include <PerlinNoiseCloud.h>
List of all members.
Public Member Functions |
| | PerlinNoiseCloud (void) |
| | ~PerlinNoiseCloud (void) |
| void | Initialize () |
| virtual void | SetupGeometry (osg::Vec3 position, osg::Vec2 size, osg::Vec3Array *vertices, osg::Vec2Array *tcoords, osg::UIntArray *indices) |
| | Cloud2D () |
| | ~Cloud2D () |
| void | Cloud2D::SetGeometry () |
| void | Cloud2D::SetGeometry (osg::Vec3 position, osg::Vec2 size) |
| void | Cloud2D::Create (osg::Geode *geode, osg::Image *perlinImg) |
| void | Create (osg::Geode *geode, osg::Image *perlinImg, osg::Image *perlinNormalImg) |
| void | Create (osg::Geode *geode, osg::Image *perlinImg, osg::Image *perlinNormalImg, osg::Image *perlinHeightImg) |
| osg::Image * | CreateNormalMap (osg::Image *img) |
Additional Inherited Members |
|
osg::Geometry * | geom |
|
osg::Geode * | geode |
|
osg::Node * | terrain_obj |
|
bool | m_tesselation |
|
osg::Vec3Array * | coords |
|
osg::Vec2Array * | tcoords |
|
osg::UIntArray * | indices |
Detailed Description
Class to create a 2D cloud with a Perlin noise cloud Results in a altcumolus cloud
Constructor & Destructor Documentation
| osgCloudyDay::PerlinNoiseCloud::PerlinNoiseCloud |
( |
void |
| ) |
|
| osgCloudyDay::PerlinNoiseCloud::~PerlinNoiseCloud |
( |
void |
| ) |
|
Member Function Documentation
| float osgCloudyDay::PerlinNoiseCloud::Cosine_Interpolate |
( |
float |
a, |
|
|
float |
b, |
|
|
float |
x |
|
) |
| |
|
protected |
Returns the cosine interpolated noise value at a specific coordinate
- Parameters:
-
| x | x-coordinate |
| y | y-coordinate |
| x | value |
- Returns:
- smoothed noise value
| void osgCloudyDay::PerlinNoiseCloud::CreatePerlinTexture2D |
( |
int |
width, |
|
|
int |
height, |
|
|
osg::Image * |
color, |
|
|
osg::Image * |
normal |
|
) |
| |
|
protected |
Method to create a 2D Perlin noise texture
- Parameters:
-
| width | width of the texture |
| height | height of the texture |
| color | color texture |
| normal | normal texture |
| void osgCloudyDay::PerlinNoiseCloud::Initialize |
( |
| ) |
|
| float osgCloudyDay::PerlinNoiseCloud::InterpolatedNoise |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
protected |
Returns the interpolated noise value at a specific coordinate
- Parameters:
-
| x | x-coordinate |
| y | y-coordinate |
- Returns:
- interpolated noise value
| float osgCloudyDay::PerlinNoiseCloud::Noise |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
protected |
Returns noise value at a specific coordinate
- Parameters:
-
| x | x-coordinate |
| y | y-coordinate |
- Returns:
- noise value
| float osgCloudyDay::PerlinNoiseCloud::PerlinNoise |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
protected |
Returns the perlin noise value at a specific coordinate
- Parameters:
-
| x | x-coordinate |
| y | y-coordinate |
- Returns:
- Perlin noise value
| void osgCloudyDay::PerlinNoiseCloud::SetNoise |
( |
float * |
map | ) |
|
|
protected |
Sets the noise values
- Parameters:
-
| void osgCloudyDay::PerlinNoiseCloud::SetupGeometry |
( |
osg::Vec3 |
position, |
|
|
osg::Vec2 |
size, |
|
|
osg::Vec3Array * |
vertices, |
|
|
osg::Vec2Array * |
tcoords, |
|
|
osg::UIntArray * |
indices |
|
) |
| |
|
virtual |
Creates the Perlin noise cloud for rendering
- Parameters:
-
| position | position of the 2d cloud |
| size | size of the 2d cloud |
| vertices | vertices of the 2D cloud |
| tcoords | texture coordinates of the 2D cloud |
| indices | indices of the 2D cloud |
Implements osgCloudyDay::Cloud2D.
| float osgCloudyDay::PerlinNoiseCloud::SmoothedNoise |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
protected |
Returns smoothed noise value at a specific coordinate
- Parameters:
-
| x | x-coordinate |
| y | y-coordinate |
- Returns:
- smoothed noise value
The documentation for this class was generated from the following files: