ORIGINAL MUSIC
FOR GAMES
MUSIC DESIGN, SHORT MELODIES, AND ADAPTIVE MUSIC.
SOUND DESIGN
FOR GAMES
Gameplay, cinematics
and trailers.
TECHNICAL AUDIO
IMPLEMENTATION
AUDIO PROGRAMMING · UNITY · UNREAL · FMOD · WWISE
VOICE OVER
PRODUCTION
Casting, direction,
recording and localization.
SIZZLE REEL
WATCH NOW
WHO WE ARE

YOUR Game AUDIO STUDIO

BUILT FOR GAME DEV

We’re Flutu. A game audio studio focused on what matters most: the player experience and the trust it takes to build great things together.

We make games and animation sound awesome while giving your team more time and peace of mind through clear communication and hands-on collaboration.

How Do You Build an Audio Portal Map for Game Occlusion?

Flutu Game Audio Studio

If line-trace occlusion is falling apart between rooms, the cleanest next step is usually a small room-and-portal graph. The listener sits in one room, portals define how rooms connect, and emitters reuse the listener’s path tree instead of each running their own search.

That gives you a practical answer to the real routing problem: how does a source in another room reach the listener through doorways or windows without treating the wall as a simple low-pass switch?

Build the graph around rooms

Make each acoustic room a volume and give it references to the portals that connect it to adjacent spaces. Each portal knows the two rooms it joins, the opening it represents and any state that changes how open that connection currently is.

Most of that topology can be established at edit time. The runtime system does not need portals to discover each other continuously because their connectivity is already defined by the rooms they share.

That keeps the graph small and predictable. Runtime work becomes path selection, not world discovery.

Search from the listener

Running a graph search for every emitter repeats the same work. The listener is the shared destination, so calculate reachability once from the listener’s current room and let active emitters reuse the result.

A breadth-first search can be enough when every connection has equal cost. A weighted search such as Dijkstra becomes useful when door state or another cost should affect the route.

You also do not need to search the entire level. In practice, capping the search at roughly two or three portals deep is often enough to keep the system local and reduce sound leaking through half the building.

Let emitters reuse the listener tree

Once the listener search is complete, each emitter only needs to know which room it belongs to and where that room sits in the tree. Same-room emitters can use normal spatialization plus local obstruction.

For a reachable room, the graph already contains the route back toward the listener. That means many emitters can share one search instead of solving their own path independently.

Recalculate when the listener changes room or when a relevant portal state changes. That is usually enough to keep the result current without turning pathfinding into per-frame work.

Move the perceived source to the opening

Virtual positioning is what makes a portal system convincing. Instead of panning a hidden emitter from its true position behind the wall, move the perceived source toward the doorway or portal aperture on the chosen path.

The sound then appears to emerge from the place where it could physically travel. Wwise Spatial Audio uses this same general principle when routing sound through Rooms and Portals, including virtual positioning and diffraction through portal paths. Audiokinetic’s Rooms and Portals overview documents that behavior.

Distance needs separate handling. If the event is moved to a virtual point near the listener, attenuation should still represent the real path length rather than only the short listener-to-portal distance.

Separate obstruction from occlusion

Obstruction and occlusion solve different problems. Obstruction is local geometry blocking a source inside the same acoustic space. Occlusion is sound propagating between spaces.

That separation keeps the system easier to tune. Local raycasts can still handle nearby obstacles while the room graph handles walls, doors and the route between rooms.

FMOD exposes 3D attributes and direct/reverb occlusion controls, so a custom game-side graph can drive positions and acoustic parameters without requiring the middleware itself to own the room topology.

The dry/wet distinction is useful here. For obstruction inside the same room, you may mainly filter the direct signal while leaving the reverb send more stable. For room-to-room occlusion, both the direct and reverberant paths can change. In FMOD, one practical approach is driving both from the same parameter but shaping the curves differently, for example keeping the reverb response flatter through the lower part of the range and only reducing it once occlusion becomes stronger.

Treat portals as continuous connections

A door does not need to be only open or closed. An openness value can influence edge cost or acoustic response so a partially open portal leaks some sound without behaving like a clear doorway.

If both a portal route and a transmission-through-wall route are valid, compare them instead of blindly summing both. Using the louder or more plausible path usually gives a cleaner result. Smooth portal-path changes as well, ideally with separate attack and release behavior, because path switches can otherwise create obvious jumps.

Keep path choice, virtual positioning, attenuation and filtering separate enough that each layer can be inspected. That separation gives audio designers more freedom to tune the perceptual result without rewriting the graph.

Middleware changes how much you need to build

The stack changes how much of this you need to build yourself. If you stay with Unity’s built-in audio stack, the room-and-portal graph still needs to live on the game side. Unreal Audio Volumes can handle zoning, reverb and basic occlusion behavior, but they are not a room-and-portal path solver. MetaSounds is useful for audio behavior, but it does not create the propagation graph for you.

With FMOD, the room graph usually lives on the game side. FMOD can handle the runtime 3D position and occlusion parameters, but if you move an event to a virtual portal position its normal distance attenuation now follows that virtual position. That means path distance often needs to be driven separately, or the real emitter position needs to remain available while only the perceived direction is faked.

Wwise already exposes Rooms and Portals as part of Spatial Audio, so a team using that stack should evaluate the built-in propagation model before creating another graph. Its system handles multi-room paths, diffraction, portal-based spatialization, adjacent-room reverb behavior and transmission through geometry, which is very close to the problem this architecture is trying to solve.

Steam Audio is another option and its current Unity integration supports baked pathing through probe batches. In our experience, the tradeoff is pipeline weight: exported acoustic geometry, probes and baked data are manageable when levels are relatively stable, but they create more maintenance while level design is still moving quickly. For smaller teams iterating fast, a custom portal graph on top of the existing spatializer can be easier to own.

The important part is keeping the representation inspectable regardless of where the final processing happens.

Build the debug view early

Portal systems are difficult to tune when the graph is invisible. Draw room assignments, portal connections, the listener tree and the selected path for a test emitter.

Many failures will be boundary problems rather than pathfinding problems: an emitter belongs to the wrong room, a portal is connected incorrectly or a state did not update after a door changed.

A debug view turns those failures into something the team can see instead of something the audio programmer has to infer from a muffled result.

Keep the graph small and understandable

You do not need a general-purpose navigation system for audio. A small graph that represents the acoustic structure the player can actually perceive is usually enough.

Search from the listener, reuse the result across emitters, keep obstruction separate from room-to-room occlusion and make the selected path visible. That moves the system beyond line-trace-plus-low-pass without turning spatial audio into a second game engine.

Know more about Flutu We are a Game Audio Studio

Related content

This website uses cookies.

By browsing our website, you agree to our use of cookies to analyze traffic and enhance your browsing experience. Your data will be aggregated with that of other users to ensure optimal functionality.