wrapping textures

Software: Away3D 4.x

parele, Jr. Member
Posted: 22 August 2012 04:57 PM   Total Posts: 43

iv manged to create a cylinder and add videotexture:

But what happens is the cylinder turns into a round plane basically, even if i drop the size real small (segments and sides etc ... The screen tends to be filled completely with my video but not in a cylinder shape just a round plane

[/code]

My cylinder seems to have no depth 
....any ideas

[code]var file 
"testbg.flv";

var 
videoTexture = new VideoTexture(file,64,64,true,true);

var 
textureMaterial = new TextureMaterial(videoTexture);

var 
_film = new CylinderGeometry(0xFFFF6665,502050,20truetrue );

var 
_filmMesh = new Mesh(_film,textureMaterial);

_container.addChild(_filmMesh); 

All that blue streaks is part of the cylinder

 

   

Richard Olsson, Administrator
Posted: 23 August 2012 09:55 AM   Total Posts: 1192   [ # 1 ]

Why are you passing that huge hexadecimal number (0xffff6665) as the first argument to the constructor? The first constructor argument of CylinderGeometry is the top radius. By passing in that huge number (roughly 4 billion) you are basically creating a cone shaped cylinder with one side huge and the other 50 units in radius.

   

parele, Jr. Member
Posted: 23 August 2012 10:39 AM   Total Posts: 43   [ # 2 ]

yeah i had worked it out previously, just an issue i found is when i load a flv onto a plane or cylinder when i set it to loop for some reason its stops at the end before it starts again ...it not appearing as a seamless loop , is this expected?

   

Richard Olsson, Administrator
Posted: 23 August 2012 11:55 AM   Total Posts: 1192   [ # 3 ]

It depends on the way it is loaded. If you are able to make it work in any other way in the regular display list, you can build your own IVideoPlayer implementation to implement that solution.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X