Fog rendering too thick with scene capture

Hello!

I’m having an issue with the combination of a Scene Capture Component 2D and the ExponentialHeightFog in my level.
I’ve got the fog looking how I want it, but when the fog is visible in the material that shows my Scene Capture, it is much thicker, and starts much closer to the camera.

I’m using a Scene Capture Component on a gun as a scope. The camera being at the far end of the scope, with the near end of the scope using the render target material. This works fine but when fog is involved, it just looks, well, like this:

As you can see, the wall post at the end of the yard here looks very different in the scope.
Turning off the fog entirely will result in the scope working perfectly fine, so I’m fairly certain it’s a fog issue.

Here’s a shot with the fog disabled and the scope working fine:

Making changes to the material doesn’t make any difference (it’s a pretty simple Unlit material).
Making changes to the Scene Capture Component 2D doesn’t do much either, including switching between HDR and LDR. I’m stumped! :frowning:

Any workaround would be great! Even if that workaround is disabling fog in the render target somehow. As you can tell, my game isn’t shooting for any beauty awards anyway.

Hello General Mumble,

I just ran a test on my end to check and see if this was a bug in a new blank project within the 4.9.2 engine version. All you should have to do in your case is to disable ‘Fog’ within the General ShowFlags of the Scene Capture 2D actor. Below are some screenshots of the setup I used.

Render Target with Fog Enabled

Render Target with Fog Disabled

Let me know if you have further questions or need additional assistance.

Cheers,

This was reported back in 4.9.2 and the ShowFlags have since been exposed to the release of 4.10.4. I usually don’t suggest users upgrade the project’s unless they need a specific feature or setting, and in your case that is what I suggest.

You have two options, you can disable the fog actor altogether or you can upgrade your project to 4.10.4 and disable the ‘Fog’ show flag.

Cheers,

Hello!
Thanks for the reply, unfortunately I’m using the Scene Capture 2D as a component for an actor, and these “General Show Flags” options just don’t seem to exist.

Just to confirm, they DO exist for me when the Scene Capture 2D is placed as an actor.

Thanks, that’s good to know that it has since been looked into. I plan to upgrade to 4.12 anyway once I get back home from vacation.I can deal with it until then, knowing that it won’t always be a problem.

Thanks!!

Hello, I have the same problem, but in 4.13. There are ‘Show Flag Settings’ available from SceneCaptureComponent2D, but they don’t affect anything. I need to disable Atmospheric Fog (just like un-ticking ‘Fog’ showflag in editor) for my scene capture, and I can’t figure out how to do it. Could you please help me?

Update: I’ve also tried getting Atmospheric Fog by ‘Get All Actors Of Class’ and adding it into ‘Hide Actor Components’, but it also doesn’t work :frowning:

Hey Slavq,

I was able to test and confirm what you are reporting and have gone ahead and entered a bug for this issue. I was able to use the ‘Hidden Actors’ option within the Scene Capture2D component to hide other actors like static meshes for example, but was unable to hide the Atmospheric Fog using this method.

I have gone ahead and entered a bug report for this issue and you can track it by following the link below to our Public issues tracker.

UE-35666

As a side note, I was able to exclude the Atmospheric Fog from the final render target by using the ‘Advanced Show Flags’ within the SceneCapture2D Actor. What you can do as a workaround for the time being is use the advanced show flags and hard attached the actor to your gun blueprint.

Let me know if you have further questions or need additional assistance.

Cheers,

Thank you very much! In my case I need to spawn capture components in game, from blueprints, and unfortunately they don’t have Show Flags available to edit. I’ve tried dragging the ‘Scene Capture 2D’ actor in editor and converting it to blueprint (blue ‘Blueprint/Add Script’ button) and spawn it from the blueprint - this way it retains the Show Flags settings, but after they are converted to blueprint, their Show Flags settings don’t work anymore. So maybe that’s an another bug.

Anyway to reopen this? It’s still an issue with mini-maps that use scene capture.

I have re-opened the ticket to have the issue addressed.

It would be beneficial to have a screenshot and steps on how you are seeing this issue on your end.

Thank you,

.