Skip to content

Audio portals - #27

Open
phevosccp wants to merge 10 commits into
mainfrom
audio-portals
Open

phevosccp wants to merge 10 commits into
mainfrom
audio-portals

Conversation

@phevosccp

Copy link
Copy Markdown
Member

Description

Adds Wwise Spatial Audio portals. AudPortal wraps AK::SpatialAudio::SetPortal and is placed through ITr2BoxVolume, the same way as AudRoom, so trinity and the API need no changes. Rooms without portals are sealed; portals connect them, e.g. a door between two rooms.

Related PRs:

carbonengine/trinity#119

Changes

  • AudPortal, sent to Wwise by AudRoomManager
  • Front and back rooms found automatically from the room boxes, a quarter of the portal's depth past each face, so a portal as deep as its wall still finds both rooms
  • New rooms must be found 3 updates in a row before they replace the portal's rooms in Wwise, so the moving origin doesn't make them flicker
  • Portals removed before the rooms they connect
  • Door obstruction and occlusion (SetPortalObstructionAndOcclusion) and adjacent room bleed
  • AudUnitBox, the box handling now shared by rooms and portals

Testing

  • Tested locally with the same tool as the rooms PR, which will be released in a future PR.
audiolab.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant