Issue with fxVideoRenderObject playing movies
by Clara Easson · in General Discussion · 04/18/2008 (1:00 pm) · 0 replies
Hi, am using the fxVideoRenderObject to show movies inside game. The movies play fine except for one issue. When I issue the setfile method, a white rectangle appears for a second, then dissappears as movie starts to play. I have specified a background texture (which is a black picture).
This white flash is a pain, since it shows up every time a movie begins.
Hope someone has encountered this issue, and has a fix.
Below is example script source code:
tmpobj = new fxVideoRenderObject(VidConn)
{
position = "1 1 1";
rotation = "0 0 0 0";
scale = "1 1 1";
QuadSize = "5";
ScreenWidth = 40;
ScreenHeight = 30;
QuadRotateSpeed = "1";
Texture = "~/data/videos/background.jpg";
done = "0";
stopOnSleep = "0";
backgroundColor = "0 0 0 255";
};
%tmpobj.setFile( ""~/data/videos/sample.ogg" );
This white flash is a pain, since it shows up every time a movie begins.
Hope someone has encountered this issue, and has a fix.
Below is example script source code:
tmpobj = new fxVideoRenderObject(VidConn)
{
position = "1 1 1";
rotation = "0 0 0 0";
scale = "1 1 1";
QuadSize = "5";
ScreenWidth = 40;
ScreenHeight = 30;
QuadRotateSpeed = "1";
Texture = "~/data/videos/background.jpg";
done = "0";
stopOnSleep = "0";
backgroundColor = "0 0 0 255";
};
%tmpobj.setFile( ""~/data/videos/sample.ogg" );
About the author