Thanks for the replies guys, and thanks Katopz for the great little engine! Yeah I tracked through the classes to find the GraphicsBitmapFill and it appeared to be successfully set to repeat, but the texture is still stretching for some reason. I'll look into Josh's solution for now, ta.
On Jan 11, 7:24 am, "Joshua Granick" <[email protected]> wrote: > Unless there is an option in Away3D which should support this, you should be > able to at least set up tiling by generating your own BitmapData object based > upon the target size of your cube. > > > > On Sun, 10 Jan 2010 06:56:55 -0800, dp <[email protected]> wrote: > > 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
