Unity3D 提高视频movie视频播放的质量

来源:互联网 发布:员工互评系统源码 php 编辑:程序博客网 时间:2024/05/20 12:47
使用Miro Video Converter 转换器,转换成ogg theora,然后再导入到unity3d里面,效果会好些!

可以用材质球播放,也可以在OnGUI里面播

PS:视频播放的Component是MovieTexture

例如在OnGUI()播放:
            GUI.DrawTexture(new Rect(0, 0, Screen.width, Screen.height), logo, ScaleMode.ScaleAndCrop);
            logo.Play();


但是最好的最有效果的方案还是使用插件  av pro
Unity3D   提高视频movie视频播放的质量 - 重庆unity3d - unity3d工作室Features include:
  • *NEW* Unity 4.0 support including fast DirectX texture updates
  • Windows and Mac OSX supported
  • Play MOV, MP4, H264, AAC and more
  • Transparent movie support
  • Adjust rate of playback including backwards
  • Dynamic loading of files off disk, memory
  • Stream from URL (beta)
  • Easy to use drag 'n drop components
Applications:
  • Interactive installations
  • Serious games
  • Kiosks
  • Video apps

AVPro QuickTime comes with full documentation which is also available online:PDF

Participate in the development of this plugin at the Unity Forums page.

演示:

Demo for Windows PC (9MB) (Note: QuickTime must be installed on the system)
Demo for Mac OSX (9MB)