| Package | org.papervision3d.components.as3.collections |
| Class | public class MaterialsListItem |
When setting a material to "File", the external bitmap will be loaded at Design-time.
When setting a meterial to "MovieClip" or "Bitmap", a ColorMaterial (green) will be used to represent the material at design-time. At run-time, you should see your material used on the models.
One feature of the MaterialsListItem is that you can set the properties for a Bitmap or MovieClip and still setup up a temporary File location for Designtime.
This allows you to keep all of your settings while allowing a stand-in bitmap to be loaded at designtime.
| Property | Defined by | ||
|---|---|---|---|
| animated : Boolean = true
Boolean flag indicating whether or not the material should be redrawn in the render loop
| MaterialsListItem | ||
| interactive : Boolean = false
Boolean flag indicating whether or not the material is Interactive.
| MaterialsListItem | ||
| materialFileLocation : String = ""
If an external file is being used, this is the relative or absolute URL of the file
| MaterialsListItem | ||
| materialLinkageID : String = ""
LinkageID set in the library for a Bitmap or MovieClip asset
| MaterialsListItem | ||
| materialName : String = ""
The name given to a texture after importing into a 3D application (IE: 3D Studio Max, Maya, Blender).
| MaterialsListItem | ||
| materialType : String = "Bitmap"
There are 3 types of materials that can be used with this component:
| MaterialsListItem | ||
| singleSided : Boolean = true
Boolean flag indicating whether or not the material should be drawn on both sides
| MaterialsListItem | ||
| transparent : Boolean = true
If set to true, preserves the alpha information of the Material being used
| MaterialsListItem | ||
| animated | property |
public var animated:Boolean = trueBoolean flag indicating whether or not the material should be redrawn in the render loop
| interactive | property |
public var interactive:Boolean = falseBoolean flag indicating whether or not the material is Interactive. If set to true, the DisplayObject3D this material is assigned to will dispatch mouse events.
| materialFileLocation | property |
public var materialFileLocation:String = ""If an external file is being used, this is the relative or absolute URL of the file
| materialLinkageID | property |
public var materialLinkageID:String = ""LinkageID set in the library for a Bitmap or MovieClip asset
| materialName | property |
public var materialName:String = ""The name given to a texture after importing into a 3D application (IE: 3D Studio Max, Maya, Blender). The Collada object will use this as reference as to which material to use for texturing the objects that have been assigned the same material.
| materialType | property |
public var materialType:String = "Bitmap"There are 3 types of materials that can be used with this component:
| singleSided | property |
public var singleSided:Boolean = trueBoolean flag indicating whether or not the material should be drawn on both sides
| transparent | property |
public var transparent:Boolean = trueIf set to true, preserves the alpha information of the Material being used