This works! Ye olde Cast. var tempmaterial:BitmapMaterial = new BitmapMaterial( Cast.bitmap (images[i]) ); tempmaterial.smooth = true;
On Dec 27, 11:36 am, doyaydesign <[email protected]> wrote: > I'm getting images from an XML file that I parse into an array and > apply them to a plane using this code I found: > > for (var i:int = 0; i < images.length; i++) { > var plane:Plane = new Plane({material:{bitmap:images[i]} }); > > } > > But it looks like I need to smooth the material but can't get the > right code. > This gives me a white plane (no bitmap) and comes the closest since no > error: > > var material:BitmapFileMaterial = new BitmapFileMaterial( images[i] ) > as BitmapFileMaterial; > var plane:Plane = new Plane({material:material}); > > Also: > plane.material.smooth gives me an error. > > Any ideas to try out? > > thanks
