커뮤니티 Q&A

Audiokinetic의 커뮤니티 Q&A 포럼에 오신 것을 환영합니다. 이 포럼은 Wwise와 Strata 사용자들이 서로 도움을 주는 곳입니다. Audiokinetic의 직접적인 도움을 얻으려면 지원 티켓 페이지를 사용하세요. 버그를 보고하려면 Audiokinetic 런처에서 Bug Report 옵션을 사용하세요. (Q&A 포럼에 제출된 버그 보고는 거절됩니다. 전용 Bug Report 시스템을 사용하면 보고 내용이 담당자에게 정확히 전달되어 문제 해결 가능성이 크게 높아집니다.)<segment 6493>

빠르고 정확한 답변을 얻으려면 질문을 올릴 때 다음 팁을 참고하세요.

  • 구체적인 내용을 적어주세요: 무엇을 하려는지, 혹은 어떤 특정 문제에 부딪혔는지 설명하세요.
  • 핵심 정보를 포함하세요: Wwise와 게임 엔진 버전, 운영체제 등 관련 정보를 함께 제공하세요.
  • 시도한 방법들을 알려주세요: 문제 해결을 위해 이미 어떤 단계를 시도해봤는지 설명해주세요.
  • 객관적인 사실에 초점을 맞추세요: 문제의 기술적 사실을 중심으로 설명하세요. 문제에 집중할수록 다른 사람들이 더 빠르게 해결책을 찾을 수 있습니다.

+1 투표
Hi all,

I am looking for a way to smoothly fade some music from the diegetic space to the non-diegetic, and I was wondering what the best way to achieve this would be.

I haven't found any way to control the spread of a 3D source from an RTPC (it seems spread can only be managed through attenuations, as a function of distance to the listener).

Right now, the way I do it is I have 2 versions of my music hierarchy: one is 2D, the other is 3D, and I crossfade between both, but it's a waste of CPU/memory and it feels wrong!

Any ideas? :)
General Discussion Matthieu B. (830 포인트) 로 부터

1 답변

+3 투표

That's one way to do it, and it doesn't waste as much memory as you think (well, a few bytes).  But it is ugly, I agree. Transitioning from 3D panning to 2D panning and vice versa, without glitch, is not trivial.  You need to take spatialization in account (or maybe not, if the Enable Spatialization checkbox is off) and maybe cone attenuation.  There are ways to do that though. 

  1. Keep only one copy of your music
  2. Put an RTPC on the 2D/3D selector (just under Center % in the Positioning tab)
  3. For this step, you need programmer support.  When you start the transition from 3D to 2D, move your game object position at the right place relative to listener.  It must also face the listener.  "The right place" is defined as "the x/y/z position that will make the distance right so that the volume with attenuation and spread will be almost the same as the 2D version".  And that, my friend, is the killer, since it depends on your attenuation curves and spread.  It also depends on your audio output setup: spatialization rules are different for mono, stereo or 5.1 sounds.  You will want this "move" to be nice and gradual too, so do it over a few game frames.  Think of this as forcing your player to sit in front of the radio (actually, bringing the radio in front of him).
  4. Make a new Event in which you have to sub actions:
    1. Set the RTPC to 2D
    2. Set the Volume of your music to the volume in the 3D space (it won't be the same)
  5. Trigger the event when the game object is finally at the right place.

But I suspect at this point that you will not be happy either.  You will discover that your nice stereo music (or 5.1), when playing in 3D, is not playing exclusively in the right speakers, even when properly aligned in front of you.  3D spatialization rules make each of the channel bleed in neighboring speakers (this is made so rotating in 3D space gives a smooth transition from speaker to speaker).  So when switching to 2D, the bleed will suddenly disappear and you may notice it.  That's the current state of things right now.

But there is hope in the next version, we've added a Focus feature to control the amount of bleed in the 3D spatialization.

Did I say it wasn't trivial ? :)

 

Mathieu J. (Audiokinetic) (7.1k 포인트) 로 부터
...