This week I worked primarily on adding multi-soundsource support for SPREAD framework.
The original SPREAD framework has 3 propagation mode for the TLM method: CPU, plugin and GPU. GPU mode is not implemented and all the work done and demos made are based on plugin mode, where a C++ plugin is used to maintain relavant data structures and provide propagation methods. For CPU mode, similar data structures are maintained at C# side and all methods are written in C# too. This is MUCH slower than the plugin mode, achiving at most a quarter of the FPS in plugin mode. Besides, it uses a simplified version of the Transmission Line Matrix method, where additional merge step is executed after emitting at each time step. This step merges all amplitudes from all frequency bands together, destroying any sound feature of the original sound in favor of the speed. With merge step disabled, the Unity scene runs at less than 1 FPS, which is intolerable.
One advantage of the CPU mode is that it provides support for multiple sound sources. In emit method, every sound source will write its own sound data to the grid cell it occupies, and in scatter and collect step, sound frames from all sources are propagated and collected appropriately. However, the ability to emit from multiple sound sources is not provided for the plugin. Mimicing the data structures and data flows on the C# side, I was able to reproduce the same procedure on the C++ side. Also, several interface methods have to be modified too, because additional parameters are needed to refer to different sound sources.
The multi-source scheme was tested on Monday, 7/15 and unsurprisingly, it causes quite a confusion or failure to understanding for the perceptors. Some agents did not recoginize any sound while some agents recognize the wrong sound (or word). One reasonable observation is that agents tend to recognize sounds emitted from a closer sound source rather than a distant one.
Further work includes cooperating with Max to author a PBT for cocktail party/ market place scene where perception of environment sounds or spoken words are regarded as events that drive the Behavior Tree. Details need to be discussed with Mubbasir and Max. Also, the desired cocktail party effect is difficult to achive since current SPREAD framework simply adds up the amplitudes from the same frequency band if two sound packets meet at the same grid cell. This would make it hard to recover any individual packet. Norm proposed to keep every sound that is being propagated without summation. This would work theoretically, but significant performance drop is expected. Another suggestion was ignoring the low amplitude packets.
Tuesday, July 16, 2013
Monday, July 8, 2013
Monday's task update, due in 7/19
Scene Description:
In cocktail party, many agents are doing their own stuffs. An agent can hand a drink to player. Player can call out a name in ambient sound, it still will be perceived correctly. Alarm triggers, everyone evacuates.
Tasks:
Authoring a cocktail party scene with all necessary objects and multiple agents interacting using behavior-tree-controlled animation.
In cocktail party, many agents are doing their own stuffs. An agent can hand a drink to player. Player can call out a name in ambient sound, it still will be perceived correctly. Alarm triggers, everyone evacuates.
Tasks:
Authoring a cocktail party scene with all necessary objects and multiple agents interacting using behavior-tree-controlled animation.
- Scene modeling
- Agents with different names and behavior animation sequences
- Control behaviors, especially those involving more than one agent using Parameterized Behavior Tree
- Test the ability to place multiple sound sources in the scene and play them all at once, observe what every agent has perceived, explain the reason why
- Play environment sound and phoneme at the same time, see if the agent still can hear the phoneme. If not, come up with a method to let the agent do so.
- Environment sounds can also control behaviors, in addition to phonemes
- Add extra words into dictionary ("drink", more names)
- Add a bubble to agents' heads indicating the word or sound that triggers current behavior
Subscribe to:
Posts (Atom)