BitmapMaterial is not tiling

Software: Away3D 4.x

zvone, Newbie
Posted: 20 October 2011 10:44 PM   Total Posts: 7

Hello, I have 800x800 Plane which I want to texture with 16x16 external image.
Problem is that 1 16x16 texture is stretched over whole plane which makes it look really ugly, what am I doing wrong here?

[Embed(source="../diamondtext.png")]
private var DIAMOND_TEXTURE: Class;
//...
planeMat = new BitmapMaterial(new DIAMOND_TEXTURE().bitmapData,true,true);
plane = new Plane(planeMat,800,800,1,1,false); 
   

Richard Olsson, Administrator
Posted: 21 October 2011 07:04 AM   Total Posts: 1192   [ # 1 ]

The UVs of a plane range between 0 and 1 by default, which means that no tiling will occur. Scale the UVs either using Geometry.scaleUV() or in your modeling tool, and make sure that “repeat” (and possibly “animateUV”) are enabled on your material.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X