Packageaway3d.materials.utils
Classpublic class WaterMap
InheritanceWaterMap Inheritance flash.display.BitmapData

Water maps allows you to stitch several procedural water normal maps and update the animation with a single method call. It extends BitmapData and as such can be used as a run-of-the-mill normal map. Water maps can be generated with 3D software such as Blender.

Public Properties
 PropertyDefined by
  smoothing : Boolean
Indicates whether or not to use smoothing on the normal map when upscaling
WaterMap
Public Methods
 MethodDefined by
  
WaterMap
(width:int, height:int, sourceWidth:int, sourceHeight:int, sourceMap:BitmapData, smoothing:Boolean = true)
Create a WaterMap object
WaterMap
  
showNext():void
Show the next step in the animation cycle
WaterMap
Property detail
smoothingproperty
smoothing:Boolean  [read-write]

Indicates whether or not to use smoothing on the normal map when upscaling

Implementation
    public function get smoothing():Boolean
    public function set smoothing(value:Boolean):void
Constructor detail
WaterMap()constructor
public function WaterMap(width:int, height:int, sourceWidth:int, sourceHeight:int, sourceMap:BitmapData, smoothing:Boolean = true)Parameters
width:int — The width of the material it will be used in
 
height:int — The height of the material it will be used in
 
sourceWidth:int — The original width of 1 tile in the map
 
sourceHeight:int — The original height of 1 tile in the map
 
sourceMap:BitmapData — The source stitched animation map
 
smoothing:Boolean (default = true) — Indicates whether or not to use smoothing on the normal map when upscaling
Init Parameters
Method detail
showNext()method
public function showNext():void

Show the next step in the animation cycle

Wiki link
Click to go to the wiki page for 'away3d.materials.utils.WaterMap'

Code examples

Comments