Package | away3d.materials |
Class | public class MovieMaterial |
Inheritance | MovieMaterial ![]() ![]() ![]() |
Implements | ITriangleMaterial, IUVMaterial |
Subclasses | VideoMaterial |
Property | Defined by | ||
---|---|---|---|
![]() | alpha : Number
Defines an alpha value for the texture bitmap.
| BitmapMaterial | |
autoUpdate : Boolean
Indicates whether the texture bitmap is updated on every frame
| MovieMaterial | ||
![]() | bitmap : BitmapData
Returns the bitmapData object being used as the material texture.
| BitmapMaterial | |
![]() | blendMode : String
Defines a blendMode value for the texture bitmap.
| BitmapMaterial | |
clipRect : Rectangle | MovieMaterial | ||
![]() | color : uint
Defines a colored tint for the texture bitmap.
| BitmapMaterial | |
![]() | colorTransform : ColorTransform
Defines a colortransform for the texture bitmap.
| BitmapMaterial | |
![]() | debug : Boolean
Toggles debug mode: textured triangles are drawn with white outlines, precision correction triangles are drawn with blue outlines.
| BitmapMaterial | |
![]() | globalProjection : Boolean
Determines whether a projected texture uses offsetX, offsetY and projectionVector values relative to scene cordinates.
| TransformBitmapMaterial | |
height : Number [read-only]
Returns the height of the bitmapData being used as the material texture.
| MovieMaterial | ||
![]() | id : int
Unique identifier
| BitmapMaterial | |
interactive : Boolean
Indicates whether the material will pass mouse interaction through to the movieclip
| MovieMaterial | ||
lockH : Number | MovieMaterial | ||
lockW : Number | MovieMaterial | ||
movie : Sprite
Defines the movieclip used for rendering the material
| MovieMaterial | ||
![]() | offsetX : Number
Offsets the x coordinates of the texture in uv-space
| TransformBitmapMaterial | |
![]() | offsetY : Number
Offsets the y coordinates of the texture in uv-space
| TransformBitmapMaterial | |
![]() | precision : Number
Corrects distortion caused by the affine transformation (non-perspective) of textures.
| BitmapMaterial | |
![]() | projectionVector : Number3D
Projects the texture in object space, ignoring the uv coordinates of the vertex objects.
| TransformBitmapMaterial | |
![]() | repeat : Boolean
Determines if texture bitmap will tile in uv-space
| BitmapMaterial | |
![]() | rotation : Number
Rotates the texture in uv-space
| TransformBitmapMaterial | |
![]() | scaleX : Number
Scales the x coordinates of the texture in uv-space
| TransformBitmapMaterial | |
![]() | scaleY : Number
Scales the y coordinates of the texture in uv-space
| TransformBitmapMaterial | |
![]() | showNormals : Boolean
Displays the normals per face in pink lines.
| BitmapMaterial | |
![]() | smooth : Boolean
Determines if texture bitmap is smoothed (bilinearly filtered) when drawn to screen.
| BitmapMaterial | |
![]() | throughProjection : Boolean
Determines whether a projected texture is visble on the faces pointing away from the projection.
| TransformBitmapMaterial | |
![]() | transform : Matrix
Transforms the texture in uv-space
| TransformBitmapMaterial | |
transparent : Boolean
Defines the transparent property of the texture bitmap created from the movie
| MovieMaterial | ||
![]() | visible : Boolean
Indicates whether the material is visible
| BitmapMaterial | |
width : Number [read-only]
Returns the width of the bitmapData being used as the material texture.
| MovieMaterial |
Method | Defined by | ||
---|---|---|---|
MovieMaterial
(movie:Sprite, init:Object = null)
Creates a new
BitmapMaterial object. | MovieMaterial | ||
![]() |
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| BitmapMaterial | |
![]() |
Clears facematerial value objects when bitmap requires updating
| BitmapMaterial | |
![]() | BitmapMaterial | ||
![]() |
getPixel32(u:Number, v:Number):uint
Returns the argb value of the bitmapData pixel at the given u v coordinate.
| TransformBitmapMaterial | |
![]() |
Invalidates facematerial value objects when texturemapping requires updating
| BitmapMaterial | |
![]() |
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| BitmapMaterial | |
![]() |
Sends data from the material coupled with data from the
DrawBillboard primitive to the render session. | BitmapMaterial | |
![]() |
renderBitmapLayer(tri:DrawTriangle, containerRect:Rectangle, parentFaceMaterialVO:FaceMaterialVO):FaceMaterialVO
Renders a bitmapData surface object for the speficied face.
| TransformBitmapMaterial | |
![]() |
Renders a material layer for the specified triangle.
| BitmapMaterial | |
![]() |
Sends data from the material coupled with data from the
DrawTriangle primitive to the render session. | TransformBitmapMaterial | |
update():void
Updates the texture bitmap with the current frame of the movieclip object
| MovieMaterial | ||
Called once per render loop when material is visible.
| MovieMaterial |
autoUpdate | property |
public var autoUpdate:Boolean
Indicates whether the texture bitmap is updated on every frame
clipRect | property |
clipRect:Rectangle
[read-write]Implementation
public function get clipRect():Rectangle
public function set clipRect(value:Rectangle):void
height | property |
height:Number
[read-only]Returns the height of the bitmapData being used as the material texture.
Implementation public function get height():Number
interactive | property |
public var interactive:Boolean
Indicates whether the material will pass mouse interaction through to the movieclip
lockH | property |
lockH:Number
[read-write]Implementation
public function get lockH():Number
public function set lockH(value:Number):void
lockW | property |
lockW:Number
[read-write]Implementation
public function get lockW():Number
public function set lockW(value:Number):void
movie | property |
movie:Sprite
[read-write]Defines the movieclip used for rendering the material
Implementation public function get movie():Sprite
public function set movie(value:Sprite):void
transparent | property |
public var transparent:Boolean
Defines the transparent property of the texture bitmap created from the movie
See also
width | property |
width:Number
[read-only]Returns the width of the bitmapData being used as the material texture.
Implementation public function get width():Number
MovieMaterial | () | constructor |
public function MovieMaterial(movie:Sprite, init:Object = null)
Parameters
movie:Sprite — The sprite object to be used as the material's texture.
|
|
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
transparent:Boolean (default = true) | |
autoUpdate:Boolean (default = true) | |
interactive:Boolean (default = false) | |
lockW:Number (default = movie.width) | |
lockH:Number (default = movie.height) |
update | () | method |
public function update():void
Updates the texture bitmap with the current frame of the movieclip object
See also
updateMaterial | () | method |
public override function updateMaterial(source:Object3D, view:View3D):void
Called once per render loop when material is visible.
Parameterssource:Object3D |
|
view:View3D |