0

I'm using Away3D v4 in a Flex Mobile project. Is it possible to add a video texture to a plane?

It seem to work fine running on the AIR simulator in Flash Builder, but doesn't render at all on Android.

Here's the code I'm using to create the texture:

var videoTexture:VideoTexture = new VideoTexture("MyVideo.flv");
var material = new TextureMaterial(videoTexture);
var mesh = new Mesh(new PlaneGeometry(500, 500), material);
Chris Fulstow
  • 41,170
  • 10
  • 86
  • 110

1 Answers1

0

Seems the H.264 video was being rendered by the Android GPU and appearing directly on the StageVideo layer below Stage3D, even though I was using the Video component not StageVideo. Videos encoded with VP6 work fine as a 3D texture, but are slow due to CPU decoding.

Chris Fulstow
  • 41,170
  • 10
  • 86
  • 110