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!