fog color problem on transparent object

Started by MichaelJPCT, July 06, 2017, 02:50:13 PM

Previous topic - Next topic

MichaelJPCT

i have a transparent object with the same fog setting as other opaque objects, but when fog is dense ( close to farclip), the output color is not close to fog color. so the transparent object stands out when viewed far away.
is there a problem with the blending method?

EgonOlsen

I think that might be normal...but just to be sure:  Do you have a screenshot?

MichaelJPCT

please look at the shore line of the island. it`s from a png image with 1bit transparency.
in the 2nd screenshot the shore line looks dark on the far side.

EgonOlsen

I would say that's the beach and not the actual shore line, isn't it?

MichaelJPCT

yes, it's the beach that appears dark. but the beach is also from the png image, just the color is yellowish instead of white.
the beach and the white color part are both opaque part of the png image.

EgonOlsen

It doesn't look very unusual to me at first glance. You can always look at the default shaders (assuming that you are using those) and see how they calculate the final color.
I'm also not sure how this relates to transparency/opaque objects!? Is there a difference between both?

MichaelJPCT

the opaque objects (such as the green part) are covered by fog correctly, the beach is not.
i'll look into the shaders.