| Package | de.popforge.imageprocessing.filters.distortion |
| Class | public final class QuickBumpMap |
| Inheritance | QuickBumpMap DisplacementMap NativeFilter |
This approach comes from Ralph Hauwert.
Supported formats:
var filter: QuickBumpMap = new QuickBumpMap( bumpMap, lightMap, 80, 60 ); var lightMap: Image = Image.fromBitmapData( lightMap_, ImageFormat.RGB ); var bumpMap: Image = Image.fromBitmapData( bumpMap_, ImageFormat.RGB ); var image: Image = Image.fromBitmapData( textureMap, ImageFormat.RGB ); filter.apply( image );
See also
| Property | Defined by | ||
|---|---|---|---|
| lightX : Number
The x position of the light map.
| QuickBumpMap | ||
| lightY : Number
The y position of the light map.
| QuickBumpMap | ||
| Method | Defined by | ||
|---|---|---|---|
|
QuickBumpMap(bumpMap:Image, lightMap:Image, lightX:Number = 10, lightY:Number = 10, lightColor:int = 0xffffff, convertToNormalMap:Boolean = true)
Creates a new QuickBumpMap object.
| QuickBumpMap | ||
|
Applies the filter to the given Image object.
| QuickBumpMap | ||
|
toString():String
Builds and returns a string containing the name of the class.
| QuickBumpMap | ||
| lightX | property |
lightX:Number [read-write]The x position of the light map.
Implementation public function get lightX():Number
public function set lightX(value:Number):void
| lightY | property |
lightY:Number [read-write]The y position of the light map.
Implementation public function get lightY():Number
public function set lightY(value:Number):void
| QuickBumpMap | () | constructor |
public function QuickBumpMap(bumpMap:Image, lightMap:Image, lightX:Number = 10, lightY:Number = 10, lightColor:int = 0xffffff, convertToNormalMap:Boolean = true)Creates a new QuickBumpMap object.
ParametersbumpMap:Image — The bump map that should be applied to the image.
|
|
lightMap:Image — The light map that should be applied to the image.
|
|
lightX:Number (default = 10) — The x position of the light map.
|
|
lightY:Number (default = 10) — The y position of the light map.
|
|
lightColor:int (default = 0xffffff) — The color multiplier for the light map (0xffffff would not change anything of the color).
|
|
convertToNormalMap:Boolean (default = true) — Set this to false if you already converted your bump map into a normal map.
|
| apply | () | method |
public override function apply(image:Image):voidApplies the filter to the given Image object.
Parametersimage:Image — The image that will be manipulated.
|
| toString | () | method |
public override function toString():StringBuilds and returns a string containing the name of the class.
ReturnsString — A string containing the name of the class.
|