It you don't need a VideoMaterial just copy the bitmapData and
assign it to a BitmapMaterial, in the haXe version you would do
something like...
public function copyToBitmapWithTransparency( mc:
MovieClip ): BitmapData
{
mc.cacheAsBitmap = true;
var wide: Int = Std.int( mc.width );
var hi: Int = Std.int( mc.height );
var point: Point = new Point( 0, 0);
var rect: Rectangle = new Rectangle( 0 ,
0, wide, hi);
var abitmap: BitmapData = new BitmapData(
wide, hi, true, 0x00000 );
abitmap.draw( mc );
abitmap.copyPixels( abitmap, rect, point, abitmap,
point, false );
return abitmap;
}
// in render loop
bitmapMaterial.material.bitmap = copyToBitmapWithTransparency(
mcWithVideoInside );
when I have used video in 3d I prefered to do it more like
this as you have more control than when you use a special material but
may not be as optimal, generally its a good idea to make the plane
forward facing and switch 3D movement off if you want to show good
video, ideally better to get the 2d position and swap out your plane
for a 2d video when playing but maybe you don't have that option. You
have a choice between h.264 video and flv bear in mind you want to
minimize video processing so maybe flv is better... I would need to
test i don't rem.
interested to know how you get on.