Version

menu_open
Wwise Unreal Integration Documentation
Occlusion

Basic occlusion is exposed for AkOcclusionObstructionService::SetOcclusionObstruction(). To enable occlusion on an Actor, use the Set Obstruction Occlusion Refresh Interval function in the Blueprint Editor. A UAkComponent version is also available. If the refresh interval is set to 0, occlusion is disabled.

Determining whether a listener is occluded from a source is done with a simple line-of-sight check, using the line trace channel set in the AkComponent's properties (OcclusionCollisionChannel). If the line of sight is blocked, the occlusion level calculation is started. This calculation maps the hit point on the obstacle to its bounding box, creating twelve points around the obstacle. To see if these "secondary paths" are also blocked, other line-of-sight tests are done. The occlusion sent to the SoundEngine is modulated from the number of "secondary paths" that are blocked.

A temporal fade method is also added to allow smooth transition between occlusion levels. To change the fade speed, change the OCCLUSION_FADE_RATE constant.


Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise