VR系列——Oculus Audio sdk文档:三、Oculus对于Unity天然的声场定位技术(2)——通过示例探索Oculus本地空间移动音效

  在开始之前,我们建议打开附带的演示场景‘红球绿球’(RedBallGreenBall),它提供了一个简单的OSNP资源介绍,并且演示了空间环绕移动音效的效果。
  To get started, we recommend opening the supplied demonstration scene RedBallGreenBall, which provides a simple introduction to OSNP resources and examples of how what the spatializer sounds like.


这里写图片描述

  这个简单的场景包括一个红球和一个绿球,其演示了不同的空间定位音量设置。红球上附加了一个循环播放的电子音乐,然后一个短的人的声音序列附加在绿球上。
  This simple scene includes a red ball and a green ball, which illustrate different spatializer settings. A looping electronic music track is attached to the red ball, and a short human voice sequence is attached to the green ball.

  在Unity游戏查看器里启动这个场景,用箭头键导航,并用鼠标控制摄像头方向来快速收听空间环绕移动音效。
  Launch the scene in the Unity Game View, navigate with the arrow keys, and control the camera orientation with your mouse to quickly hear the spatialization effects.

  要导入并打开‘红球绿球’:
  To import and open RedBallGreenBall :

  1. 新建一个Unity工程
  2. 导入OculusNativeSpatializer.unitypackage
  3. 当导入对话框弹出时,选中所有选项然后点击导入
  4. 参照下载和安装章节里描述的来启动空间定位(Spatialization)
  5. 在/Assets/scenes路径里打开‘红球绿球’


  1. Create a new Unity project.
  2. Import the OculusNativeSpatializer.unitypackage.
  3. When the Importing Package dialog opens, leave all assets selected and click Import.
  4. Enable the Spatializer as described in Download and Setup
  5. Open RedBallGreenBall in /Assets/scenes.

  在Rift里预览这个场景:
  To preview the scene with a Rift:

  1. 按照上面步骤导入和启动‘红球绿球’
  2. 在构建设置里,验证平台下的PC、MAC和Linux的脱机选项被选中
  3. 在播放设置里,选择支持虚拟现实
  4. 通常在Unity游戏查看器里预览场景


  1. Import and launch RedBallGreenBall as described above.
  2. In Build Settings, verify that the PC, Mac and Linux Standalone option is selected under Platform.
  3. In Player Settings, select Virtual Reality Supported.
  4. Preview the scene normally in the Unity Game View

  在Gear VR里预览这个场景(要求手柄):
  To preview the scene in Gear VR (requires gamepad):

  1. 确保你能够在你的三星手机上建立和运行项目(调试模式启用,安装ADB等),请参阅移动SDK安装指南以获取更多信息。
  2. 按照该章节开头的步骤
  3. 在构建设置里
    a) 平台选项里选择‘Android’
    b) 在构建里选择‘添加当前场景’
  4. 在播放设置里,选择支持虚拟现实
  5. 复制你的osig文件到/Assets/Plugins/Android/assets路径下
  6. 建立和运行你的项目
  7. 用已兼容的手柄控制导航场景


  1. Be sure you are able to build and run projects on your Samsung phone (Debug Mode enabled, adb
    installed, etc.) See the Mobile SDK Setup Guide for more information.
  2. Follow the setup steps at the top of this section.
  3. In Build Settings
    a. Select Android under Platform.
    b. Select Add Current to Scenes in Build.
  4. In Player Settings, select Virtual Reality Supported.
  5. Copy your osig to /Assets/Plugins/Android/assets.
  6. Build and run your project.
  7. Navigate the scene with a compatible gamepad.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值