Late reply to this but it may help someone else
I had the same THREADGROUP_SIZE error while trying to compile the following modules
FX_OceanWater_Rowpass
and
FX_OceanWater_Colpass
I don’t know what any of it all means, I’m not a coder and Niagara is fairly new to me, but I was able to solve it thanks to chatgpt.
I basically copied the text from the OceanWater.ush file found in the Content folder (open it in notepad) and copied it into chatgpt asking it to search for errors and it provided me with an updated script which I pasted back into notepad and saved it (making sure the file extension is the same), then recompiled and it worked. It basically told me that the threadgroup size wasn’t defined and added a few lines of code to define it. It gave an entry of 16 in the script which I changed to 64 before saving.
System still wasn’t showing any waves so I opened the M_PreviewOceanWater material and it showed that there was an error in a texture type in one of the material functions, so I changed it to what it suggested and then saved it and everything is working now.
This was in 5.3 but is working in 5.4 also
So, someone might be interested to know how I got to that stage, I didn’t follow the tutorial as my time is limited, instead I opened the 5.1 project file provided. The 5.3 versions provided by users on this thread wouldn’t open as they gave the following error when loading the project -
”The following modules are missing or built with a different engine version: ShaderDirectory. Would you like to rebuild them now?”
but they were useful as I had an issue with the ‘FX_OceanWater_RoughnessIntegrator.uasset’ when I tried following the steps mentioned by DeathreyCG somewhere above to get it working in 5.3. So, instead I copied this asset from one of the unloadable 5.3 projects given (I can’t remember which one I used) and replaced the one that I had, then saved it, closed the engine then reopened it.
Also, I did the steps mentioned at the end of the tutorial -
!! If you choose to download sample files, keep in mind, that niagara includes, used with custom HLSL expressions in steps 7,8,9, use absolute paths, so you will need to edit relevant modules with custom HLSL expressions and adjust include path. Shader include files are in Content folder of the project. !!!
Open FX_OceanWater_Timestep Niagara Module Script , select Custom HLSL expression, and on selected details tab, next to an entry in Absolute Include File Paths, click … button and browse to the OceanTutorial/Content/OceanWater, selecting OceanComplexMath.ush file.
Open FX_OceanWater_Rowpass Niagara Module Script , select Custom HLSL expression, and on selected details tab, next to an entry in Absolute Include File Paths, click … button and browse to the OceanTutorial/Content/OceanWater, selecting OceanWater.ush file.
Open FX_OceanWater_Colpass Niagara Module Script , select Custom HLSL expression, and on selected details tab, next to an entry in Absolute Include File Paths, click … button and browse to the OceanTutorial/Content/OceanWater, selecting OceanWater.ush file.
Open FX_OceanWater_ExportData Niagara Module Script , select Custom HLSL expression, and on selected details tab, next to an entry in Absolute Include File Paths, click … button and browse to the OceanTutorial/Content/OceanWater, selecting OceanExport.ush file.
I think you need to do that everytime you migrate. Anyway, I loaded a copy of the working 5.3 version in 5.4 and repeated those last steps and it’s working and it looks great.
So, basically my run down -
- open the 5.1 project in 5.3
- used chatgpt to check the content of OceanWater.ush for errors and updated the script
- swapped the FX_OceanWater_RoughnessIntegrator.uasset for one from one of the 5.3 projects
provided in the thread. - follow the last steps of the tutorial to fix file paths
- open each module and recompile them
- open the M_PreviewOceanWater material and fix any errors with texture types. i.e. wrong sampler type.
- opened in 5.4
- re-did the file path steps.
Hopefully I’ve not missed anything, I hope this helps someone to get it working!
5.4 screen shot (with ultra dynamic sky) and the plane duplicated a few times (I also reduced the foam by tweaking it in the niagara sytem details panel (selected from the outliner)