# NVIDIA GameWorks Integration

**URL:** <https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686>\
**Category:** Asset Creation\
**Tags:** unreal-engine\
**Created:** [December 7, 2014, 7:11pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686 "2014-12-07T19:11:32Z")\
**Posts on this page:** 20\
**Page:** 258

<div class="post-metadata">

**Author:** ![anonymous\_user\_0f6a2e5d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0f6a2e5d](https://forums.unrealengine.com/u/anonymous_user_0f6a2e5d)\
**Post date:** [February 19, 2019, 11:07am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5386 "2019-02-19T11:07:47Z")

</div>

Hi @  
thanks for your amazing work! Almost everything seems to be fine!  
Just one little thing: I’m trying to use waveworks example project and it happens to crash both when I open the little example scene (the little tub, not the ocean one) and when I drag the WaterPlane\_Blueprint onto an empty scene, or just opening that BP.  
The problem seems to be confined to that BP. Since I’m starting a project with wavework, I need to know if it’s safe enough to use 4.21 version rather than 4.19 official release.  
That being said, could you confirm that is just some broken shader of that BP and nothing more to worry about?

I’ve attached a screenshot of the crash.

Thanks in advance

Best Regards

---

<div class="post-metadata">

**Author:** ![0lento\_archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@0lento\_archive](https://forums.unrealengine.com/u/0lento_archive)\
**Post date:** [February 19, 2019, 2:32pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5387 "2019-02-19T14:32:44Z")

</div>

> [@Darix89](#):
>
> Hi @0lentoI’m trying to use waveworks example project and it happens to crash both when I open the little example scene (the little tub, not the ocean one) and when I drag the WaterPlane\_Blueprint onto an empty scene, or just opening that BP.  
> The problem seems to be confined to that BP.

I’ve only tested with the default WaveWorks scene, it’s possible there’s some breaking changes for some existing BPs (in my experience BPs can be super fragile if the underlying c++ class changes, I’ve had my share of corrupted BPs due to that). I can’t promise when I have time to look at but can check it out next time I update the repo. Thanks for the report.

---

<div class="post-metadata">

**Author:** ![ahmadsy1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ahmadsy1](https://forums.unrealengine.com/u/ahmadsy1)\
**Post date:** [February 19, 2019, 3:28pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5388 "2019-02-19T15:28:19Z")

</div>

@ Do you have plans to make Flex working with 4.21.2?

---

<div class="post-metadata">

**Author:** ![0lento\_archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@0lento\_archive](https://forums.unrealengine.com/u/0lento_archive)\
**Post date:** [February 20, 2019, 3:42am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5389 "2019-02-20T03:42:50Z")

</div>

> [@ahmadsy1](#):
>
> @0lento_archive Do you have plans to make Flex working with 4.21.2?

No plans, hoping Nvidia will upgrade it at some point.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0f6a2e5d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0f6a2e5d](https://forums.unrealengine.com/u/anonymous_user_0f6a2e5d)\
**Post date:** [February 20, 2019, 10:04am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5390 "2019-02-20T10:04:28Z")

</div>

Hi,  
you are welcome , thanks again and I’ll follow post in order to get updates.

ps: sorry for the double post, it was my first comment in forum, it puzzled me the “non approved” status of the message immediately after the submit.

---

<div class="post-metadata">

**Author:** ![MASSIVE\_Can](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MASSIVE\_Can](https://forums.unrealengine.com/u/MASSIVE_Can)\
**Post date:** [February 20, 2019, 11:35am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5391 "2019-02-20T11:35:18Z")

</div>

@ I’m using your 4.21.2 Gameworks branch it is big thanks for your contribution. But I’m having trouble about getting overlap events of waveworks component it is just not working. In Bp I tried some line trace too and It is still not overlapping. Can you have a look what can do for ? I think it is a necessary to make a swim system. And also waterplane component causes the crash while opening the level that include waterplane and when I assign a material on it.

---

<div class="post-metadata">

**Author:** ![0lento\_archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@0lento\_archive](https://forums.unrealengine.com/u/0lento_archive)\
**Post date:** [February 20, 2019, 1:03pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5392 "2019-02-20T13:03:04Z")

</div>

> [@](#):
>
> @0lento_archive I’m using your 4.21.2 Gameworks branch it is big thanks for your contribution. But I’m having trouble about getting overlap events of waveworks component it is just not working. In Bp I tried some line trace too and It is still not overlapping. Can you have a look what can do for ? I think it is a necessary to make a swim system. And also waterplane component causes the crash while opening the level that include waterplane and when I assign a material on it.

Just to make sure, does functionality work on [https://github/NvPhysX/UnrealEng…aveWorks\_4\_19](https://forums.unrealengine.com/tree/WaveWorks_4_19?)? I wouldn’t expect regular linetraces to work for water surface as it’s not a collider.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0f6a2e5d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0f6a2e5d](https://forums.unrealengine.com/u/anonymous_user_0f6a2e5d)\
**Post date:** [February 20, 2019, 3:57pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5393 "2019-02-20T15:57:40Z")

</div>

It seems the problem is more serious than I’ve thought.  
It’s the WaveWorksStaticMeshComponent that is not usable with the example materials (both OceanMaterial and WaterPlanMaterial), something related to tessellation and waveworks functions invoked inside their shaders. The only usable comp is the WaveWorksComponent, which is giving me some headache for doing some basic stuff like resize and move the water plane like I was able to do with static mesh component. After a day of struggling I’m going back to the 4.19.  
Any help is welcome!

Thanks in advance

edit: I’ve discovered how to move and customize also in way (just tweaking waveworks asset), hope to not find other issues!

---

<div class="post-metadata">

**Author:** ![MASSIVE\_Can](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MASSIVE\_Can](https://forums.unrealengine.com/u/MASSIVE_Can)\
**Post date:** [February 20, 2019, 6:55pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5394 "2019-02-20T18:55:51Z")

</div>

> [@](#):
>
> Just to make sure, does functionality work on [https://github/NvPhysX/UnrealEng…aveWorks\_4\_19](https://forums.unrealengine.com/tree/WaveWorks_4_19?)? I wouldn’t expect regular linetraces to work for water surface as it’s not a collider.

Unfortunatelly I don’t have that branch. But I think WaveWorksStaticMesh Component available for overlap things.

---

<div class="post-metadata">

**Author:** ![Funkeys74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Funkeys74](https://forums.unrealengine.com/u/Funkeys74)\
**Post date:** [February 21, 2019, 10:53am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5395 "2019-02-21T10:53:34Z")

</div>

> [@Darix89](#):
>
> It seems the problem is more serious than I’ve thought.  
> It’s the WaveWorksStaticMeshComponent that is not usable with the example materials (both OceanMaterial and WaterPlanMaterial), something related to tessellation and waveworks functions invoked inside their shaders. The only usable comp is the WaveWorksComponent, which is giving me some headache for doing some basic stuff like resize and move the water plane like I was able to do with static mesh component. After a day of struggling I’m going back to the 4.19.  
> Any help is welcome!
> 
> Thanks in advance
> 
> edit: I’ve discovered how to move and customize also in way (just tweaking waveworks asset), hope to not find other issues!

Hi guys,

I have the same error with the BP\_WaterPlane, the ocean BP works fine so far, started to make a transparent forward rendering material and a buoyancy C++ component and encountered no severe problems so far with that branch. (thx a lot mr. \*\*\*\*🙂

But the BP\_WaterPlane was def. working in the original /tree/WaveWorks\_4\_19?

br  
Funkeys

 ![Unbenannt.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/6/16d862a08372ee2a15d181c66f11c1bf813f9b75.jpeg)

---

<div class="post-metadata">

**Author:** ![Funkeys74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Funkeys74](https://forums.unrealengine.com/u/Funkeys74)\
**Post date:** [February 22, 2019, 7:29pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5396 "2019-02-22T19:29:59Z")

</div>

> [@Funkeys74](#):
>
> Hi guys,
> 
> I have the same error with the BP\_WaterPlane, the ocean BP works fine so far, started to make a transparent forward rendering material and a buoyancy C++ component and encountered no severe problems so far with that branch. (thx a lot mr. \*\*\*\*🙂
> 
> But the BP\_WaterPlane was def. working in the original /tree/WaveWorks\_4\_19?
> 
> br  
> Funkeys
> 
> ![Unbenannt.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/6/16d862a08372ee2a15d181c66f11c1bf813f9b75.jpeg)

I have an update to that!  
In my own project the WaterPlane\_Blueprint is editable.

 ![BP_WaterPlane.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/c/6c3e7075705e35279e5a9470fe39d58e06483811.jpeg)  
and I can open the waveworks\_watr\_plane\_map  
 ![WaterPlaneDemoMap.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/3/d340ddfeebb763ab99a6257286bb87af680d0569.jpeg)  
only thing is the water is not rendering, had no time to further invetigate that so far.

But I think the reason why works in my project without a crash is that I needed to add RHI to my public dependency modules to the MyProjectName.Build.cs file.

PublicDependencyModuleNames.AddRange(new string] { “Core”, “CoreUObject”, “Engine”, “InputCore”, “RenderCore”, “RHI”, “D3D11RHI” });

Probably necasary now because of a change in the API structure form .19 to .21!?

---

<div class="post-metadata">

**Author:** ![Funkeys74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Funkeys74](https://forums.unrealengine.com/u/Funkeys74)\
**Post date:** [February 22, 2019, 7:43pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5397 "2019-02-22T19:43:50Z")

</div>

> [@](#):
>
> Unfortunatelly I don’t have that branch. But I think WaveWorksStaticMesh Component available for overlap things.

Hi Massive,  
as stated there is no overlap event you can use in BP or so. There is the WaveWorksFloating component which has functionality and it is a C++ class in the WaveworksTester project, and is working fine .21 branch.  
There is also RayCast demo (also C++ class) showing how to ghet the wave height for bullet impact effect or like on the water surface.

You can do your own C++ classes implementing the UCLASS macro too use waveheight sampling in blueprints.

hope that helps!  
br Funkeys

---

<div class="post-metadata">

**Author:** ![TritonSailor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TritonSailor](https://forums.unrealengine.com/u/TritonSailor)\
**Post date:** [February 24, 2019, 8:23pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5398 "2019-02-24T20:23:12Z")

</div>

I did the update of Waveworks from 4.19 to 4.21 then worked with to merge it into his branch. I didn’t realize the BP\_WaterPlane isn’t working since I don’t use that, and didn’t test that blueprint. I don’t have time right now to dig into it, but I’ll take a look at it for the next update.

From the errors posted previously (BufferRHI was nullptr), it looks like the WaterPlane BP uses a different uniform buffer that needs to be updated to follow the changes in the rendering engine that happened between 4.19 and 4.21. If someone wants to look into it, I’d suggest starting by looking at the changes I made in TranslucentRendering.cpp in the function void FDeferredShadingSceneRenderer::RenderWaveWorks. Then see if you can determine from the stack trace debugging in VS what function is getting called that needs to be updated.

You can use the 4.19 version of Waveworks to save the BP\_WaterPlane with visibility of the waterplane turned off. Then use that for debugging the 4.21 branch. That makes it easier for debugging in VS, since the project will load correctly, and you can trigger the error simply by checking the visibility checkbox.

---

<div class="post-metadata">

**Author:** ![Funkeys74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Funkeys74](https://forums.unrealengine.com/u/Funkeys74)\
**Post date:** [February 25, 2019, 3:59pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5399 "2019-02-25T15:59:10Z")

</div>

> [@](#):
>
> I did the update of Waveworks from 4.19 to 4.21 then worked with to merge it into his branch. I didn’t realize the BP\_WaterPlane isn’t working since I don’t use that, and didn’t test that blueprint. I don’t have time right now to dig into it, but I’ll take a look at it for the next update.
> 
> From the errors posted previously (BufferRHI was nullptr), it looks like the WaterPlane BP uses a different uniform buffer that needs to be updated to follow the changes in the rendering engine that happened between 4.19 and 4.21. If someone wants to look into it, I’d suggest starting by looking at the changes I made in TranslucentRendering.cpp in the function void FDeferredShadingSceneRenderer::RenderWaveWorks. Then see if you can determine from the stack trace debugging in VS what function is getting called that needs to be updated.
> 
> You can use the 4.19 version of Waveworks to save the BP\_WaterPlane with visibility of the waterplane turned off. Then use that for debugging the 4.21 branch. That makes it easier for debugging in VS, since the project will load correctly, and you can trigger the error simply by checking the visibility checkbox.

Hey cool thanks!  
I dont know if I will have the time to look into soon. Also I am not very used to C++, quite familiar with C# tho. And I do not need the WaterPlane BP as well for my project.  
Having kinda hard time getting used to the more precise syntax haha!

But I would have a question, do you know if it is possible to access the wave height data on the GPU to calculate the buoyancy with CUDA, and be able to switch of the readback?  
Well need to readback the buoyancy triangles later, so I dont know if approach a better solution at all, but would be good to know.

---

<div class="post-metadata">

**Author:** ![Alex23Analyse](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alex23analyse/32/759693_2.png) [@Alex23Analyse](https://forums.unrealengine.com/u/Alex23Analyse)\
**Post date:** [February 25, 2019, 8:14pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5400 "2019-02-25T20:14:17Z")

</div>

> [@](#):
>
> Updated 4.21-GameWorks and 4.21-Physics to 4.21.2 and fixed some compilation warnings from Waveworks (doesn’t change any functionality, only suppresses the warnings):
> 
> [https://github//UnrealEngine/tree/4.21-Physics](https://github//UnrealEngine/tree/4.21-Physics)
> 
> And before you ask again, no news on FleX, by the looks of it we’ll not be having 4.21 version unless someone picks it up and fixes the remaining issues.

i try to test your 4.21 build for gameworks but can’t reach it on github ? don’t know why

---

<div class="post-metadata">

**Author:** ![TritonSailor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TritonSailor](https://forums.unrealengine.com/u/TritonSailor)\
**Post date:** [February 26, 2019, 12:46pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5401 "2019-02-26T12:46:29Z")

</div>

> [@Funkeys74](#):
>
> Hey cool thanks!  
> I dont know if I will have the time to look into soon. Also I am not very used to C++, quite familiar with C# tho. And I do not need the WaterPlane BP as well for my project.  
> Having kinda hard time getting used to the more precise syntax haha!
> 
> But I would have a question, do you know if it is possible to access the wave height data on the GPU to calculate the buoyancy with CUDA, and be able to switch of the readback?  
> Well need to readback the buoyancy triangles later, so I dont know if approach a better solution at all, but would be good to know.

I think to do something like that you would need to change the binary that Nvidia distributes with the Waveworks GitHub project. If I’m not mistaken, all the CUDA calculation is done in the closed source binary.

---

<div class="post-metadata">

**Author:** ![0lento\_archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@0lento\_archive](https://forums.unrealengine.com/u/0lento_archive)\
**Post date:** [February 27, 2019, 6:15pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5402 "2019-02-27T18:15:20Z")

</div>

> [@AlexEtNico](#):
>
> i try to test your 4.21 build for gameworks but can’t reach it on github ? don’t know why

You need to have your UE4 account linked to your github account to be able to access any UE4 source code repository. See instructions : [https://www.unrealengine/en-US/ue4-on-github](https://www.unrealengine/en-US/ue4-on-github)

---

<div class="post-metadata">

**Author:** ![Funkeys74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Funkeys74](https://forums.unrealengine.com/u/Funkeys74)\
**Post date:** [February 28, 2019, 4:34pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5403 "2019-02-28T16:34:58Z")

</div>

> [@](#):
>
> I think to do something like that you would need to change the binary that Nvidia distributes with the Waveworks GitHub project. If I’m not mistaken, all the CUDA calculation is done in the closed source binary.

hmm nvidia is having the waveworks source on github as well. But sounds too much effort for me working into that too, was hoping to be able to access it via the engine.  
Thank you!

---

<div class="post-metadata">

**Author:** ![OptimisticMonkey](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/optimisticmonkey/32/906571_2.png) [@OptimisticMonkey](https://forums.unrealengine.com/u/OptimisticMonkey)\
**Post date:** [March 2, 2019, 2:58pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5404 "2019-03-02T14:58:00Z")

</div>

FYI - Looks like the version of Blast in 4.22 Preview is incomplete? No BlastEditor or “Create Blast Mesh” in editor?

---

<div class="post-metadata">

**Author:** ![0lento\_archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@0lento\_archive](https://forums.unrealengine.com/u/0lento_archive)\
**Post date:** [March 2, 2019, 8:55pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5405 "2019-03-02T20:55:07Z")

</div>

> [@OptimisticMonkey](#):
>
> FYI - Looks like the version of Blast in 4.22 Preview is incomplete? No BlastEditor or “Create Blast Mesh” in editor?

I didn’t see any editor bits there but I only looked at it briefly.

[Previous page](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686.md?page=257)

[Next page](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686.md?page=259)
