Hi,

You can find an example of tiling textures at
http://blog.tartiflop.com/2008/11/first-steps-in-away3d-part-3-texture-mapping/
as well as a general tutorial on texture mapping.

To tile you need to use a TransformBitmapMaterial, passing parameters
to indicate that you want the texture to be tiled. For example :

var tiledAway3DMaterial:TransformBitmapMaterial = new
TransformBitmapMaterial(Cast.bitmap(away3DBitmap), {repeat:true,
scaleX:.5, scaleY:.5});
var cube:Cube = new Cube({material:tiledAway3DMaterial, width:75,
height:75, depth:75});

Hope this helps,
Stuart



On Dec 11, 9:34 am, stephan <[EMAIL PROTECTED]> wrote:
> var cube1:Object3D = new Cube({material:"damwand.jpg",depth:
> tbreedte.text ,width: tlengte.text ,height: thoogte.text});
>
> i got this cube code here.
> But i want to us e's tile on it.
> So that i can repeat the “damwand.jpg” picture on all side of the cube
> multiple time's.
> i got a few examples from the Internet.
> .but i cant figure out how to do that.
> can somebody help me?

Reply via email to