OGRE Wiki
Support and community documentation for Ogre3D
Ogre Forums
ogre3d.org
Log in
Username:
Password:
CapsLock is on.
Remember me (for 1 year)
Log in
Home
Tutorials
Tutorials Home
Basic Tutorials
Intermediate Tutorials
Mad Marx Tutorials
In Depth Tutorials
Older Tutorials
External Tutorials
Cookbook
Cookbook Home
CodeBank
Snippets
Experiences
Ogre Articles
Libraries
Libraries Home
Alternative Languages
Assembling A Toolset
Development Tools
OGRE Libraries
List of Libraries
Tools
Tools Home
DCC Tools
DCC Tutorials
DCC Articles
DCC Resources
Assembling a production pipeline
Development
Development Home
Roadmap
Building Ogre
Installing the Ogre SDK
Setting Up An Application
Ogre Wiki Tutorial Framework
Frequently Asked Questions
Google Summer Of Code
Help Requested
Ogre Core Articles
Community
Community Home
Projects Using Ogre
Recommended Reading
Contractors
Wiki
Immediate Wiki Tasklist
Wiki Ideas
Wiki Guidelines
Article Writing Guidelines
Wiki Styles
Wiki Page Tracker
Ogre Wiki Help
Ogre Wiki Help Overview
Help - Basic Syntax
Help - Images
Help - Pages and Structures
Help - Wiki Plugins
Toolbox
Freetags
Categories
List Pages
Structures
Trackers
Statistics
Rankings
List Galleries
Ogre Lexicon
Comments
History: TheoraVideoPlugin Materials
View page
Source of version: 3
(current)
!!Example material script {CODE(wrap="1",colors="c++",wiki="1")} material SimpleVideo { technique { pass { texture_unit { __texture_source ogg_video__ __{__ __filename clip.ogg__ __precache 16__ __play_mode play__ __}__ } } } }{CODE} 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 ((TheoraVideoPlugin Shaders|shader-based YUV decoding)). * grey - outputs greyscale pixel (Y channel) __ speed __ N/A yet.
Search by Tags
Search Wiki by Freetags
Latest Changes
Ogre 2.1 FAQ
Minimal Ogre Collision
Artifex Terra
OpenMB
Advanced Mogre Framework
MogreSocks
Critter AI
Mogre Add-ons
MOGRE
Mogre MyGUI wrapper
...more
Search
Find
Advanced
Search Help
Online Users
44 online users