j3d.examples.particles.shapes
Class CloudPuff

java.lang.Object
  extended by javax.media.j3d.SceneGraphObject
      extended by javax.media.j3d.Node
          extended by javax.media.j3d.Leaf
              extended by javax.media.j3d.Shape3D
                  extended by javax.media.j3d.OrientedShape3D
                      extended by j3d.examples.particles.shapes.ImplicitSurface
                          extended by j3d.examples.particles.shapes.CloudPuff

public class CloudPuff
extends ImplicitSurface

A oriented shape with a cloudy texture. The texture is created through a combination of a spherical implicit surface with a cubic density function with Perlin noise. The contribution of the implicit surface density versus noise is controled by the blend factor. The type of noise is controlled with the noise mode.


Field Summary
static int CLOUDS
           
static int FLAMES
           
static boolean shareGeometry
           
static int SMOKE
           
 
Fields inherited from class javax.media.j3d.OrientedShape3D
ALLOW_AXIS_READ, ALLOW_AXIS_WRITE, ALLOW_MODE_READ, ALLOW_MODE_WRITE, ALLOW_POINT_READ, ALLOW_POINT_WRITE, ALLOW_SCALE_READ, ALLOW_SCALE_WRITE, ROTATE_ABOUT_AXIS, ROTATE_ABOUT_POINT, ROTATE_NONE
 
Fields inherited from class javax.media.j3d.Shape3D
ALLOW_APPEARANCE_OVERRIDE_READ, ALLOW_APPEARANCE_OVERRIDE_WRITE, ALLOW_APPEARANCE_READ, ALLOW_APPEARANCE_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE, ALLOW_GEOMETRY_READ, ALLOW_GEOMETRY_WRITE
 
Fields inherited from class javax.media.j3d.Node
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Constructor Summary
CloudPuff()
           
CloudPuff(float aRadius)
           
CloudPuff(float aRadius, javax.vecmath.Color3f anAmbientColor)
           
CloudPuff(float aRadius, javax.vecmath.Color3f anAmbientColor, javax.vecmath.Color3f anEmissiveColor, double aBlendFactor, int octaves)
           
CloudPuff(float aRadius, javax.vecmath.Color3f anAmbientColor, javax.vecmath.Color3f anEmissiveColor, double aBlendFactor, int octaves, int aMode)
           
 
Method Summary
 double getBlend()
           
 void setBlend(double aBlendFactor)
          The blend factor controls the contributions of the implicit surface and the noise.
 
Methods inherited from class javax.media.j3d.OrientedShape3D
cloneNode, duplicateNode, getAlignmentAxis, getAlignmentMode, getConstantScaleEnable, getRotationPoint, getScale, setAlignmentAxis, setAlignmentAxis, setAlignmentMode, setConstantScaleEnable, setRotationPoint, setRotationPoint, setScale
 
Methods inherited from class javax.media.j3d.Shape3D
addGeometry, getAllGeometries, getAppearance, getAppearanceOverrideEnable, getBounds, getCollisionBounds, getGeometry, getGeometry, indexOfGeometry, insertGeometry, intersect, intersect, intersect, numGeometries, removeAllGeometries, removeGeometry, removeGeometry, setAppearance, setAppearanceOverrideEnable, setCollisionBounds, setGeometry, setGeometry
 
Methods inherited from class javax.media.j3d.Node
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

shareGeometry

public static boolean shareGeometry

CLOUDS

public static final int CLOUDS
See Also:
Constant Field Values

FLAMES

public static final int FLAMES
See Also:
Constant Field Values

SMOKE

public static final int SMOKE
See Also:
Constant Field Values
Constructor Detail

CloudPuff

public CloudPuff()

CloudPuff

public CloudPuff(float aRadius)

CloudPuff

public CloudPuff(float aRadius,
                 javax.vecmath.Color3f anAmbientColor)

CloudPuff

public CloudPuff(float aRadius,
                 javax.vecmath.Color3f anAmbientColor,
                 javax.vecmath.Color3f anEmissiveColor,
                 double aBlendFactor,
                 int octaves)

CloudPuff

public CloudPuff(float aRadius,
                 javax.vecmath.Color3f anAmbientColor,
                 javax.vecmath.Color3f anEmissiveColor,
                 double aBlendFactor,
                 int octaves,
                 int aMode)
Method Detail

getBlend

public double getBlend()

setBlend

public void setBlend(double aBlendFactor)
The blend factor controls the contributions of the implicit surface and the noise. The aBlendFactor must be in the range of [0..1]. High blend values favor the implicit surface with a value of 1.0 resulting in a sphere (the implicit surface). Lower values add more noise or roughness to the cloud.

Parameters:
aBlendFactor -