Hi, i'm running with a problem with a simple BitmapMaterial.

Here is the code.
-----------------------------------------------------------------------------------------------

var holder:Sprite = new Sprite();
var chain:Sprite  = new Sprite();
var bitmap:BitmapData = new BitmapData( 674, 210, true, 0 );

holder.addChild( chain );


var view:View3D                  = new View3D( { x: stage.stageWidth >> 1,
y: stage.stageHeight + 80 >> 1 } );
var camera:Camera3D    = view.camera;
var scene:Scene3D       = view.scene;
var chain3D:Plane               = new Plane( { segmentsW: 10, segmentsH: 5,
width: 674, height: 245, rotationX: -90, rotationZ: 180, material: new
BitmapMaterial( bitmap, { smooth: true } ) } );

scene.addChild( chain3D );
addChild( view );

addEventListener( Event.ENTER_FRAME, render, false, 0, true );
function render( $e:Event ):void
{
        bitmap.fillRect( new Rectangle( 0, 0, 674, 210 ), 0 );
        bitmap.draw( holder, null, null, null, null, true );

        view.render();
};
--------------------------------------------------------------------------------

Holder is a simple sprite who handle another sprite (chain) populated
by multiple clip.
Chain is moving on the timeline.

When i redraw the bitmapData on enterFrame, the bitmapData is
correctly redrawn (i made a test and this part is ok).
The material is correctly displayed in the 3d plane but it never
refresh when i redraw the bitmapData on enterFrame.

Any suggestions?
Thanks

Reply via email to