alessandrofama / wwise-godot-integration

Wwise Integration for the Godot Engine
Other
288 stars 14 forks source link

Convolution Plugin - Does it come bundled already? #34

Closed smksnutmeg closed 3 years ago

smksnutmeg commented 3 years ago

Was checking the readme (https://github.com/alessandrofama/wwise-godot-integration/blob/9475248de190576bec4a6fe3fa2f2ed660b034f0/wwise-gdnative/README.md), do I need to build the binaries myself to include the 'convolution' plugin or does it come bundled with the latest release? We are having issues getting convolution to work in our game project (we have a trial of the plugin bundled with the soundbank)

scons target=release platform=windows wwise_sdk="%WWISESDK% plugins=convolution
alessandrofama commented 3 years ago

We don't include Convolution by default, since it is not a stock plugin.

You would need to build the binaries yourself and include the convolution plugin like in the example command you posted. Do you need any help with that?

smksnutmeg commented 3 years ago

Aha this now makes sense! I am going to give it a try and come back to you if I have any issues! Thank you!

smks commented 3 years ago

Is there a user friendly guide on all the steps required that I can follow? I see there is a pre-requisite to building the original Godot bindings.

smks commented 3 years ago

I'll start here https://docs.godotengine.org/en/latest/development/compiling/index.html

alessandrofama commented 3 years ago

you don't need to compile whole Godot. Check this tutorial: https://www.youtube.com/watch?v=u4OmyevtdUQ

The steps in brief: clone this repo, then build the cpp bindings:

cd godot-cpp
scons platform=windows target=debug generate_bindings=yes -j4 (number of cpu cores)
scons platform=windows target=release generate_bindings=yes -j4 (number of cpu cores)

then cd to wwise-gdnative and execute scons again:

scons target=debug platform=windows wwise_sdk="%WWISESDK%" plugins=convolution target_path=bin/
scons target=release platform=windows wwise_sdk="%WWISESDK%" plugins=convolution target_path=bin/
smks commented 3 years ago

Nice thanks!

scons target=release platform=osx wwise_sdk=/Applications/Audiokinetic/Wwise\ 2021.1.2.7629/SDK plugins=convolution target_path=bin/
scons: Reading SConscript files ...
Wwise SDK headers path: /Applications/Audiokinetic/Wwise 2021.1.2.7629/SDK/include/
Wwise SDK libs path: /Applications/Audiokinetic/Wwise 2021.1.2.7629/SDK/Mac/Release/lib/
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/wwise_gdnative.os -c -std=c++14 -g -O3 -arch x86_64 -fPIC -DAK_OPTIMIZED -DAK_CONVOLUTION -I. -I/Users/shaunstone/Personal/wwise-godot-integration/godot-cpp/godot-headers -I/Users/shaunstone/Personal/wwise-godot-integration/godot-cpp/include -I/Users/shaunstone/Personal/wwise-godot-integration/godot-cpp/include/core -I/Users/shaunstone/Personal/wwise-godot-integration/godot-cpp/include/gen -Isrc "-I/Applications/Audiokinetic/Wwise 2021.1.2.7629/SDK/include" "-I/Applications/Audiokinetic/Wwise 2021.1.2.7629/SDK/samples/SoundEngine/POSIX" src/wwise_gdnative.cpp
src/wwise_gdnative.cpp:851:17: error: no member named 'occlusion' in 'AkAcousticSurface'
                akSurfaces[0].occlusion = occlusionValue;
                ~~~~~~~~~~~~~ ^
src/wwise_gdnative.cpp:948:22: error: no viable overloaded '='
        portalParams.Extent = akExtent;
        ~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~
/Applications/Audiokinetic/Wwise 2021.1.2.7629/SDK/include/AK/SpatialAudio/Common/AkSpatialAudio.h:160:8: note: 
      candidate function (the implicit copy assignment operator) not viable: no known
      conversion from 'AkVector' to 'const AkExtent' for 1st argument
struct AkExtent
       ^
/Applications/Audiokinetic/Wwise 2021.1.2.7629/SDK/include/AK/SpatialAudio/Common/AkSpatialAudio.h:160:8: note: 
      candidate function (the implicit move assignment operator) not viable: no known
      conversion from 'AkVector' to 'AkExtent' for 1st argument
src/wwise_gdnative.cpp:1697:18: error: no member named 'uDiffractionFlags' in
      'AkSpatialAudioInitSettings'
        spatialSettings.uDiffractionFlags = static_cast<unsigned int>(
        ~~~~~~~~~~~~~~~ ^
src/wwise_gdnative.cpp:1700:18: error: no member named 'fDiffractionShadowAttenFactor' in
      'AkSpatialAudioInitSettings'
        spatialSettings.fDiffractionShadowAttenFactor = static_cast<float>(getPlatf...
        ~~~~~~~~~~~~~~~ ^
src/wwise_gdnative.cpp:1703:18: error: no member named 'fDiffractionShadowDegrees' in
      'AkSpatialAudioInitSettings'
        spatialSettings.fDiffractionShadowDegrees = static_cast<float>(getPlatformP...
        ~~~~~~~~~~~~~~~ ^
src/wwise_gdnative.cpp:1721:18: error: no member named 'bEnableDirectPathDiffraction' in
      'AkSpatialAudioInitSettings'
        spatialSettings.bEnableDirectPathDiffraction = static_cast<bool>(getPlatfor...
        ~~~~~~~~~~~~~~~ ^
src/wwise_gdnative.cpp:1724:18: error: no member named 'bEnableTransmission' in
      'AkSpatialAudioInitSettings'
        spatialSettings.bEnableTransmission = static_cast<bool>(
        ~~~~~~~~~~~~~~~ ^
7 errors generated.
scons: *** [src/wwise_gdnative.os] Error 1
scons: building terminated because of errors
alessandrofama commented 3 years ago

It is trying to use SDK 2021.1.2.7629 but we support 2019.2.1.7250. If you have both installed you can replace %WWISESDK% with the path to the correct SDK.

smks commented 3 years ago

Got you, thanks! I will change to the one supported!

smksnutmeg commented 3 years ago

All working now! Brilliant thanks as always!

alessandrofama commented 3 years ago

Great to hear! Cheers!