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

<div class="post-metadata">

**Author:** ![Gomo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gomo](https://forums.unrealengine.com/u/Gomo)\
**Post date:** [May 22, 2018, 4:25pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/4812 "2018-05-22T16:25:45Z")

</div>

> [@](#):
>
> @Gomo was that some example map? If so, which one? I tried TXAA with some but not all. Also was on recent version of my repo? There was with TXAA before that it crashed on forward shading enabled, has been fixed a while ago on official TXAA branch and I’ve mirrored the changed to my branch so that shouldn’t happen anymore.

@ - It was on my test map.  
I believe it is not your recent revision - I see I downloaded it on 30th of April.  
I have forward shading disabled, but project was initially set for mobile but then I’ve changed a lot of settings to be sure VXGI will show up (for some reason I had problem with that) so maybe it was some random rendering setting.

---

<div class="post-metadata">

**Author:** ![Gandosh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gandosh](https://forums.unrealengine.com/u/Gandosh)\
**Post date:** [May 23, 2018, 10:11am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/4813 "2018-05-23T10:11:17Z")

</div>

> [@.](#):
>
> What do you mean by ‘in rendered video’ ?
> 
> The branch i’m sharing on github are focused on stability and their ability to package games.  
> Again, i won’t include TXAA which didn’t improve significantly over Unreal AA in my tests, and i most likely won’t include NV Volumetric light as it hasn’t been officially updated since 4.17 and it took me extra work to have it work and package properly in 4.18 alongside other Gameworks solutions.  
> Unreal Engine volumetric solution is already amazing for my needs on my current project (there weren’t any volumetric light in Unreal Engine back when Nvidia integrated its volumetric light solution)

““Originally posted by \*\*\*\* [View Post](https://forums.unrealengine/community/general-discussion/24447-nvidia-gameworks-integration?p=1469143#post1469143)  
[.](https://forums.unrealengine/member/649466--) is your hairworks okay? i mean. Hairs are not showing in rendered video. But in viewport i can see them allright.”” Question was .

I’m really sorry. Building whole city is hell of a work! i got lost in my work.  
I rendered video using sequencer. In majaladon or other demos or rendering just fine. But in my level they’re not showing up. For a second. I thought it was bounds scale problem. But i guess not.

---

<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:** [May 23, 2018, 3:00pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/4814 "2018-05-23T15:00:24Z")

</div>

I noticed that Nvidia pushed 4.18 and 4.19 versions of Volumetric Lighting into github:  
[https://github/NvPhysX/UnrealEng…cLighting-4.18](https://forums.unrealengine.com/tree/VolumetricLighting-4.18)  
[https://github/NvPhysX/UnrealEng…cLighting-4.19](https://forums.unrealengine.com/tree/VolumetricLighting-4.19)

I’ve merged Nvidia’s 4.19 VL into:  
)  
Now repo contains Blast + Flow + HairWorks 1.4 + HBAO+ 4 + TXAA 3 + Volumetric Lighting + VXGI 2. I’ve removed the previous additional 4.19 merge with VL (from 4.17) as it’s pointless to keep two identical branches up-to-date.

> [@Gomo](#):
>
> I believe it is not your recent revision - I see I downloaded it on 30th of April.

There were some fixes for TXAA after that date so you might want to try newer version. Also note the mention above, if you need to update, use the 4.19-GameWorks branch instead as it contains now the same tech as old -VL branch.

---

<div class="post-metadata">

**Author:** ![Gomo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gomo](https://forums.unrealengine.com/u/Gomo)\
**Post date:** [May 23, 2018, 4:11pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/4815 "2018-05-23T16:11:27Z")

</div>

@ - Sure, thanks for info.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_de1cda1c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_de1cda1c](https://forums.unrealengine.com/u/anonymous_user_de1cda1c)\
**Post date:** [May 24, 2018, 5:34pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/4816 "2018-05-24T17:34:58Z")

</div>

Hey can someone please help me with Nvidia volumetric lighting? I have the engine built fine, no problems there, Just can’t get good settings with accurate beams! Does anyone know any settings for an effect similar to fallout 4? Any help would be greatly appreciated!!! Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Derjyn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/derjyn/32/931618_2.png) [@Derjyn](https://forums.unrealengine.com/u/Derjyn)\
**Post date:** [May 26, 2018, 1:44am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/4817 "2018-05-26T01:44:12Z")

</div>

So with r.VXGI.range being removed and replaced with r.VXGI.MapSizeX (any Y,Z)… Performance kinda stinks. What I mean is, to get lighting in a respectable range, you have to crank that up. As soon as you have a map size of 128 or higher, _poof_, there go your frame rates. I’ve juggled between various settings combos with r.VXGI.MapSize and r.VXGI.VoxelSize. With a respectable frame rate of ~60 in a basic scene with a single directional light blasting through windows (demo scene from volumetric lighting), I’m using a map size of 64 and a voxel size of 64. Lighting only seems effective at around 40 meters. It goes dark beyond that.

Are there any magic numbers to tweak that won’t effect performance too much? I know I’m dreaming, but hoping I’m just missing/forgetting something! That quality is acceptable with those current settings for an interactive game scenario, but I’d like to lower the voxel size a bit. Of course, when you do that, the distance of lighting drops drastically. I’m afraid of raising diffuse tracing intensity, because it might blow out other things in the PBR pipeline. I’d rather not have to change the typical way of authoring assets.

[edit]

Derp on my part- even if one cranks up the diffuse indirect lighting intensity, it has no effect on lighting distance.

Also, I came across thread over at Nvidia:  
[https://devtalk.nvidia/default/topic/1031155/general-graphics-programming/vxgi-fallback-diffuse-ambient-color/](https://devtalk.nvidia/default/topic/1031155/general-graphics-programming/vxgi-fallback-diffuse-ambient-color/)

Is it possible to wrangle up in a material?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7c71c8ec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7c71c8ec](https://forums.unrealengine.com/u/anonymous_user_7c71c8ec)\
**Post date:** [May 27, 2018, 5:50pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/4818 "2018-05-27T17:50:50Z")

</div>

> [@](#):
>
> So with r.VXGI.range being removed and replaced with r.VXGI.MapSizeX (any Y,Z)… Performance kinda stinks. What I mean is, to get lighting in a respectable range, you have to crank that up. As soon as you have a map size of 128 or higher, _poof_, there go your frame rates. I’ve juggled between various settings combos with r.VXGI.MapSize and r.VXGI.VoxelSize. With a respectable frame rate of ~60 in a basic scene with a single directional light blasting through windows (demo scene from volumetric lighting), I’m using a map size of 64 and a voxel size of 64. Lighting only seems effective at around 40 meters. It goes dark beyond that.
> 
> Are there any magic numbers to tweak that won’t effect performance too much? I know I’m dreaming, but hoping I’m just missing/forgetting something! That quality is acceptable with those current settings for an interactive game scenario, but I’d like to lower the voxel size a bit. Of course, when you do that, the distance of lighting drops drastically. I’m afraid of raising diffuse tracing intensity, because it might blow out other things in the PBR pipeline. I’d rather not have to change the typical way of authoring assets.
> 
> [edit]
> 
> Derp on my part- even if one cranks up the diffuse indirect lighting intensity, it has no effect on lighting distance.
> 
> Also, I came across thread over at Nvidia:  
> [https://devtalk.nvidia/default/topic/1031155/general-graphics-programming/vxgi-fallback-diffuse-ambient-color/](https://devtalk.nvidia/default/topic/1031155/general-graphics-programming/vxgi-fallback-diffuse-ambient-color/)
> 
> Is it possible to wrangle up in a material?

Let me clarify the meaning of these parameters and how they relate to the old r.VXGI.Range.  
r.VXGI.VoxelSize is the size of the smallest voxels, in world units. Increasing that will directly increase the range, and slightly degrade performance because more objects now fall into the voxelized region.  
r.VXGI.MapSize{X,Y,Z} is the number of voxels on each side of every voxel clip-map volume. It also directly affects the range, but increasing MapSize will make performance much worse (as you observe) as the GPU has to deal with more voxels. Increasing all of MapSizeX,Y,Z by a factor of 2 multiplies the total number of voxels by a factor of 8.  
r.VXGI.Range (which is gone) was just a product of MapSize and VoxelSize.  
r.VXGI.StackLevels controls the number of clip-map levels (or cascades) in the voxel volume, so setting it 1 higher makes the distance 2x longer; the and default value for StackLevels is 5.

Total world distance covered by VXGI can be calculated as MapSize \* VoxelSize \* pow(2, StackLevels-1).

Regarding that “fallback color” topic you mentioned: it’s possible to use that in a post-process material. But in 2.0, the confidence value is stored in FScreenSpaceData.VxgiConfidence, instead of VxgiDiffuse.a.

---

<div class="post-metadata">

**Author:** ![Derjyn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/derjyn/32/931618_2.png) [@Derjyn](https://forums.unrealengine.com/u/Derjyn)\
**Post date:** [May 28, 2018, 12:17am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/4819 "2018-05-28T00:17:36Z")

</div>

As always, thanks a ton . I’ve tinkered even more various settings, and found a happy middle ground. As far as the nabbing the confidence value and using that in post-processing- is that easily accessible or does it require shader developing and C++ code?

[edit]

Another question I’ve been meaning to ask… Flow and VXGI, sitting in a tree, k-i-s-s-i-n-g. Is there any way to get emissive materials and the like to play with Flow systems, as well as getting a Flow system to contribute to emission? I have some smoke for example, that would be to have lit from emissives or area lights. On that same note, I have some fire that would be (more) amazing if it were contributing light to the scene.

I’m thinking I could “hack” something together, using lighting channels, but am very curious if there is any other solutions possible, or if sort of things is on the roadmap (hint hint, nudge nudge).

Thanks again!

---

<div class="post-metadata">

**Author:** ![user\_5a6bfd32b1a7349a5f1413349459e191f21a52a9f5b6c819e33abd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@user\_5a6bfd32b1a7349a5f1413349459e191f21a52a9f5b6c819e33abd](https://forums.unrealengine.com/u/user_5a6bfd32b1a7349a5f1413349459e191f21a52a9f5b6c819e33abd)\
**Post date:** [May 28, 2018, 7:48am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/4820 "2018-05-28T07:48:31Z")

</div>

Hi! everyone..

I have a trouble..

Now i am testing nvidia waveworks.

When i tested in Editor, it was successful.  
but i packaged program, it was crash.

I think it was relative with shader, because i met error message.

* * *

LoginId:  
EpicAccountId:

Assertion failed: (Index \>= 0) & (Index \< ArrayNum) [File:F:\UnrealEngine-4.18.3-release\Engine\Source\Runtime\Core\Public\Containers/Array.h] [Line: 610] Array index out of bounds: 0 from an array of size 0

## Wave\_Win64\_DebugGame!FDebug::AssertFailed() [f:\unrealengine-4.18.3-release\engine\source\runtime\core\private\misc\assertionmacros.cpp:414] Wave\_Win64\_DebugGame!TBasePassWaveWorksDrawingPolicy\<FUniformLightMapPolicy\>::ConfigureQuardTreeInputMapping() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private\basepassrendering.h:1420] Wave\_Win64\_DebugGame!TBasePassWaveWorksDrawingPolicy\<FUniformLightMapPolicy\>::TBasePassWaveWorksDrawingPolicy\<FUniformLightMapPolicy\>() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private\basepassrendering.h:1515] Wave\_Win64\_DebugGame!FDrawTranslucentMeshAction::Process\<FUniformLightMapPolicy\>() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private ranslucentrendering.cpp:491] Wave\_Win64\_DebugGame!ProcessBasePassMesh\<FDrawTranslucentMeshAction\>() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private\basepassrendering.h:2080] Wave\_Win64\_DebugGame!FTranslucencyDrawingPolicyFactory::DrawWaveWorksMesh() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private ranslucentrendering.cpp:718] Wave\_Win64\_DebugGame!FTranslucencyDrawingPolicyFactory::DrawDynamicWaveWorksMesh() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private ranslucentrendering.cpp:795] Wave\_Win64\_DebugGame!FTranslucentPrimSet::RenderWaveWorksPrimitive() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private ranslucentrendering.cpp:1106] Wave\_Win64\_DebugGame!FTranslucentPrimSet::DrawWaveWorksPrimitives() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private ranslucentrendering.cpp:1003] Wave\_Win64\_DebugGame!FDeferredShadingSceneRenderer::RenderWaveWorks() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private ranslucentrendering.cpp:1771] Wave\_Win64\_DebugGame!FDeferredShadingSceneRenderer::Render() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private\deferredshadingrenderer.cpp:1260] Wave\_Win64\_DebugGame!UpdateSceneCaptureContentDeferred\_RenderThread() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private\scenecapturerendering.cpp:267] Wave\_Win64\_DebugGame!UpdateSceneCaptureContent\_RenderThread() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private\scenecapturerendering.cpp:309] Wave\_Win64\_DebugGame!TGraphTask\<TEnqueueUniqueRenderCommandType\<`FScene::UpdateSceneCaptureContents'::`12’::CaptureCommandName,\<lambda\_2f5b22162577ad8db4efab9192d8d401\> \> \>::ExecuteTask() [f:\unrealengine-4.18.3-release\engine\source\runtime\core\public\async askgraphinterfaces.h:787] Wave\_Win64\_DebugGame!FNamedTaskThread::ProcessTasksNamedThread() [f:\unrealengine-4.18.3-release\engine\source\runtime\core\private\async askgraph.cpp:651] Wave\_Win64\_DebugGame!FNamedTaskThread::ProcessTasksUntilQuit() [f:\unrealengine-4.18.3-release\engine\source\runtime\core\private\async askgraph.cpp:560] Wave\_Win64\_DebugGame!RenderingThreadMain() [f:\unrealengine-4.18.3-release\engine\source\runtime\rendercore\private\renderingthread.cpp:327] Wave\_Win64\_DebugGame!FRenderingThread::Run() [f:\unrealengine-4.18.3-release\engine\source\runtime\rendercore\private\renderingthread.cpp:461] Wave\_Win64\_DebugGame!FRunnableThreadWin::Run() [f:\unrealengine-4.18.3-release\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:76]

I don’t know solution. Pleas help me.

---

<div class="post-metadata">

**Author:** ![LukaszPJWSTK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LukaszPJWSTK](https://forums.unrealengine.com/u/LukaszPJWSTK)\
**Post date:** [May 28, 2018, 6:52pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/4821 "2018-05-28T18:52:23Z")

</div>

I have updated my repository with UE 4.19.2 branch including:

- WaveWorks
- Flow
- Blast
- TXAA
- Volumetric Lighting
- VXGI 2
- HairWorks

You can get it from : [https://github/lukaszPJATK/UnrealEngine](https://github/lukaszPJATK/UnrealEngine)  
There is also an easy setup guide.

---

<div class="post-metadata">

**Author:** ![WindyStrife](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WindyStrife](https://forums.unrealengine.com/u/WindyStrife)\
**Post date:** [May 28, 2018, 7:54pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/4822 "2018-05-28T19:54:08Z")

</div>

> [@LukaszPJWSTK](#):
>
> I have updated my repository with UE 4.19.2 branch including:
> 
> - WaveWorks
> - Flow
> - Blast
> - TXAA
> - Volumetric Lighting
> - VXGI 2
> - HairWorks
> 
> You can get it from : [https://github/lukaszPJATK/UnrealEngine](https://github/lukaszPJATK/UnrealEngine)  
> There is also an easy setup guide.

nice i will try wavework package…hope it work…

---

<div class="post-metadata">

**Author:** ![user\_5a6bfd32b1a7349a5f1413349459e191f21a52a9f5b6c819e33abd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@user\_5a6bfd32b1a7349a5f1413349459e191f21a52a9f5b6c819e33abd](https://forums.unrealengine.com/u/user_5a6bfd32b1a7349a5f1413349459e191f21a52a9f5b6c819e33abd)\
**Post date:** [May 29, 2018, 5:31am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/4823 "2018-05-29T05:31:51Z")

</div>

engine version : 4.18.3 + waveworks  
os windows 10

I tested waveworks project.

I packaged project and run program, but it crashed.

I found message about oceanMaterial.asset in build log

-\> Failed to compile Material for platform PCD3D\_SM4, Default Material will be used in game.

projects run successfully in editor mode.

How can i remove warning message?

---

<div class="post-metadata">

**Author:** ![WindyStrife](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WindyStrife](https://forums.unrealengine.com/u/WindyStrife)\
**Post date:** [May 29, 2018, 8:16am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/4824 "2018-05-29T08:16:39Z")

</div>

> [@LukaszPJWSTK](#):
>
> I have updated my repository with UE 4.19.2 branch including:
> 
> - WaveWorks
> - Flow
> - Blast
> - TXAA
> - Volumetric Lighting
> - VXGI 2
> - HairWorks
> 
> You can get it from : [https://github/lukaszPJATK/UnrealEngine](https://github/lukaszPJATK/UnrealEngine)  
> There is also an easy setup guide.

Wavework package successfully, but when i run it crashed like 4.18.3

---

<div class="post-metadata">

**Author:** ![catalejo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@catalejo](https://forums.unrealengine.com/u/catalejo)\
**Post date:** [May 29, 2018, 4:14pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/4825 "2018-05-29T16:14:11Z")

</div>

Hoping the 4.19 flex comes out week!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7c71c8ec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7c71c8ec](https://forums.unrealengine.com/u/anonymous_user_7c71c8ec)\
**Post date:** [May 29, 2018, 8:33pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/4826 "2018-05-29T20:33:35Z")

</div>

> [@](#):
>
> As always, thanks a ton . I’ve tinkered even more various settings, and found a happy middle ground. As far as the nabbing the confidence value and using that in post-processing- is that easily accessible or does it require shader developing and C++ code?
> 
> [edit]
> 
> Another question I’ve been meaning to ask… Flow and VXGI, sitting in a tree, k-i-s-s-i-n-g. Is there any way to get emissive materials and the like to play with Flow systems, as well as getting a Flow system to contribute to emission? I have some smoke for example, that would be to have lit from emissives or area lights. On that same note, I have some fire that would be (more) amazing if it were contributing light to the scene.
> 
> I’m thinking I could “hack” something together, using lighting channels, but am very curious if there is any other solutions possible, or if sort of things is on the roadmap (hint hint, nudge nudge).
> 
> Thanks again!

After your question, I discovered that the Confidence texture is not exposed to the post-processing materials, unlike the others (VxgiDiffuse etc.). So now that’s fixed, and you can access that by using a SceneTexture node / VxgiConfidence.

Regarding Flow: it would certainly be nice if smoke and fire could interact with VXGI, but currently they can’t. Not sure about making smoke illuminated by VXGI emitters, that can probably be done with custom tracing shaders; but making fire emit indirect light requires adding a into VXGI to inject light from another voxel volume, used by Flow. That’s currently not implemented.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d72856a01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d72856a01](https://forums.unrealengine.com/u/anonymous_user_d72856a01)\
**Post date:** [May 31, 2018, 12:17am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/4827 "2018-05-31T00:17:49Z")

</div>

> [@Anonymous\_441158f4cee8d3d78490af24b41b0acd](#):
>
> Hi! everyone…
> 
> I have a trouble…
> 
> Now i am testing nvidia waveworks.
> 
> When i tested in Editor, it was successful.  
> but i packaged program, it was crash.
> 
> I think it was relative with shader, because i met error message.
> 
> * * *
> 
> [SPOILER]LoginId:  
> EpicAccountId:
> 
> Assertion failed: (Index \>= 0) & (Index \< ArrayNum) [File:F:\UnrealEngine-4.18.3-release\Engine\Source\Runtime\Core\Public\Containers/Array.h] [Line: 610] Array index out of bounds: 0 from an array of size 0
> 
> ## Wave\_Win64\_DebugGame!FDebug::AssertFailed() [f:\unrealengine-4.18.3-release\engine\source\runtime\core\private\misc\assertionmacros.cpp:414] Wave\_Win64\_DebugGame!TBasePassWaveWorksDrawingPolicy\<FUniformLightMapPolicy\>::ConfigureQuardTreeInputMapping() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private\basepassrendering.h:1420] Wave\_Win64\_DebugGame!TBasePassWaveWorksDrawingPolicy\<FUniformLightMapPolicy\>::TBasePassWaveWorksDrawingPolicy\<FUniformLightMapPolicy\>() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private\basepassrendering.h:1515] Wave\_Win64\_DebugGame!FDrawTranslucentMeshAction::Process\<FUniformLightMapPolicy\>() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private ranslucentrendering.cpp:491] Wave\_Win64\_DebugGame!ProcessBasePassMesh\<FDrawTranslucentMeshAction\>() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private\basepassrendering.h:2080] Wave\_Win64\_DebugGame!FTranslucencyDrawingPolicyFactory::DrawWaveWorksMesh() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private ranslucentrendering.cpp:718] Wave\_Win64\_DebugGame!FTranslucencyDrawingPolicyFactory::DrawDynamicWaveWorksMesh() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private ranslucentrendering.cpp:795] Wave\_Win64\_DebugGame!FTranslucentPrimSet::RenderWaveWorksPrimitive() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private ranslucentrendering.cpp:1106] Wave\_Win64\_DebugGame!FTranslucentPrimSet::DrawWaveWorksPrimitives() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private ranslucentrendering.cpp:1003] Wave\_Win64\_DebugGame!FDeferredShadingSceneRenderer::RenderWaveWorks() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private ranslucentrendering.cpp:1771] Wave\_Win64\_DebugGame!FDeferredShadingSceneRenderer::Render() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private\deferredshadingrenderer.cpp:1260] Wave\_Win64\_DebugGame!UpdateSceneCaptureContentDeferred\_RenderThread() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private\scenecapturerendering.cpp:267] Wave\_Win64\_DebugGame!UpdateSceneCaptureContent\_RenderThread() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private\scenecapturerendering.cpp:309] Wave\_Win64\_DebugGame!TGraphTask\<TEnqueueUniqueRenderCommandType\<`FScene::UpdateSceneCaptureContents'::`12’::CaptureCommandName,\<lambda\_2f5b22162577ad8db4efab9192d8d401\> \> \>::ExecuteTask() [f:\unrealengine-4.18.3-release\engine\source\runtime\core\public\async askgraphinterfaces.h:787] Wave\_Win64\_DebugGame!FNamedTaskThread::ProcessTasksNamedThread() [f:\unrealengine-4.18.3-release\engine\source\runtime\core\private\async askgraph.cpp:651] Wave\_Win64\_DebugGame!FNamedTaskThread::ProcessTasksUntilQuit() [f:\unrealengine-4.18.3-release\engine\source\runtime\core\private\async askgraph.cpp:560] Wave\_Win64\_DebugGame!RenderingThreadMain() [f:\unrealengine-4.18.3-release\engine\source\runtime\rendercore\private\renderingthread.cpp:327] Wave\_Win64\_DebugGame!FRenderingThread::Run() [f:\unrealengine-4.18.3-release\engine\source\runtime\rendercore\private\renderingthread.cpp:461] Wave\_Win64\_DebugGame!FRunnableThreadWin::Run() [f:\unrealengine-4.18.3-release\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:76][/SPOILER]
> 
> I don’t know solution. Pleas help me.

Judging by the first line of the error report,

> [@](#):
>
> Assertion failed: (Index \>= 0) & (Index \< ArrayNum) [File:F:\UnrealEngine-4.18.3-release\Engine\Source\Runtime\Core\Public\Containers/Array.h] [Line: 610] Array index out of bounds: 0 from an array of size 0

it looks like you have an array in your code that isn’t properly initialised, so I would go to that file (Line 610) and check it out.  
That’s my best guess, anyway.

---

<div class="post-metadata">

**Author:** ![Bruce\_Oases](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bruce\_Oases](https://forums.unrealengine.com/u/Bruce_Oases)\
**Post date:** [June 1, 2018, 8:03am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/4828 "2018-06-01T08:03:39Z")

</div>

> [@Anonymous\_441158f4cee8d3d78490af24b41b0acd](#):
>
> Hi! everyone…
> 
> I have a trouble…
> 
> Now i am testing nvidia waveworks.
> 
> When i tested in Editor, it was successful.  
> but i packaged program, it was crash.
> 
> I think it was relative with shader, because i met error message.
> 
> * * *
> 
> LoginId:  
> EpicAccountId:
> 
> Assertion failed: (Index \>= 0) & (Index \< ArrayNum) [File:F:\UnrealEngine-4.18.3-release\Engine\Source\Runtime\Core\Public\Containers/Array.h] [Line: 610] Array index out of bounds: 0 from an array of size 0
> 
> ## Wave\_Win64\_DebugGame!FDebug::AssertFailed() [f:\unrealengine-4.18.3-release\engine\source\runtime\core\private\misc\assertionmacros.cpp:414] Wave\_Win64\_DebugGame!TBasePassWaveWorksDrawingPolicy\<FUniformLightMapPolicy\>::ConfigureQuardTreeInputMapping() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private\basepassrendering.h:1420] Wave\_Win64\_DebugGame!TBasePassWaveWorksDrawingPolicy\<FUniformLightMapPolicy\>::TBasePassWaveWorksDrawingPolicy\<FUniformLightMapPolicy\>() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private\basepassrendering.h:1515] Wave\_Win64\_DebugGame!FDrawTranslucentMeshAction::Process\<FUniformLightMapPolicy\>() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private ranslucentrendering.cpp:491] Wave\_Win64\_DebugGame!ProcessBasePassMesh\<FDrawTranslucentMeshAction\>() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private\basepassrendering.h:2080] Wave\_Win64\_DebugGame!FTranslucencyDrawingPolicyFactory::DrawWaveWorksMesh() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private ranslucentrendering.cpp:718] Wave\_Win64\_DebugGame!FTranslucencyDrawingPolicyFactory::DrawDynamicWaveWorksMesh() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private ranslucentrendering.cpp:795] Wave\_Win64\_DebugGame!FTranslucentPrimSet::RenderWaveWorksPrimitive() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private ranslucentrendering.cpp:1106] Wave\_Win64\_DebugGame!FTranslucentPrimSet::DrawWaveWorksPrimitives() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private ranslucentrendering.cpp:1003] Wave\_Win64\_DebugGame!FDeferredShadingSceneRenderer::RenderWaveWorks() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private ranslucentrendering.cpp:1771] Wave\_Win64\_DebugGame!FDeferredShadingSceneRenderer::Render() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private\deferredshadingrenderer.cpp:1260] Wave\_Win64\_DebugGame!UpdateSceneCaptureContentDeferred\_RenderThread() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private\scenecapturerendering.cpp:267] Wave\_Win64\_DebugGame!UpdateSceneCaptureContent\_RenderThread() [f:\unrealengine-4.18.3-release\engine\source\runtime\renderer\private\scenecapturerendering.cpp:309] Wave\_Win64\_DebugGame!TGraphTask\<TEnqueueUniqueRenderCommandType\<`FScene::UpdateSceneCaptureContents'::`12’::CaptureCommandName,\<lambda\_2f5b22162577ad8db4efab9192d8d401\> \> \>::ExecuteTask() [f:\unrealengine-4.18.3-release\engine\source\runtime\core\public\async askgraphinterfaces.h:787] Wave\_Win64\_DebugGame!FNamedTaskThread::ProcessTasksNamedThread() [f:\unrealengine-4.18.3-release\engine\source\runtime\core\private\async askgraph.cpp:651] Wave\_Win64\_DebugGame!FNamedTaskThread::ProcessTasksUntilQuit() [f:\unrealengine-4.18.3-release\engine\source\runtime\core\private\async askgraph.cpp:560] Wave\_Win64\_DebugGame!RenderingThreadMain() [f:\unrealengine-4.18.3-release\engine\source\runtime\rendercore\private\renderingthread.cpp:327] Wave\_Win64\_DebugGame!FRenderingThread::Run() [f:\unrealengine-4.18.3-release\engine\source\runtime\rendercore\private\renderingthread.cpp:461] Wave\_Win64\_DebugGame!FRunnableThreadWin::Run() [f:\unrealengine-4.18.3-release\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:76]
> 
> I don’t know solution. Pleas help me.

I have do something for it.  
I find the problem.The reason it crashed is that Array index out of bounds.  
At file _ **“** __ **\Engine\Source\Runtime\Renderer\Private\BasePassRendering.h”** _  
The function _ConfigureWaveWorksInputMapping()and ConfigureWaveWorksInputMapping ();_  
Actually these function has the same problem.It is that \*WaveWorksShaderParams-\> ShaderInputMappings \*is empty.

And then I try to find where it init at. After a period of time debugging, at last I find the reason of _ShaderInputMappings being empty is  
It can not get WaveworksResource in file:  
 **“** __\Engine\Source\Runtime\Engine\Private\Components\WaveWorksComponent.cpp”_\*\*  
The fouction\*\*\* UWaveWorksComponent::CalcBounds();\*\*\*  
And The function _**UWaveWorks::GetWaveWorksResource() in file:  
 “\Engine\Source\Runtime\Engine\Private\WaveWorks.cpp”**_

_**// GetWaveWorksResource()**_  
**_class FWaveWorksResource_ UWaveWorks::GetWaveWorksResource()**\*  
_ **{** _  
\*\*\* FWaveWorksResource\* Result = NULL;\*\*\*  
\*\*\* if( WaveWorksResource && WaveWorksResource-\>IsInitialized() )\*\*\*  
\*\*\* {\*\*\*  
\*\*\* Result = (FWaveWorksResource\*)WaveWorksResource;\*\*\*  
\*\*\* }\*\*\*  
\*\*\* return Result;\*\*\*  
}  
I try to set breakpoints at function,there was something interesting.  
It is amazing that the return of function(_**WaveWorksResource-\>IsInitialized()**_) is different when it run with editor and no-editor.

So I try to find the reason of it. Then I find it init at file :  
_ **“** __ **\Engine\Source\Runtime\Engine\Private\WaveWorks.cpp”** _  
In function :\*\*\* UWaveWorks::UpdateResource()\*\*\*

_**// UWaveWorks::UpdateResource()**_  
_**void UWaveWorks::UpdateResource()**_  
_ **{** _  
\*\*\* // Release the existing texture resource.\*\*\*  
\*\*\* ReleaseResource();\*\*\*

\*\*\* //Dedicated servers have no texture internals\*\*\*  
\*\*\* if (FApp::CanEverRender() && !HasAnyFlags(RF\_ClassDefaultObject))\*\*\*  
\*\*\* {\*\*\*  
\*\*\* // Create a new texture resource.\*\*\*  
\*\*\* WaveWorksResource = new FWaveWorksResource();\*\*\*  
\*\*\* BeginInitResource(WaveWorksResource);\*\*\*  
\*\*\* }\*\*\*  
_ **}** _  
At last I know why the return of _**WaveWorksResource-\>IsInitialized()**_ is false.  
When it run with editor,after function \*\*\*BeginInitResource(WaveWorksResource) \*\*\*beginning, render theard will run before \*\*\*UWaveWorksComponent::CalcBounds() \*\*\*beginning.  
But when it run without editor, after function \*\*\*BeginInitResource(WaveWorksResource) \*\*\*beginning, render theard will run after \*\*\*UWaveWorksComponent::CalcBounds() \*\*\*beginning.  
So without editor,when \*\*\*UWaveWorksComponent::CalcBounds() \*_beginning, WaveWorksResource’s render theard have not started.So the return of **WaveWorksResource-\>IsInitialized()** i_s false.

Yesterday,I find that it also crashed with editor when you use a new WaveworksAsset.  
I think the problem of it is Serialization.You can do test: Create a new waveworksasset and use it in a waveworkscomponent.Your editor will crashed and the erro log is the same.

---

<div class="post-metadata">

**Author:** ![Derjyn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/derjyn/32/931618_2.png) [@Derjyn](https://forums.unrealengine.com/u/Derjyn)\
**Post date:** [June 1, 2018, 9:30am UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/4829 "2018-06-01T09:30:30Z")

</div>

Whoa- it’s super annoying when people quote giant posts (much appreciated when forums frown on and enforce in rules). Also, throw the code stuff you posted in code formatting. It’s good to do with error log stuff, or really anything code related. Makes it much easier for us all to read and help out, without getting a headache 😉

---

<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:** [June 1, 2018, 2:04pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/4830 "2018-06-01T14:04:38Z")

</div>

@ Hi again, today I wanted to try on the VXGI branch and I followed the Intel’s guide to activate it. ([https://software.intel/en-us/art…n-apis-for-ue4](https://software.intel/en-us/articles/how-to-install--apis-for-ue4)) So I Installed latest SDK and Nvidia Driver. I added “-” to end of editor shortcut. When I start the engine Firstly it crashes and asks me to enable r.ShaderDevelopmentMode in ConsoleVariables.ini. I enabled it and tried again but in time it shows another warning. I attached the ss of warning. If I click yes I have the same warning again and again and Initializing percent doesn’t make any progress. What can be the problem? Have you tried on the branch? I saw some people who are using the editor with

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7c71c8ec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7c71c8ec](https://forums.unrealengine.com/u/anonymous_user_7c71c8ec)\
**Post date:** [June 1, 2018, 4:13pm UTC](https://forums.unrealengine.com/t/nvidia-gameworks-integration/16686/4831 "2018-06-01T16:13:48Z")

</div>

> [@](#):
>
> @ Hi again, today I wanted to try on the VXGI branch and I followed the Intel’s guide to activate it. ([https://software.intel/en-us/art…n-apis-for-ue4](https://software.intel/en-us/articles/how-to-install--apis-for-ue4)) So I Installed latest SDK and Nvidia Driver. I added “-” to end of editor shortcut. When I start the engine Firstly it crashes and asks me to enable r.ShaderDevelopmentMode in ConsoleVariables.ini. I enabled it and tried again but in time it shows another warning. I attached the ss of warning. If I click yes I have the same warning again and again and Initializing percent doesn’t make any progress. What can be the problem? Have you tried on the branch? I saw some people who are using the editor with

Well, VXGI does not support , at least not yet.

The specific error suggests that it tries to compile the GBufferAccessShader (VXGI / UE interop on G-buffer data) but fails due to some HLSL-isms that are used there, like explicit binding point assignment. If anyone cares, I can try to disable compiling those shaders, along with any other VXGI activity, on unsupported platforms.

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

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