# Raytracing issues

**URL:** <https://forums.unrealengine.com/t/raytracing-issues/151352>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [September 29, 2020, 8:11am UTC](https://forums.unrealengine.com/t/raytracing-issues/151352 "2020-09-29T08:11:16Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![UElaci](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UElaci](https://forums.unrealengine.com/u/UElaci)\
**Post date:** [September 29, 2020, 8:11am UTC](https://forums.unrealengine.com/t/raytracing-issues/151352/1 "2020-09-29T08:11:16Z")

</div>

While might not be related - I do use 4.26 preview 1

here is rendering using SSR + raster translucency + cascade shadows from sun light

[![](https://i.imgur.com/6EuQaZ8.png) ](https://i.imgur.com/6EuQaZ8.png)

here is rendering using raytraced reflections + raytraced translucency + raytraced sun light shadows

[![](https://i.imgur.com/J2Y5zHl.png) ](https://i.imgur.com/J2Y5zHl.png)

So there are few issues I’m running into, seems like atmosphere is ignored by raytraced reflection, raytraced translucency is flickering in distance when camera is almost parallel to water plane, clouds are not reflected (only cubemap is) and spline mesh component has no raytraced shadows, or reflections.

Are those issues somehow solvable by some settings or should I just avoid raytracing? If these are known problems will they be solved eventually in 4.26?

Thanks  
​​​​​​​

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_37bd4ee1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_37bd4ee1](https://forums.unrealengine.com/u/anonymous_user_37bd4ee1)\
**Post date:** [October 12, 2020, 2:15pm UTC](https://forums.unrealengine.com/t/raytracing-issues/151352/2 "2020-10-12T14:15:14Z")

</div>

I would take a look at a couple of settings in the Post Process Volume.  
Check for Raytrace reflections MaxBounces, maybe about 3 will help.  
Samples Per Pixel if you are able to can be increased a bit to help with the flickering.  
Also check out the cvar r.RayTracing.Reflections.ReflectionCaptures = 1, it will use reflection capture actors in your scene to help fill in some data for reflections on the last ray bounce.

---

<div class="post-metadata">

**Author:** ![presto423](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@presto423](https://forums.unrealengine.com/u/presto423)\
**Post date:** [October 12, 2020, 11:43pm UTC](https://forums.unrealengine.com/t/raytracing-issues/151352/3 "2020-10-12T23:43:24Z")

</div>

What is the material graph of the water (would you post a screenshot?)?

Are High Precision Normals activated for the GBuffer (in Project Settings \> Rendering)?

---

<div class="post-metadata">

**Author:** ![UElaci](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UElaci](https://forums.unrealengine.com/u/UElaci)\
**Post date:** [October 13, 2020, 9:24am UTC](https://forums.unrealengine.com/t/raytracing-issues/151352/4 "2020-10-13T09:24:48Z")

</div>

> [@presto423](#):
>
> What is the material graph of the water (would you post a screenshot?)?
> 
> Are High Precision Normals activated for the GBuffer (in Project Settings \> Rendering)?

Hi, it’s actually very basic metallic reflective surface with normal map.

I identified the big issue for raytracing reflections is large and very distant objects, I made those mountains as static meshes. When I make them smaller and move closer to camera it works fine. This happens to every object (big and distant) and very large reflective plane.

I tried few raytracing cvars hoping that this is some threshold setting but it didn’t work.  
High precision normals are activated

It looks to me as some sort of raytracing precision issue with large numbers or something, but I don’t know.

---

<div class="post-metadata">

**Author:** ![UElaci](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UElaci](https://forums.unrealengine.com/u/UElaci)\
**Post date:** [October 13, 2020, 9:26am UTC](https://forums.unrealengine.com/t/raytracing-issues/151352/5 "2020-10-13T09:26:24Z")

</div>

> [@anonymous\_user\_37bd4ee1](#):
>
> I would take a look at a couple of settings in the Post Process Volume.  
> Check for Raytrace reflections MaxBounces, maybe about 3 will help.  
> Samples Per Pixel if you are able to can be increased a bit to help with the flickering.  
> Also check out the cvar r.RayTracing.Reflections.ReflectionCaptures = 1, it will use reflection capture actors in your scene to help fill in some data for reflections on the last ray bounce.

Thanks, I’m aware of the setting but it makes no difference. It seems the mountains are reflected but lighting is black in reflections.

---

<div class="post-metadata">

**Author:** ![presto423](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@presto423](https://forums.unrealengine.com/u/presto423)\
**Post date:** [October 13, 2020, 2:19pm UTC](https://forums.unrealengine.com/t/raytracing-issues/151352/6 "2020-10-13T14:19:49Z")

</div>

The reason I ask about material is there might be a setting or two that isn’t correct, is enabled/disabled when it needs to be the opposite, and perhaps a node or two that could be added to get it working right with ray tracing. One node is called RayTracingQualitySwitchReplace. The problem could also be an LOD issue, wherein zooming out at a distance transitions to a lower level of LOD that causes a loss of quality and/or specific things being rendered. Perhaps it would cause reflections to become black / darker by losing base color quality with ray tracing. In Project Settings, under the Ray Tracing checkbox, is “Texture LOD” enabled?

---

<div class="post-metadata">

**Author:** ![UElaci](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UElaci](https://forums.unrealengine.com/u/UElaci)\
**Post date:** [October 13, 2020, 3:43pm UTC](https://forums.unrealengine.com/t/raytracing-issues/151352/7 "2020-10-13T15:43:30Z")

</div>

> [@presto423](#):
>
> The reason I ask about material is there might be a setting or two that isn’t correct, is enabled/disabled when it needs to be the opposite, and perhaps a node or two that could be added to get it working right with ray tracing. One node is called RayTracingQualitySwitchReplace. The problem could also be an LOD issue, wherein zooming out at a distance transitions to a lower level of LOD that causes a loss of quality and/or specific things being rendered. Perhaps it would cause reflections to become black / darker by losing base color quality with ray tracing. In Project Settings, under the Ray Tracing checkbox, is “Texture LOD” enabled?

I’m gonna get some screenshots and post here probably tomorrow or day after as I’m doing another project currently. I’m super interested though if this can be avoided, thanks for your help so far.

---

<div class="post-metadata">

**Author:** ![presto423](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@presto423](https://forums.unrealengine.com/u/presto423)\
**Post date:** [October 13, 2020, 4:23pm UTC](https://forums.unrealengine.com/t/raytracing-issues/151352/8 "2020-10-13T16:23:07Z")

</div>

Well, I’m basically trying to aid in troubleshooting by sharing what I know and think of…but it doesn’t mean I have the exact answer immediately. Not saying you’re demanding that, but I wish I could help you solve it quicker. Yet troubleshooting is simply a process of steps, and probably some backtracking between those steps. There’s lots to remember in Unreal Engine as not all of it is frequently used, so I often refer to the docs and try to put things together to get a solution or discover how things function correctly.

---

<div class="post-metadata">

**Author:** ![Suthriel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/suthriel/32/1195643_2.png) [@Suthriel](https://forums.unrealengine.com/u/Suthriel)\
**Post date:** [October 13, 2020, 6:16pm UTC](https://forums.unrealengine.com/t/raytracing-issues/151352/9 "2020-10-13T18:16:25Z")

</div>

Well, most, if not all post process effects won´t be reflected by raytracing, since they are generated after the scene is already raytraced. Most noticeable is it, if you deal with particles: GPU particles won´t be raytraced, CPU particles/mesh particles usually will be (maybe this changes with Niagara). Now i don´t know, how you generated your clouds, but if they are generated by a post process or with the help of an transparent material, you won´t get them reflected. Well, transparent materials, we have to see, what 4.26 brings for them, but all that volumetric stuff is usually post process.

Spline meshes are also not supported until now, see:

> **[Hardware Ray Tracing Tips and Tricks](https://docs.unrealengine.com/5.3/en-US/hardware-ray-tracing-tips-and-tricks-in-unreal-engine/)**
>
> A collection of topics to aid with development of projects using hardware ray tracing features.

> [@](#):
>
> [TABLE]
> 
> ```
> Rendering Path
> 		
> 		
> 		 
> 		 
> 		 
> 	
> 	
> **Deferred**
> Y
> 		 
> 	
> 	
> **Forward**
> N
> 		 
> 	
> 	
> 		
> Types of Lights
> 		
> 		
> 		 
> 		 
> 		 
> 	
> 	
> **Directional Light**
> Y
> 		 
> 	
> 	
> **Sky Light**
> Y
> 		 
> 	
> 	
> **Point Light**
> Y
> 		 
> 	
> 	
> **Spot Light**
> Y
> 		 
> 	
> 	
> **Rect Light**
> Y
> 		 
> 	
> 	
> 		
> Lighting Features
> 		
> 		
> 		 
> 		 
> 		 
> 	
> 	
> **Emissive Surfaces**
> Partially
> Supported for reflections on surfaces, but does not emit light or cast shadows.
> 	
> 	
> **Light Transmission**
> N
> The translucent shadow is treated as opaque, meaning no colored shadows or light transmission through the material.
> 	
> 	
> **Area Shadowing**
> Y
> 		 
> 	
> 	
> **IES Profiles**
> Y
> 		 
> 	
> 	
> **Light Functions**
> N
> 		 
> 	
> 	
> **Volumetric Fog**
> N
> 		 
> 	
> 	
> **Image Based Lighting (IBL)**
> Y
> Support for HDRI with Sky Light.
> 	
> 	
> 		
> Materials: Blend Mode
> 		
> 		
> 		 
> 		 
> 		 
> 	
> 	
> **Opaque**
> Y
> 		 
> 	
> 	
> **Masked**
> Y
> 		 
> 	
> 	
> **Translucent**
> Y
> 		 
> 	
> 	
> **Anisotropic**
> Y
> 		 
> 	
> 	
> 		
> Materials: Shading Model
> 		
> 		
> 		 
> 		 
> 		 
> 	
> 	
> **Default Lit**
> Y
> 		 
> 	
> 	
> **Unlit**
> Partially
> 		 
> 	
> 	
> **Masked**
> Partially
> Supports casting of masked shadows.
> 	
> 	
> **SubSurface and SubSurface Profile**
> Y
> 		 
> 	
> 	
> **Preintegrated Skin**
> Partially
> Works but the result isn't correctly raytraced. It uses the raster pipeline.
> 	
> 	
> **Clear Coat**
> Y
> UE 4.25 includes significant improvements to the Clear Coat Shading Model.
> 	
> 	
> **TwoSided Foliage**
> Y
> 		 
> 	
> 	
> **Hair**
> Partially
> Works but the result isn't correctly raytraced. It uses the raster pipeline.
> 	
> 	
> **Cloth**
> Partially
> Works but the result isn't correctly raytraced. It uses the raster pipeline.
> 	
> 	
> **Material Functions**
> Y
> 		 
> 	
> 	
> **Two-Sided**
> Y
> 		 
> 	
> 	
> **World Position Offset**
> Y
> Static Mesh is enabled per-Actor.
> 	
> 	
> 		
> Geometry Types
> 		
> 		
> 		 
> 		 
> 		 
> 	
> 	
> **Skeletal Mesh**
> Y
> 		 
> 	
> 	
> **Static Mesh**
> Y
> 		 
> 	
> 	
> **Geometry Cache (Alembic)**
> Y
> 		 
> 	
> 	
> **Landscape**
> Y
> 		 
> 	
> 	
> **Hierarchical Instanced Static Mesh (HISM)**
> Y
> 		 
> 	
> 	
> **Instanced Static Mesh (ISM)**
> Y
> 		 
> 	
> 	
> **Splines**
> N
> 		 
> 	
> 	
> **Procedural Mesh**
> Y
> This type of geometry can be expensive to render in Ray Tracing.
> 	
> 	
> **BSP Brushes**
> N
> 		 
> 	
> 	
> **Levels of Detail (LOD)**
> Y
> Dithered LOD transitions are not yet supported.
> 	
> 	
> 		
> Visual Effects (VFX)
> 		
> 		
> 		 
> 		 
> 		 
> 	
> 	
> **Niagara**
> Partially
> Currently supports Sprites, Ribbons, and Mesh emitters.
> 	
> 	
> **Cascade**
> N
> 		 
> 	
> 	
> 		
> Platform Support
> 		
> 		
> 		 
> 		 
> 		 
> 	
> 	
> **Multi-View (VR and Split-Screen)**
> Y
> 
> ```

---

<div class="post-metadata">

**Author:** ![UElaci](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UElaci](https://forums.unrealengine.com/u/UElaci)\
**Post date:** [October 14, 2020, 4:33am UTC](https://forums.unrealengine.com/t/raytracing-issues/151352/10 "2020-10-14T04:33:54Z")

</div>

> [@Suthriel](#):
>
> Well, most, if not all post process effects won´t be reflected by raytracing, since they are generated after the scene is already raytraced. Most noticeable is it, if you deal with particles: GPU particles won´t be raytraced, CPU particles/mesh particles usually will be (maybe this changes with Niagara). Now i don´t know, how you generated your clouds, but if they are generated by a post process or with the help of an transparent material, you won´t get them reflected. Well, transparent materials, we have to see, what 4.26 brings for them, but all that volumetric stuff is usually post process.

Thanks for the info, should probably look in the docs myself before asking here 😃

Anyways, the clouds are made using the new 4.26 volume. Using them combined with new realtime skylight updating causes choppy reflections on “water” plane casue only the cubemap updates are reflected in raytracing. (this kinda can work still if I disable auto-update on skylight and just rely on static cubemap)

Splines not being renderable in raytracing is really bad news, but since I’m not making games I can probably stick with just using normal meshes.

Still though, a really large(kilometers) object really far(several kilometers) will reflect properly only if it’s close to the world center, and become weird and black-ish as it gets far away.  
I want to create a basic scene replicating this problem and share it.  
It could maybe help me understand what’s up if it’s me doing something wrong.

With this issue I don’t have a workaround, screen space reflections are absolutely horrible and reflection plane only works well on the water level and rest of the scene now has to use mostly captures or ssr. It would maybe help here to be able to include-exclude objects from raytracing so that I could either disable raytraced reflection on the water or other problematic objects, or vice-versa only enable RT on objects that really need it.

Thanks again for the help. I’ll try to post here some screens and maybe a simple scene project better demonstrating the issue isolated.

---

<div class="post-metadata">

**Author:** ![presto423](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@presto423](https://forums.unrealengine.com/u/presto423)\
**Post date:** [October 14, 2020, 7:04am UTC](https://forums.unrealengine.com/t/raytracing-issues/151352/11 "2020-10-14T07:04:11Z")

</div>

There’s an option in meshes under Rendering to enable/disable “Visible in Ray Tracing”. There’s also the RayTracingQualitySwitchReplace node, which I saw a material graph posted by a user in the forum in which it was used to switch between RT and raster for reflections and maybe translucency. A video is shown on how to set it up and shows it being used and functioning in a project, but I don’t remember what thread I saw it in lately. If I find it, I’ll post a link in this thread.

---

<div class="post-metadata">

**Author:** ![TrentCab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TrentCab](https://forums.unrealengine.com/u/TrentCab)\
**Post date:** [February 15, 2022, 3:40am UTC](https://forums.unrealengine.com/t/raytracing-issues/151352/12 "2022-02-15T03:40:10Z")

</div>

I know this is an old thread, but for anyone googling the issue like I was.

This is caused by “light culling” where raytracing disables the sky light on distant objects or at glancing angles on translucent reflections. (Idk why it’s only an issue with translucent, but it is)

I couldn’t fix it entirely, but I doubled the distance before things went black and fixed it breaking on glancing angles by increasing this console variable from 16 to 32. Increasing it beyond 32 did nothing.

r.RayTracing.LightCulling.Cells 32

---

<div class="post-metadata">

**Author:** ![Anonymous\_19d77ad546d96d6a0f70331a03c9e335](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_19d77ad546d96d6a0f70331a03c9e335](https://forums.unrealengine.com/u/Anonymous_19d77ad546d96d6a0f70331a03c9e335)\
**Post date:** [June 9, 2022, 3:02pm UTC](https://forums.unrealengine.com/t/raytracing-issues/151352/13 "2022-06-09T15:02:56Z")

</div>

Thank you!!! You saved my life
