Thanks Rob!
Now it works fine :)

But why did you say that just a few of us using
BitmapMaterialContainer?
Is there another method to create cached compound materials with best
performance?

On 9 дек, 06:46, Rob Bateman <[email protected]> wrote:
> Hey dimanjy
>
> yes, this is a known issue (to the few of us who use BitmapMaterialContainer
> ;)), and i'm pleased to say is one that has now been fixed!  please update
> your svn and let us know if it works for you
>
> cheers
>
> Rob
>
>
>
> On Tue, Dec 8, 2009 at 6:56 PM, dimanjy <[email protected]> wrote:
> > Hello to all Away3D developers!
>
> > I'm trying to make BitmapMaterialContainer work under FP10. It works
> > fine in FP9, but not in FP10.
> > My code:
>
> > mat1 = new TransformBitmapMaterial(assets.getTexture('grass.jpg'),
> > { repeat:true, scaleX:.2, scaleY:.2 });
> > mat2 = new TransformBitmapMaterial(assets.getTexture('something-on-the-
> > grass.png'),
> >      { throughProjection: true, projectionVector: new Number3D( 0, 1,
> > 0) });
>
> > matCont   = new BitmapMaterialContainer(width, height, { materials:
> > [ mat1, mat2 ] } );
> > matComp = new CompositeMaterial( { materials: [ mat1, mat2 ] } );
>
> > plane1 = new Plane( {  width: width, height: height, material:
> > matCont } );
> > plane2 = new Plane( {  width: width, height: height, material:
> > matComp } );
>
> > I just updated Away3D and switching src to fp9/fp10 version in my IDE.
> > For FP9 plane1 and plane2 works fine, but for FP10 just plane2 works
> > with CompositeMaterial and plane1 is not visible.
>
> > How can I make BitmapMaterialContainer work in FP10?
> > Help me, please!
>
> --
> Rob Bateman
> Flash Development & Consultancy
>
> [email protected]

Reply via email to