enzienaudio / heavy

heavy public issue tracker and static dsp code releases
https://enzienaudio.com
ISC License
71 stars 4 forks source link

Pure Data in Unreal Engine with Wwise #179

Open ghost opened 7 years ago

ghost commented 7 years ago

Hi. I am currently learing to use Pure Data patches with Unreal Engine via Wwise.

I am trying to trigger my PD patch in Unreal Engine but it will not work. I can trigger it inside Wwise and it works fine. I can access its parameters in Wwise. I can also trigger the Wwise Synth One and change its parameters without problems inside Unreal Engine.

I guess it has something to do with using a PD patch in Unreal Engine that doesnt work out of the box? Is there any way of getting a quick tutorial on how to make it work? I have been looking at varius files in the Wwise folders inside the Unreal project, and in my understanding I have to add some code to some of them? And do I have to manually add some of the files from the Heavy generated download folder? Like the header and the WwiseSourceEngine file?

I have some basic knowledge of C++, but I am studying it at the moment so if I have to use C++ to make it work it would probably be great for my learning.

diplojocus commented 7 years ago

Hi @marius4560 Heavy/Wwise integration into UE4 is supported, however dynamically loading pre-compiled libraries (i.e. from your patch page) isn't. Apparently Audiokinetic are adding this to their roadmap.

In the meantime, you can still use Heavy-made Wwise plugins but you have to manually compile the Wwise-UE4 integration yourself, and link your plugin code into it.

say you download the Wwise Windows 64bit target for a source plugin you've made.

Take the following files:

and add that to the Visual Studio project you're using to compile the Wwise-UE4 integration.

Then somewhere in the project add

#include Hv_{patch_name}_WwiseSourcePluginFactory.h

A good place is usually where the other Wwise plugins are being registered.

P1ger commented 7 years ago

Hi @marius4560 and anyone else, I just wrote a tutorial on how to run pd patches converted in Wwise plug-ins inside UE4. Is meant to be understood by anyone, programmers or not. http://igordallavanzi.wixsite.com/gamenoise/single-post/2017/03/23/Pure-Data-patches-in-Unreal-Engine-4-via-Wwise

diplojocus commented 7 years ago

@P1ger you get a massive gold star! 🌟

echolevel commented 7 years ago

Brilliant @P1ger, thanks!

Cloudlessrain commented 6 years ago

I'm just getting started with Heavy and am a novice with Wwine and UE4 (I'm intermediate with Pd). I've stent hours looking for a tutorial like P1ger's. Could his tutorial could be added to the official documentation?