|
In Sandy 0.2 there was an example of a cube with a video skin, that was made semi transparent.
Through any of the sides of the cube, you could see the other sides, playing the same video.
In
Sandy 0.2, there was no explicit VideoSkin, but the TextureSkin was
used, and the Video object, containig the FLV was drawn to the
BitmapData object, used by the skin.
In Sandy 1.1, you send that
same Video object as an argument to the constructor, and the drawing
into a BitmapData object is done behind the scenes.
I am trying to use the same technique as in 0.2.With a
Hi Petit,
I found a way by extending VideoSkin to apply a colorTransform at the render stage.
I think the following forum topic should explain how ...(come back to me if it doesn't)
http://www.flashsandy.org/forum/index.php?showtopic=19
RichL
Thanks RichL!
I suppose you refer to the BasicRotationCopy.fla and the extended version of the VideoSkin.
I downloaded both, and swopped in you ColorTransform aware VideoSkin in the class path.
So I run your example from within the Flash MX IDE ( and got rid of the ASO files
Unfortunately, the video cube only shows up ro a frame or two, and then disappears.
The bitmap textured cube works okay though.
I'm using Sandy ver. 1.1. In what version did you create your example.
I think it's beautiful, and something I really want to use.
Hi Petit,
Hum the disparition thing you are talking about sounds like a bug...
And as I don't like them, could you provide all your example code? (class video+main class)
This
is something I should kep in mind for the next release, give the user
the possibility to enble the transparent mode.... I'll try to remember
this
Thanks.
Petit,
Try this .fla. This works in Sandy 1.1 for me (with my VideoSkin).
There
is a lot of extra code in the .fla where i've tried a few things out,
but you should be able to pick out which bits are currently being used.
It looks really good with the glow filter added but this makes the transparency harder to see.
RichL
Attached File(s)
BasicRotation2.fla ( 144k )
Number of downloads: 8
VideoSkin.txt ( 2.36k )
Number of downloads: 8
Ah, really elegant!
The ColorTransform is applied in the private __updateTexture method of the VideoSkin,
and it works beautifully.
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)