CloudParams Class Reference

Parameters for createCloud() - only supports standard sprites for now (will support billboard and point sprites). More...

#include <Commons.h>

List of all members.

Public Member Functions

 CloudParams ()
 Put default values (which are random but quite nice).

Public Attributes

unsigned int numSprites
 Number of sprites to create.
boost::filesystem::path imagePath
 Image to use for sprites.
float ratio
 Ratio between height and base of the cloud.
float density
 Density of sprites ; the higher, the smaller the cloud will be for a given numSprites.
float spriteSizeMin
 Minimum size of each sprite.
float spriteSizeMax
 Maximum size of each sprite.
const osg::Vec3 axis
 Direction the sprite should face (For SPRITE mode), or billboard axis (for BILLBOARD_AXIS mode). Useless for BILLBOARD_EYE and POINT_SPRITE.
osg::Vec4f lowColor
 Color for bottom elements.
osg::Vec4f hiColor
 Color for top elements.
float alphaOffsetMin
 Minimum offset to apply after hi/lowColor computation (might often be negative).
float alphaOffsetMax
 Maximum offset to apply after hi/lowColor computation (might often be negative).
float skewVMin
 Minimum reduction of the top: 0 = cloud is like a column, 1 = cloud is like a pyramid.
float skewVMax
 Maximum reduction of the top: 0 = cloud is like a column, 1 = cloud is like a pyramid.
float skewHMin
 Minimum ellipsoid factor (0 = line, 1 = circle).
float skewHMax
 Maximum ellipsoid factor (0 = line, 1 = circle).
float colorScaleRand
 Random amount when selecting color (between lowColor and hiColor), in [0;1].


Detailed Description

Parameters for createCloud() - only supports standard sprites for now (will support billboard and point sprites).

Definition at line 69 of file 3D/Commons.h.


Constructor & Destructor Documentation

CloudParams::CloudParams (  ) 

Put default values (which are random but quite nice).

Definition at line 340 of file 3D/Commons.cpp.

References density, rand(), ratio, spriteSizeMax, and spriteSizeMin.


Member Data Documentation

Maximum offset to apply after hi/lowColor computation (might often be negative).

Definition at line 87 of file 3D/Commons.h.

Referenced by createCloud().

Minimum offset to apply after hi/lowColor computation (might often be negative).

Definition at line 86 of file 3D/Commons.h.

Referenced by createCloud().

const osg::Vec3 CloudParams::axis

Direction the sprite should face (For SPRITE mode), or billboard axis (for BILLBOARD_AXIS mode). Useless for BILLBOARD_EYE and POINT_SPRITE.

Definition at line 83 of file 3D/Commons.h.

Referenced by createCloud().

Random amount when selecting color (between lowColor and hiColor), in [0;1].

Definition at line 92 of file 3D/Commons.h.

Referenced by createCloud().

Density of sprites ; the higher, the smaller the cloud will be for a given numSprites.

Definition at line 78 of file 3D/Commons.h.

Referenced by CloudParams(), and createCloud().

Color for top elements.

Definition at line 85 of file 3D/Commons.h.

Referenced by createCloud().

boost::filesystem::path CloudParams::imagePath

Image to use for sprites.

Definition at line 75 of file 3D/Commons.h.

Referenced by createCloud().

Color for bottom elements.

Definition at line 84 of file 3D/Commons.h.

Referenced by createCloud().

Number of sprites to create.

Definition at line 74 of file 3D/Commons.h.

Referenced by createCloud().

Ratio between height and base of the cloud.

Definition at line 77 of file 3D/Commons.h.

Referenced by CloudParams(), and createCloud().

Maximum ellipsoid factor (0 = line, 1 = circle).

Definition at line 91 of file 3D/Commons.h.

Referenced by createCloud().

Minimum ellipsoid factor (0 = line, 1 = circle).

Definition at line 90 of file 3D/Commons.h.

Referenced by createCloud().

Maximum reduction of the top: 0 = cloud is like a column, 1 = cloud is like a pyramid.

Definition at line 89 of file 3D/Commons.h.

Referenced by createCloud().

Minimum reduction of the top: 0 = cloud is like a column, 1 = cloud is like a pyramid.

Definition at line 88 of file 3D/Commons.h.

Referenced by createCloud().

Maximum size of each sprite.

Definition at line 80 of file 3D/Commons.h.

Referenced by CloudParams(), and createCloud().

Minimum size of each sprite.

Definition at line 79 of file 3D/Commons.h.

Referenced by CloudParams(), and createCloud().


The documentation for this class was generated from the following files:

Generated on Sun Jan 17 11:39:26 2010 for PVLE (Pro-Vocation Light Engine) by  doxygen 1.5.9