Bitmap materials are used to display a texture map, usually a jpg, png, or gif image file on the su
object. TWaver 3D for Flex uses UV coordinates to manage the alignment of the texture map on
3D object.
object. TWaver 3D for Flex uses UV coordinates to manage the alignment of the texture map on
3D object.
If you want to map an image onto a face of the 3D object, you can use the following segment:
var sphere:Node = new Node();
sphere.setStyle(Style3D.THREED_SHAPE_TYPE,Consts3D.THREED_SHAPE_TYPE_SPHERE);
sphere. setStyle(Style3D.MAPPINGTYPE,Consts3D.MAPPINGTYPE_COMMON);
sphere.setStyle(Style3D.MAPPING_COMMON_PATH,"floorimage");