thats because I did this 3.6 update in a rush.
just pass {fixedWidth:val, fixedHeight:val} in your VideoMaterial constructor

I'll try to add the setters asap.

Note that I'm also about to release a software for this...
http://www.sfeerz.nl/#/nl-NL/Wat-is-Sfeerz/243/
(dutch only for now...)

Fabrice

On Apr 5, 2011, at 12:08 AM, Leonel wrote:

> Thanks for your help Fabrice,
> 
> I tried to make some sense out of what you said, and it seems logical.
> But now that I digged deeper into understanding the VideoMaterial
> class, fixedWidth and fixedHeight are private properties, and are
> initialized when the video is loaded.
> 
> Although if I trace the width and height of the video material it
> returns the value 1 for each. With a VideoEvent.METADATA event it
> returns the the correct size(4594x300).
> 
> I used earlier the 3.6 version, but now I'm using the trunk version,
> but the result is the same.
> 
> How can I achieve the matching of the values, since there's no direct
> method to do it?
> 
> My code looks like this:
> 
> var videoMat:VideoMaterial = new VideoMaterial();
> videoMat.addEventListener(VideoEvent.METADATA, onMetaData);
> videoMat.file = "dados/Video360_mostra.flv";
> videoMat.interactive = false;
> videoMat.loop = false;
> videoMat.volume = 0.5;
> 
> cylinder = new Cylinder( { material:videoMat, segmentsH:1, segmentsW:
> 30, height:300, radius:100, openEnded:true } );
> cylinder.scaleX = -1;
> view.scene.addChild(cylinder);
> 
> Thanks for your time,
> Leonel
> 
> On Apr 4, 12:33 am, Fabrice3D <[email protected]> wrote:
>> fixedWidth and fixedHeight = video size, otherwize default 340x2 something 
>> is applied
>> assuming here you do use 3.6
>> 
>> Fabrice
>> 
>> On Apr 3, 2011, at 11:49 PM, Leonel wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> Hi everyone,
>> 
>>> I'm trying to make a simple video player, by using 360 degreee videos.
>>> A small company was able to provide me a sample video to work with.
>>> The video it's not an espherical one, so it's like  a panoramic foto
>>> but extra wide.
>> 
>>> The video is in MP4 format and has 4594x300 pixels. First thing I did
>>> was to convert to movie to FLV using the free SUPER converter, using
>>> VP6 encoder instead of H264.
>> 
>>> If I try to play the file in a normal video playback, it shows with no
>>> problem.
>> 
>>> Then I try to place it has a VideoMaterial in a cylinder with no caps.
>>> The video shows, but extremely pixelated, that is the pixels are
>>> rectangles and form stripes from top to bottom.
>> 
>>> Are there any consideration regarding the size of the cylinder, the
>>> camera placement, or the movie encoding?
>> 
>>> A sample image is available here:http://www.pic2up.net/view/YOVJWhN
>> 
>>> I think that this is a simple issue, because I looked in forums and
>>> tutorials, and didn't find a similar problem. Certainly I'm missing
>>> something. I'm not experineced in 3D in Actionscript.
>> 
>>> Thanks for the help,
>>> Leonel

Reply via email to