Packageaway3d.materials
Classpublic class EnviroBitmapMaterialCache
InheritanceEnviroBitmapMaterialCache Inheritance BitmapMaterialContainer Inheritance BitmapMaterial Inheritance flash.events.EventDispatcher

Bitmap material with cached environment shading.

Public Properties
 PropertyDefined by
 Inheritedalpha : Number
Defines an alpha value for the texture bitmap.
BitmapMaterial
  bitmap : BitmapData
[read-only] Returns the bitmapData object being used as the material texture.
EnviroBitmapMaterialCache
 InheritedblendMode : String
Defines a blendMode value for the texture bitmap.
BitmapMaterial
 Inheritedcache : Boolean
Defines whether each created bitmapData surface is to be cached, or updated every frame.
BitmapMaterialContainer
 Inheritedcolor : uint
Defines a colored tint for the texture bitmap.
BitmapMaterial
 Inheriteddebug : Boolean = false
Toggles debug mode: textured triangles are drawn with white outlines, precision correction triangles are drawn with blue outlines.
BitmapMaterial
  enviroMap : BitmapData
[read-only] Returns the bitmapData object being used as the material environment map.
EnviroBitmapMaterialCache
 Inheritedheight : Number
Returns the height of the bitmapData being used as the material texture.
BitmapMaterial
 Inheritedmaterials : Array
An array of bitmapmaterial objects to be overlayed sequentially.
BitmapMaterialContainer
  mode : String
Setting for possible mapping methods.
EnviroBitmapMaterialCache
 Inheritedprecision : Number
Corrects distortion caused by the affine transformation (non-perpective) of textures.
BitmapMaterial
  reflectiveness : Number
Coefficient for the reflectiveness of the material.
EnviroBitmapMaterialCache
 Inheritedrepeat : Boolean = false
Determines if texture bitmap will tile in uv-space
BitmapMaterial
 Inheritedsmooth : Boolean = false
Determines if texture bitmap is smoothed (bilinearly filtered) when drawn to screen.
BitmapMaterial
 Inheritedtransparent : Boolean
Defines whether the caching bitmapData objects are transparent
BitmapMaterialContainer
 Inheritedvisible : Boolean
Indicates whether the material is visible
BitmapMaterial
 Inheritedwidth : Number
Returns the width of the bitmapData being used as the material texture.
BitmapMaterial
Protected Properties
 PropertyDefined by
 Inheritedini : Init
Instance of the Init object used to hold and parse default property values specified by the initialiser object in the 3d object constructor.
BitmapMaterial
Public Methods
 MethodDefined by
  
EnviroBitmapMaterialCache
(bitmap:BitmapData, enviroMap:BitmapData, init:Object = null)
Creates a new EnviroBitmapMaterialCache object.
EnviroBitmapMaterialCache
 Inherited
addOnResize(listener:Function):void
Default method for adding a materialresize event listener
BitmapMaterial
 Inherited
getPixel32(u:Number, v:Number):uint
Returns the argb value of the bitmapData pixel at the given u v coordinate.
BitmapMaterial
 Inherited
removeOnResize(listener:Function):void
Default method for removing a materialresize event listener
BitmapMaterial
 Inherited
renderFace(face:Face, containerRect:Rectangle, parentFaceVO:FaceVO):FaceVO
Renders a bitmapData surface object for the speficied face.
BitmapMaterialContainer
 Inherited
renderLayer(tri:DrawTriangle, layer:Sprite, level:int):void
Renders a material layer for the specified triangle.
BitmapMaterial
 Inherited
Sends data from the material coupled with data from the DrawTriangle primitive to the render session.
BitmapMaterial
 Inherited
update():void
Clear and updates the currrent bitmapData surface on all faces.
BitmapMaterialContainer
 Inherited
updateMaterial(source:Object3D, view:View3D):void
Creates a new BitmapMaterialContainer object.
BitmapMaterialContainer
Protected Methods
 MethodDefined by
 Inherited
getMapping(tri:DrawTriangle):Matrix
Calculates the mapping matrix required to draw the triangle texture to screen.
BitmapMaterialContainer
 Inherited
Updates the colortransform object applied to the texture from the color and alpha properties.
BitmapMaterial
 Inherited
Updates the texture bitmapData with the colortransform determined from the color and alpha properties.
BitmapMaterialContainer
Events
 EventSummaryDefined by
 Inherited Dispatched when the bitmapData used for the material texture is resized.BitmapMaterial
Property detail
bitmapproperty
bitmap:BitmapData  [read-only]

Returns the bitmapData object being used as the material texture.

Implementation
    public function get bitmap():BitmapData
enviroMapproperty 
enviroMap:BitmapData  [read-only]

Returns the bitmapData object being used as the material environment map.

Implementation
    public function get enviroMap():BitmapData
modeproperty 
mode:String  [read-write]

Setting for possible mapping methods.

Implementation
    public function get mode():String
    public function set mode(value:String):void
reflectivenessproperty 
reflectiveness:Number  [read-write]

Coefficient for the reflectiveness of the material.

Implementation
    public function get reflectiveness():Number
    public function set reflectiveness(value:Number):void
Constructor detail
EnviroBitmapMaterialCache()constructor
public function EnviroBitmapMaterialCache(bitmap:BitmapData, enviroMap:BitmapData, init:Object = null)Parameters
bitmap:BitmapData — The bitmapData object to be used as the material's texture.
 
enviroMap:BitmapData — The bitmapData object to be used as the material's environment map.
 
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
####INIT####
Wiki link
Click to go to the wiki page for ####WIKI####

Code examples

Comments