« Papervision3D- Creating a Composite Material
Papervision3D- Bump Mapped Material »

Papervision3D- Tiling Materials

February 11th, 2008 . Posted by brad in Flash, Papervision3D

To create a tile material, you simply need to set the tiled property to true, and then set maxU and maxV properties to the number of tiles.eg.

var tiledMat:BitmapAssetMaterial = new BitmapAssetMaterial("AlgaeMetalPlate");
tiledMat.tiled = true;
tiledMat.maxU = 2;
tiledMat.maxV = 2;

tiled material

Example
Source



5 Responses to “Papervision3D- Tiling Materials”

  • Posted: boblemarin on July 21st, 2008 at 9:11 pm .

    The tiled property seems to fail working with BitmapFileMaterial.

    One should use a Loader to get the BitmapData and pass it to a BitmapMaterial in order to make it work.

  • Posted: boblemarin on July 21st, 2008 at 9:17 pm .

    Or simply update the maxU and maxV properties once the bitmap is loaded.

  • Posted: brad on July 23rd, 2008 at 6:50 pm .

    thanks for pointing that out.

  • Posted: Neviton on August 26th, 2008 at 10:38 pm .

    How can I flip the texture?
    I tried use the opposite material attribute but without sucess.
    Can I use maxU or maxV = -1 ?

  • Posted: brad on September 5th, 2008 at 9:48 am .

    Hi Neviton,

    I haven’t tried flipping a texture, but a simple hack might be to place the material inside a moviematerial, and then simply manipulate the scaleX property of the movieclip.

    Failing that, try posting this question to the papervision mailing list.


Add Comment

Comment