However, when I use the new material for this location, defined as
Code: Select all
material MainMenuVideo
{
technique
{
pass
{
lighting off
depth_write off
texture_unit
{
texture_source ogg_video
{
filename bzone.ogv
precache 16
play_mode loop
}
}
}
}
}
It does start firing the frame listener, where the following code updates the texture created above.
Code: Select all
unsigned char *texData=(unsigned char*) t->getBuffer()->lock(HardwareBuffer::HBL_DISCARD);
unsigned char *videoData=f->getBuffer();
memcpy(texData,videoData,w*h*4);
t->getBuffer()->unlock();
Does anyone know why it would stay a blank screen? Or have suggestions how to further isolate what is going wrong?