# 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:** 240

<div class="post-metadata">

**Author:** ![AyanMiru](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ayanmiru/32/1194638_2.png) [@AyanMiru](https://forums.unrealengine.com/u/AyanMiru)\
**Post date:** [September 11, 2018, 8:42am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5016 "2018-09-11T08:42:58Z")

</div>

> [@kostenickj](#):
>

We desperately need HairWorks in 4.20. It’s probably don’t have much use in games (as pointed out), but in the growing Unreal animation field, I would say, it’s pretty important stuff.

Really glad to see that someone is working on it, thank you kostenickj! That’s real good progress there, I like the colors! ;D  
Please keep it up and tell the community if and when it’s ready!

---

<div class="post-metadata">

**Author:** ![kostenickj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kostenickj](https://forums.unrealengine.com/u/kostenickj)\
**Post date:** [September 11, 2018, 1:10pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5017 "2018-09-11T13:10:55Z")

</div>

> [@AyanMiru](#):
>
> We desperately need HairWorks in 4.20. It’s probably don’t have much use in games (as pointed out), but in the growing Unreal animation field, I would say, it’s pretty important stuff.
> 
> Really glad to see that someone is working on it, thank you kostenickj! That’s real good progress there, I like the colors! ;D  
> Please keep it up and tell the community if and when it’s ready!

Alright guys, i think i got everything working. I was making a dumb mistake in DeferredLightPixelShaders.usf. They combined DirectionalPixelMain and RadialPixelMain into a single function and i got confused.

 ![Capture.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/0/db0ab6033e07c3ee6f47bfc8b53f28a24faa1a8b.png)  
If someone wants to clone my branch and confirm everything works for them too, then perhaps @0lento_archive will want to merge my changes into his gamework branch.  
Note: my branch has a few changes to skeletal meshes and the utilities that you will want to discard. Also, its 420.0, not 420.2

---

<div class="post-metadata">

**Author:** ![samrat333](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@samrat333](https://forums.unrealengine.com/u/samrat333)\
**Post date:** [September 11, 2018, 2:04pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5018 "2018-09-11T14:04:34Z")

</div>

"kostenickj;  
we try your branch compile again now but hir not show in view port and blue print while hairwork is show why???

---

<div class="post-metadata">

**Author:** ![kostenickj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kostenickj](https://forums.unrealengine.com/u/kostenickj)\
**Post date:** [September 11, 2018, 2:15pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5019 "2018-09-11T14:15:32Z")

</div>

> [@samrat333](#):
>
> "kostenickj;  
> we try your branch compile again now but hir not show in view port and blue print while hairwork is show why???

Honestly i have no idea what you are trying to say/ask.

I know you tried my original branch even when i said it was broken, even when i clearly posted a screenshot that it was broken. The latest version of that branch works for me, update the code from that.

---

<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:** [September 11, 2018, 3:38pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5020 "2018-09-11T15:38:51Z")

</div>

> [@kostenickj](#):
>
> If someone wants to clone my branch and confirm everything works for them too, then perhaps @0lento_archive will want to merge my changes into his gamework branch. https://github/kostenickj/Unreal…tree/420Mod2HW  
> Note: my branch has a few changes to skeletal meshes and the utilities that you will want to discard. Also, its 420.0, not 420.2

Nice, have confirmed it works on standalone built package too using hairworks demo scene? Besides checking that it builds without errors, please also check that when you run the executable it shows dynamic hair (I had issues with that on 4.18 so now extra cautious on verifying it actually works). 4.20.0 vs 4.20.2 doesn’t make much difference, if it’s 4.20.x it’ll merge into newest nicely.

---

<div class="post-metadata">

**Author:** ![kostenickj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kostenickj](https://forums.unrealengine.com/u/kostenickj)\
**Post date:** [September 11, 2018, 3:44pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5021 "2018-09-11T15:44:55Z")

</div>

> [@](#):
>
> Nice, have confirmed it works on standalone built package too using hairworks demo scene? Like not only that it build but that it displays dynamic hair there as well (had issues on 4.18 so now extra cautious on checking it actually works). 4.20.0 vs 4.20.2 doesn’t make much difference, if it’s 4.20.x it’ll merge into newest nicely.

It definitely works on the demo scene(s) for me in my build, that is where i did my testing. But i will make a standalone package with just the Hairworks assets and confirm tommorow. I’m currently at my real job and cant do it until then. If anyone else wants to confirm in the meantime go ahead!

---

<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:** [September 11, 2018, 9:16pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5022 "2018-09-11T21:16:12Z")

</div>

> [@kostenickj](#):
>
> It definitely works on the demo scene(s) for me in my build, that is where i did my testing. But i will make a standalone package with just the Hairworks assets and confirm tommorow. I’m currently at my real job and cant do it until then. If anyone else wants to confirm in the meantime go ahead!

Demo scene worked at the 4.18 editor too but it still failed to run on standalone. 4.19 HairWorks did work on both tho. Additionally, if you haven’t test packaged, it’s possible that the integration still breaks as there are often packaging related changes as well (but I don’t think there were big issues on when going from 4.19-\>4.20)

---

<div class="post-metadata">

**Author:** ![kostenickj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kostenickj](https://forums.unrealengine.com/u/kostenickj)\
**Post date:** [September 12, 2018, 8:19am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5023 "2018-09-12T08:19:24Z")

</div>

> [@0lento\_archive](#):
>
> Demo scene worked at the 4.18 editor too but it still failed to run on standalone. 4.19 HairWorks did work on both tho. Additionally, if you haven’t test packaged, it’s possible that the integration still breaks as there are often packaging related changes as well (but I don’t think there were big issues on when going from 4.19-\>4.20)

I Just tested in standalone, and in package development and shipping builds, and everything seems to be working! I think you are probably good to go to merge into your Gameworks branch.

EDIT: hold off until I figure out the bugs below

---

<div class="post-metadata">

**Author:** ![AyanMiru](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ayanmiru/32/1194638_2.png) [@AyanMiru](https://forums.unrealengine.com/u/AyanMiru)\
**Post date:** [September 12, 2018, 10:07am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5024 "2018-09-12T10:07:40Z")

</div>

Hey kostenickj~ thanks for update!  
So, I’ve pulled latest updates. It compiles without problems.  
However opening example map, the HairWorks component inside BP actors doesn’t visualize hair. More over if I try to compile blueprint with HW component the editor crashes.  
I’ve created new project with build and created empty BP actor and only added HW component. BP compile still crashes UE4. Debug on crash shows that HairWorksComponent.cpp on line 567 trying to access null by HairInstance.HairMaterial pointer.

[SPOILER]

 ![ExceptionThrown.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/0/8/408108efda1beabe3a6bebdd77bc33460d6a3098.png)[/SPOILER]

---

<div class="post-metadata">

**Author:** ![kostenickj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kostenickj](https://forums.unrealengine.com/u/kostenickj)\
**Post date:** [September 12, 2018, 10:44am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5025 "2018-09-12T10:44:37Z")

</div>

> [@AyanMiru](#):
>
> Hey kostenickj~ thanks for update!  
> So, I’ve pulled latest updates. It compiles without problems.  
> However opening example map, the HairWorks component inside BP actors doesn’t visualize hair. More over if I try to compile blueprint with HW component the editor crashes.  
> I’ve created new project with build and created empty BP actor and only added HW component. BP compile still crashes UE4. Debug on crash shows that HairWorksComponent.cpp on line 567 trying to access null by HairInstance.HairMaterial pointer.
> 
> ![Capture.PNG.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/3/6c34ae19c32d317742ca6dcfc5287463aee2c718.jpeg)

Hey, thanks for posting . I was able to recreate the crash and ill try to get that fixed ASAP. However, all the components that are already compiled are rendering fine for me.

 ![Capture.PNG.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/3/6c34ae19c32d317742ca6dcfc5287463aee2c718.jpeg)

I just opened every already compiled hairworks asset to check, and they are all rendering for me. Ill fix the compile bug, maybe its related to that.

If you run PIE in the example map does anything render?

---

<div class="post-metadata">

**Author:** ![samrat333](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@samrat333](https://forums.unrealengine.com/u/samrat333)\
**Post date:** [September 12, 2018, 12:31pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5026 "2018-09-12T12:31:56Z")

</div>

[quote=“AyanMiru, post:4990, topic:16686”]

Hey kostenickj~ thanks for update!  
So, I’ve pulled latest updates. It compiles without problems.  
However opening example map, the HairWorks component inside BP actors doesn’t visualize hair. More over if I try to compile blueprint with HW component the editor crashes.  
I’ve created new project with build and created empty BP actor and only added HW component. BP compile still crashes UE4. Debug on crash shows that HairWorksComponent.cpp on line

we face same problem weshow hairworks in blueprint but not hair whlie kostenickj many time load pic with hair. we download and compile again but same problem

---

<div class="post-metadata">

**Author:** ![kostenickj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kostenickj](https://forums.unrealengine.com/u/kostenickj)\
**Post date:** [September 12, 2018, 1:45pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5027 "2018-09-12T13:45:43Z")

</div>

so i added a check to not do that action if the HairMaterial is nullptr, and everything seems to be working including the compile/save. But i need to investigate to find out WHY its null. It doesn’t happen in the 4.19 version.

---

<div class="post-metadata">

**Author:** ![kostenickj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kostenickj](https://forums.unrealengine.com/u/kostenickj)\
**Post date:** [September 12, 2018, 1:53pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5028 "2018-09-12T13:53:11Z")

</div>

WOW.

I forgot to commit the HW Binaries Folder Binaries/ThirdParty.

That would explain why no one would see any hair. I had it locally but no one else did. I will commit that now. Apologies.

UPDATE: They are commited and hair should render now. But i still need to find the reason for the compile blueprint null material.

---

<div class="post-metadata">

**Author:** ![AyanMiru](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ayanmiru/32/1194638_2.png) [@AyanMiru](https://forums.unrealengine.com/u/AyanMiru)\
**Post date:** [September 13, 2018, 3:23am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5029 "2018-09-13T03:23:46Z")

</div>

> [@kostenickj](#):
>
> WOW.
> 
> I forgot to commit the HW Binaries Folder Binaries/ThirdParty.
> 
> That would explain why no one would see any hair. I had it locally but no one else did. I will commit that now. Apologies.
> 
> UPDATE: They are commited and hair should render now. But i still need to find the reason for the compile blueprint null material.

Hey, that was it 🙂

Yes,simple if check did resolve that BP compile problem (btw, looks like you didn’t commit that), now it seems everything is working. I will give it to our artists to check out.  
Thank you, again~

---

<div class="post-metadata">

**Author:** ![samrat333](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@samrat333](https://forums.unrealengine.com/u/samrat333)\
**Post date:** [September 13, 2018, 4:16am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5030 "2018-09-13T04:16:31Z")

</div>

> [@kostenickj](#):
>
> WOW.
> 
> I forgot to commit the HW Binaries Folder Binaries/ThirdParty.
> 
> That would explain why no one would see any hair. I had it locally but no one else did. I will commit that now. Apologies.
> 
> UPDATE: They are commited and hair should render now. But i still need to find the reason for the compile blueprint null material.

you do great job thank you can you make tutorial how make it

---

<div class="post-metadata">

**Author:** ![kostenickj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kostenickj](https://forums.unrealengine.com/u/kostenickj)\
**Post date:** [September 13, 2018, 7:06am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5031 "2018-09-13T07:06:30Z")

</div>

> [@AyanMiru](#):
>
> Hey, that was it 🙂
> 
> Yes,simple if check did resolve that BP compile problem (btw, looks like you didn’t commit that), now it seems everything is working. I will give it to our artists to check out.  
> Thank you, again~

Ya i didnt commit that because it seems like a band aid. I think i will commit it now after thinking about it for a while. Im still going to try to figure out why its null though.

---

<div class="post-metadata">

**Author:** ![kostenickj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kostenickj](https://forums.unrealengine.com/u/kostenickj)\
**Post date:** [September 13, 2018, 10:29am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5032 "2018-09-13T10:29:35Z")

</div>

> [@samrat333](#):
>
> you do great job thank you can you make tutorial how make it

There is no better tutorial than looking at the code yourself and understanding what it does. Before one week ago I had never touched the rendering module.

---

<div class="post-metadata">

**Author:** ![gaaooee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gaaooee](https://forums.unrealengine.com/u/gaaooee)\
**Post date:** [September 13, 2018, 5:21pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5033 "2018-09-13T17:21:44Z")

</div>

can anyone n laymens terms tell me what needs to be done to merge into one build Ill do it im interested in that kind of thing

---

<div class="post-metadata">

**Author:** ![Thijs\_Linssen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thijs\_Linssen](https://forums.unrealengine.com/u/Thijs_Linssen)\
**Post date:** [September 14, 2018, 8:49pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5034 "2018-09-14T20:49:32Z")

</div>

Hi guys,

So the big plan is to Wavework and try to get Truesky to work with it. But first baby steps 😉  
I think I’ve got Waveworks in my ue4 (atleast i built accordingly) but i don’s see the example map.

What is the way to make the waveworks ocean? Can’t seem to find it… I can find the shoreline capture however…  
Thx for the help!

4.18 btw

edit: silly me… found the example map

---

<div class="post-metadata">

**Author:** ![Kriptanik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kriptanik](https://forums.unrealengine.com/u/Kriptanik)\
**Post date:** [September 16, 2018, 5:58am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/5035 "2018-09-16T05:58:00Z")

</div>

Hey guys,

I’ve been waiting a while for Nvidia to update all their branches to 4.20 (I’m specifically waiting on VXGI but official updates on the others would be nice as well) and I’m getting a bit concerned.

/releases

Going back 2+ years there’s at least 1 release from nvidia every month, most the time 3 or 4 even during other major UE4 version updates, but now we haven’t heard from them in almost 3 months.

I can’t find any posts on the Nvidia dev forums or Reddit regarding and the support page on the GameWorks/UE4 website just links to thread.  
Am I missing something? Is it possible they are planning on dropping direct support for GameWorks on UE4?

(Also thanks to and others on their amazing work on upgrading some of the branches manually and packaging them together for everyone).

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

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