Hi guys,
I'm working with a simple plane textured with a VideoMaterial. My
VideoMaterial streams an f4v file of the same dimensions of the plane
and the plane is put to pixel precision distance from the camera so to
preserve its aspect ratio. The problem I'm experiencing is that the
video looks much more blurry than the actual f4v. Is there anything I
can tweak in order to make the VideoMaterial look the same as the
original video file?
Here's my code:
public function Main() {
init();
startModule()
}
private function init():void {
view = new View3D({x:stage.stageWidth / 2, y:stage.stageHeight / 2});
videoMat = new VideoMaterial();
videoMat.file = "video_720x360.f4v";
videoMat.smooth = true;
videoMat.loop = true;
plane = new Plane({width:720, height:360, segmentsH:1, segmentsW:1});
plane.rotationX = 90;
plane.material = videoMat;
view.scene.addChild(plane);
plane.z = ((view.camera.zoom - 1) * view.camera.focus) +
view.camera.z;
}
private function startModule():void {
container.addChild(view);
addEventListener(Event.ENTER_FRAME, run);
}
private function run(event:Event):void {
view.render();
}
Thanks in advance.
Cheers,
Marco