SOLVED::Video Material( video Texture) alpha

Software: Away3D 4.x

bardo, Member
Posted: 19 March 2012 05:04 PM   Total Posts: 79

Hi all , im tryng to fade out a plane with a video .

My first idea was to simply do this :

TweenMax.to(material.player.container, 1, { alpha:0 });

but obviously it dont work ... any Ideas? Where im doing it wrong?

Thanks!

   

bardo, Member
Posted: 19 March 2012 05:55 PM   Total Posts: 79   [ # 1 ]

pls somebody ... all my project is based on a video on a plane ... i assumed i could fade it ... big trouble coming for me at work!

   

John Brookes, Moderator
Posted: 19 March 2012 06:35 PM   Total Posts: 732   [ # 2 ]

alpha is on the material

   

bardo, Member
Posted: 19 March 2012 08:25 PM   Total Posts: 79   [ # 3 ]

sorry , maybe the title is confusing .... i’m using video texture , and it seems it have no alpha : do u have a snippet ?

Thanks!

   

John Brookes, Moderator
Posted: 19 March 2012 09:54 PM   Total Posts: 732   [ # 4 ]
var vt:VideoTexture= new VideoTexture("new_york.flv",512,512)
var 
tm:TextureMaterial = new TextureMaterial(vt);

var 
planeGeom:PlaneGeometry = new PlaneGeometry(102451211false);//same ratio as flv
var planeMesh:Mesh = new Mesh(planeGeomtm);
scene.addChild(planeMesh);

TweenMax.from(tm18{ alpha:0 } );

vt.player.play(); 
   

bardo, Member
Posted: 20 March 2012 05:44 AM   Total Posts: 79   [ # 5 ]

srry but this actually don’t works ....

   

bardo, Member
Posted: 20 March 2012 06:26 AM   Total Posts: 79   [ # 6 ]

srry ... my fault: IT WORKS! john you are a master as always

   

robbatt, Newbie
Posted: 30 May 2012 09:14 AM   Total Posts: 4   [ # 7 ]

Hi, I am new to Away3D ... would this work for interactive swf files as well? I tried this sample, but when loading an swf that lies next to the tested flv I get a NetStatusEvent saying the swf was not found. Is there an other way to do this?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X