Packagecom.as3dmod.modifiers
Classpublic class Perlin
InheritancePerlin Inheritance BitmapDisplacement Inheritance Modifier
ImplementsIModifier

Perlin modifier. Displaces vertices based on a perlin noise bitmap. Generates a perlin noise bitmap and displaces vertices based on the color value of each pixel of the noise map.



Public Properties
 PropertyDefined by
  autoRun : Boolean
Perlin
 Inheritedaxes : int
BitmapDisplacement
 Inheritedbitmap : BitmapData
BitmapDisplacement
 Inheritedforce : Number
BitmapDisplacement
  source : PerlinNoise
Perlin
  speedX : Number = 1
Perlin
  speedY : Number = 1
Perlin
Protected Properties
 PropertyDefined by
 Inherited_axes : int = 7
BitmapDisplacement
 Inherited_bitmap : BitmapData
BitmapDisplacement
 Inherited_force : Number
BitmapDisplacement
 Inheritedmod : MeshProxy
Modifier
 Inheritedoffset : Number = 0x80
BitmapDisplacement
Public Methods
 MethodDefined by
  
Perlin(f:Number = 1, n:PerlinNoise = null, a:Boolean = true)
Perlin
  
apply():void
Perlin
 Inherited
getUVPixel(u:Number, v:Number):uint
BitmapDisplacement
 Inherited
getVertices():Array
Modifier
 Inherited
Modifier
Public Constants
 ConstantDefined by
  GREY : uint = 0x80808080
[static]
Perlin
Property detail
autoRunproperty
public var autoRun:Boolean
sourceproperty 
public var source:PerlinNoise
speedXproperty 
public var speedX:Number = 1
speedYproperty 
public var speedY:Number = 1
Constructor detail
Perlin()constructor
public function Perlin(f:Number = 1, n:PerlinNoise = null, a:Boolean = true)

Parameters
f:Number (default = 1) — Force
 
n:PerlinNoise (default = null) — instance of PerlinNoise class to be used as source for displacement
 
a:Boolean (default = true) — if set to true the perlin noise will be offseted at each call to 'apply', making the modifier animated automatically.
Method detail
apply()method
public override function apply():void
Constant detail
GREYconstant
public static const GREY:uint = 0x80808080