版本

menu_open
警告:系统已根据您所用大版本 (2023.1.8.8601) 自动跳转至最新文档。若想访问特定版本的文档,请从 Audiokinetic Launcher 下载离线文档,并在 Wwise 设计程序中勾选 Offline Documentation 选项。
Wwise Unreal Integration Documentation
Occlusion

AkOcclusionObstructionService::SetOcclusionObstruction() 中暴露了基本的声障设置。You can use this service with or without Spatial Audio Rooms. This section describes how the service works without Spatial Audio, and the following Occlusion and Spatial Audio section describes how it works with Spatial Audio.

您可以使用 Blueprint Editor 中的 Set Occlusion Refresh Interval 函数来针对 Actor 启用声障。另外,还可调节 UAkComponent 的设置。若将刷新间隔设为 0,将禁用声障。

To determine whether a listener is occluded from a source, a simple line of sight check is sufficient. Use the line trace channel set in the AkComponent's properties (CollisionChannel). If the line of sight is blocked, the occlusion level calculation starts. This calculation maps the hit point on the obstacle to its bounding box and creates twelve points around the obstacle. Do additional line of sight checks to see if these secondary paths are also blocked. The occlusion sent to the SoundEngine is modulated by the number of secondary paths that are blocked.

A temporal fade method is also available for smooth transitions between occlusion levels. To change the fade speed, change the OCCLUSION_FADE_RATE constant.

Occlusion and Spatial Audio

When using Spatial Audio Rooms, obstruction is set instead of occlusion. In parallel, sources perform simple line of sight checks with AkPortalComponent in the same Room. These portals need to have a non-zero Obstruction Refresh Interval property. The portals also perform simple line-of-sight checks with other portals with a non-zero Obstruction Refresh Interval property.

参见

此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅