Hi, I think I'm having the same problem - I'm importing a 3ds model
and trying to apply a repeating texture to some simple different sized
cube meshes.

var b:BitmapMaterial = new BitmapMaterial(bbmap.bitmapData);
b.repeat = true;

for each (var child:Object3D in model.children)
......
.....
else (child as Mesh).material = b;

Each of these meshes displays a stretched to fill texture, instead of
tiling it? any ideas? cheers.

On Jan 8, 10:00 am, katopz <[email protected]> wrote:
> look like uv is override "repeat" already
> i'll check on this again for this when i got some free time
> btw, "repeat" is native flash property or GraphicsBitmapFill
>
> http://help.adobe.com/en_US/OSMF/1.0/AS3LR/flash/display/GraphicsBitm...
>
> thanks for report
>
> 2010/1/8 bakedbeing <[email protected]>
>
>
>
> > Hiya folks! I've surfaced a plane with a road texture bitmap like so
> > (please ignore the odd vertical sizing for now, unless that's the
> > prob) :
>
> > roadMaterial = new BitmapMaterial(new BlackTopJpg(256,242));
> > roadMaterial.repeat = roadMaterial.smooth = true;
>
> > I apply it to the plane, and whenever I change the height of the plane
> > the texture stretches with it, as though it's being applied once only
> > to the plane.
>
> > Does it have to be a collada model with UVs for the repeat to work? Is
> > there any way I can do this on a primitive?
>
> > Ta guys!
>
> --
> katopzhttp://www.sleepydesign.com

Reply via email to