Package | org.papervision3d.core.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 | ||
materialLocation : String = ""
If an external file is being used, this is the relative or absolute URL of the file
| MaterialsListItem | ||
materialName : String = ""
The name given to a texture after importing into a 3D application (IE: 3D Studio Max, Maya, Blender).
| MaterialsListItem | ||
materialType : String = "BitmapAssetMaterial"
There are 3 types of materials that can be used with this component:
| MaterialsListItem | ||
minimumRenderSize : Number = 2
If you're using a precision material, this is the setting for how small your triangles can be before the recursion loop will draw the face
| MaterialsListItem | ||
precision : Number = 1
If you're using a precision material, this is the setting for how precise you want it to be.
| MaterialsListItem | ||
precisionMaterial : Boolean = false
Boolean flag indicating whether or not the material is Interactive.
| MaterialsListItem | ||
singleSided : Boolean = true
Boolean flag indicating whether or not the material should be drawn on both sides
| MaterialsListItem | ||
smooth : Boolean = false
whether or not to apply smoothing to the bitmap fill on the triangles of this material
| MaterialsListItem | ||
transparent : Boolean = true
If set to true, preserves the alpha information of the Material being used
| MaterialsListItem |
animated | property |
public var animated:Boolean = true
Boolean flag indicating whether or not the material should be redrawn in the render loop
interactive | property |
public var interactive:Boolean = false
Boolean flag indicating whether or not the material is Interactive. If set to true, the DisplayObject3D this material is assigned to will dispatch mouse events.
materialLocation | property |
public var materialLocation:String = ""
If an external file is being used, this is the relative or absolute URL of the file
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 = "BitmapAssetMaterial"
There are 3 types of materials that can be used with this component:
minimumRenderSize | property |
public var minimumRenderSize:Number = 2
If you're using a precision material, this is the setting for how small your triangles can be before the recursion loop will draw the face
precision | property |
public var precision:Number = 1
If you're using a precision material, this is the setting for how precise you want it to be. A setting of one is pretty accurate.
precisionMaterial | property |
public var precisionMaterial:Boolean = false
Boolean flag indicating whether or not the material is Interactive. If set to true, the DisplayObject3D this material is assigned to will dispatch mouse events.
singleSided | property |
public var singleSided:Boolean = true
Boolean flag indicating whether or not the material should be drawn on both sides
smooth | property |
public var smooth:Boolean = false
whether or not to apply smoothing to the bitmap fill on the triangles of this material
transparent | property |
public var transparent:Boolean = true
If set to true, preserves the alpha information of the Material being used