flash player all up to date, latest version.

the image above shows the same material on all cubes. so in effect is
that 1 material or is it 27??

what would be the best way to do this in normal away3d

 i am using an array like:

materialArray = new Array();
materialArray = [
new BitmapFileMaterial("file1.jpg"),
new BitmapFileMaterial("file2.jpg"),
new BitmapFileMaterial("file3.jpg")
];

would it be better to put them all in one swf and:

[Embed(source="material.swf",symbol="aSymbol"] private var
aSymbol:Class;

materialArray = new Array();
materialArray = [
new aSymbol() as Bitmap,
new bSymbol() as Bitmap,
new cSymbol() as Bitmap
];

// loop it
object = new Cube();
object.material = materialArray[loopIndex];
];


what do you think??

tia

Morph

On Sep 30, 6:40 pm, katopz <[email protected]
m> wrote:
> try update your flash player
> hth
>
> 2009/10/1 Li <[email protected]>
>
> > So, you are using 27 materials with 1800x1200... that sounds pretty harsh
> > to the cpu. Any other opinions?
>
> > You need to make sure you are properly managing the creation and
> > destruction of materials. If you don't do it properly, your memory will
> > build up like crazy, specially with this size of images.
>
> > Another thing is try to reuse materials. If 5 cubes use the same image,
> > dont create 5 materials, create only one and apply it to the 5 cubes.
>
> > Thats all I can comment on. I'm not that familiar with lite, so I'd
> > recommend looking for more opinions after you check what I say.
>
> --
> katopzhttp://www.sleepydesign.com

Reply via email to