|
The content of Flash MovieClips can be used to texture your 3D model.
To change the material used to texture a 3D surface with a a Flash MovieClip, use the same syntax as for a standard texture change, but use a MovieClip reference for the final parameter: myPlainMaterial.setData("texture", 1, "name", "brownBox.jpg"); //standard texture change myExcitingMaterial.setData("texture", 1, "name", mappedMovie_mc); //movieclip texture change Notes:
- The extent of the MovieClip is its bounds at the time that the setData() method was executed. This extent will remain its size even if shapes in the MovieClip later move outside those bounds. Any blank areas of the movieclip will be filled with the background color. It is recommended that you ensure mapped MovieClips have a background rectangle that is the maximum size that the MovieClip ever needs to be.
- If the MovieClip gets removed from the stage while mapped to 3D, then it will remain on the 3D, but will no longer update.
- MovieClips to be mapped on to 3D can be either on or off the stage.
To see an example of this, please refer to the Material Properties sample project in the Blaze 3D Extras. |