If your struggling I can put together a haXe away3dlite basic video
example using simple copy bitmapdata approach.
Cheers
;j
On 31 Mar 2010, at 20:42, Justin Lawerance Mills wrote:
Jens
It you don't need a VideoMaterial just copy the bitmapData and
assign it to a BitmapMaterial, in the haXe version you would do
something like...
public function copyToBitmapWithTransparency( mc: MovieClip ):
BitmapData
{
mc.cacheAsBitmap = true;
var wide: Int = Std.int( mc.width );
var hi: Int = Std.int( mc.height );
var point: Point = new Point( 0, 0);
var rect: Rectangle = new Rectangle( 0 , 0,
wide, hi);
var abitmap: BitmapData = new BitmapData( wide, hi,
true, 0x00000 );
abitmap.draw( mc );
abitmap.copyPixels( abitmap, rect, point, abitmap, point,
false );
return abitmap;
}
// in render loop
bitmapMaterial.material.bitmap =
copyToBitmapWithTransparency( mcWithVideoInside );
when I have used video in 3d I prefered to do it more like this as
you have more control than when you use a special material but may
not be as optimal, generally its a good idea to make the plane
forward facing and switch 3D movement off if you want to show good
video, ideally better to get the 2d position and swap out your plane
for a 2d video when playing but maybe you don't have that option.
You have a choice between h.264 video and flv bear in mind you want
to minimize video processing so maybe flv is better... I would need
to test i don't rem.
interested to know how you get on.
Cheers
;j
On 31 Mar 2010, at 15:05, jens lofberg wrote:
Hi
Did anybody try the performance of having a flv file playing in the
MovieMaterial?
I'm waiting for the VideoMaterial to update my projects to
Away3DLite =)
thanks
jens
katopz a écrit :
yes, svn
On 31 March 2010 13:37, Benjamin <[email protected]> wrote:
Hi All,
Do we have the MovieMaterial in the lite version?
I tried it a few months ago, but it was not there. As I see on the
download page, there has not been any updates on the sources. Am I
wrong? Should I use SVN?
If it is still not here what is your expectation for the time when
it
comes?
Thank you very much!
You guys do an amazing job.
Benjamin
Impact Proximity
Dubai
--
To unsubscribe, reply using "remove me" as the subject.
--
katopz
http://www.sleepydesign.com
To unsubscribe from this group, send email to away3d-dev
+unsubscribegooglegroups.com or reply to this email with the words
"REMOVE ME" as the subject.
--
To unsubscribe, reply using "remove me" as the subject.