x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to exclude some actor from the Fog ?

Hi,

In my current scene I'm using an Exponential Fog which works very well. However I would like to avoid its effects over my SkySphere. Is there a way to exclude an object or even a shader to be affected by the fog ? (Without having the use a translucent material of course.)

Product Version: Not Selected
Tags:
more ▼

asked Jul 07 '14 at 11:01 PM in Rendering

avatar image

Froyok
262 20 26 37

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

I hope that is what you are looking for

alt text

more ▼

answered Dec 25 '17 at 11:53 PM

avatar image

Lucas False
21 2 5

avatar image Froyok Jan 11 '18 at 09:59 PM

Original message :

(Without having the use a translucent material of course.)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

There's no way to do this right now for opaque materials, since the fog is applied in a deferred pass and doesn't know anything about the material receiving it. It is possible in an inefficient way for Atmosphere, there's a material node that will compute Atmosphere contribution to a pixel, you can then subtract it out of the final color. This is inefficient because it computes the expensive Atmosphere calculation twice.

Note that in real life, height fog is applied to the sky that you see the same way as the distant mountains. Often skies that you render out of another program will have fog already built in, this is where the problem comes from as it ends up getting double fogged.

more ▼

answered Jul 08 '14 at 02:09 AM

avatar image

DanielW STAFF
1.9k 31 10 71

avatar image Froyok Jul 08 '14 at 02:33 AM

My idea here was to simulate an environment above the clouds. I wanted to have some panning clouds below the player ground level in the sky material. Unfortunately the Fog is hiding all of that. :)

Looks like I will have to figure out something else.

Would it be possible to limit the maximum draw distance of the fog ? I tried doing a linear fog in a custom post-process doing this, but it was not convenient at all (color mismatch and over the bloom).

avatar image GabrielDamato Aug 17 '14 at 05:32 PM

I am very curious to know if you found a solution to this problem as I am having the same issue. Custom Sky Sphere that looks REALLY funky at night with a thick white band across it. The fog inside the actual playing bounds of the level looks fantastic, but the effect is has on my sky ruins it immediately.

avatar image Froyok Aug 17 '14 at 05:39 PM

Unfortunately I didn't have the time to look into this problem a bit more. So I don't have any solutions.

avatar image GabrielDamato Aug 17 '14 at 05:43 PM

Here I have attached two screens of the exact same level, just moving the camera slightly to the right where the skysphere is in view (not blocked by meshes and terrain). Freaking awful.

alt text

nightfog-01.jpg (333.5 kB)
nightfog-02.jpg (343.6 kB)
avatar image GabrielDamato Aug 20 '14 at 02:06 PM

I'm still working this out... playing with the overwhelming amount of settings to find a tolerable work around.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question