I test away3d 4.1.6, i wish to create a sky ball use VideoTexture. My question is : when Mesh mapped, the skyBall is not clear, like jpg i upload.
how to make it clear.
the code is below:
_view = new View3D();
_view.antiAlias=16;
addChild(_view);
_camera = _view.camera;
_camera.rotationZ=-180;
_camera.scale(-1);
var vTexture:VideoTexture=new VideoTexture(“assets/hdv.mov”, 2048, 1024,true,true); //I’m sure mov is a hdv.
var mcMat:TextureMaterial = new TextureMaterial(vTexture,true);
mcMat.bothSides=true;
mcMat.mipmap=true;
mcMat.smooth=true;
var ball:SphereGeometry=new SphereGeometry(800,120,120);
skyBall = new Mesh(ball, mcMat);
MeshHelper.invertFaces(skyBall);
=============
i have edit VideoTexture class
public function update():void
{
//bitmapData.draw(_player.container, m, null, null, _clippingRect);
bitmapData.draw(_player.container, m, null, null, _clippingRect,true);
}
========
plus:
I have view instanceVideoTexture.bitmapData . It’s very very clear.