If you haven't done so already, be sure to visit the Wiki Portal to read about how the wiki works. Especially the Ogre Wiki Overview page.
Example material script
material SimpleVideo { technique { pass { texture_unit { texture_source ogg_video { filename clip.ogg precache 16 play_mode play } } } } }
As you can see, the only difference between a normal OGRE material is located in the texture_unit block.
texture_source
It is very important to append ''ogg_video__ to the end of the line, so OGRE knows which plugin to use.
filename
This is obvious
The file can be placed in any location defined in Ogre::ResourceGroupManager, as well as in Zip files or your custom Ogre-compliant resource management method.
play_mode
Determines the starting play state, can be:
- play - default
- pause
precache
How many frames should this video render in advance. If not specified, the default is 16.
output
Determines output mode, how Theora's YUV pixels are converted:
- rgb - default, decodes YUV to RGB via CPU
- yuv - directly transfers YUV pixels to the texture, useful only if you use shader-based YUV decoding.
- grey - outputs greyscale pixel (Y channel)
speed
N/A yet.
Contributors to this page: jacmoe
and
OgreWikiBot
.
Page last modified on Monday 28 of December, 2009 03:19:58 GMT by jacmoe
.
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.
As an exception, any source code contributed within the content is released into the Public Domain.

