Author Topic: fog color problem on transparent object  (Read 2827 times)

Offline MichaelJPCT

  • float
  • ****
  • Posts: 264
    • View Profile
fog color problem on transparent object
« on: July 06, 2017, 02:50:13 pm »
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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: fog color problem on transparent object
« Reply #1 on: July 07, 2017, 11:10:28 pm »
I think that might be normal...but just to be sure:  Do you have a screenshot?

Offline MichaelJPCT

  • float
  • ****
  • Posts: 264
    • View Profile
Re: fog color problem on transparent object
« Reply #2 on: July 08, 2017, 05:25:42 am »
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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: fog color problem on transparent object
« Reply #3 on: July 11, 2017, 07:13:27 pm »
I would say that's the beach and not the actual shore line, isn't it?

Offline MichaelJPCT

  • float
  • ****
  • Posts: 264
    • View Profile
Re: fog color problem on transparent object
« Reply #4 on: July 12, 2017, 11:45:51 am »
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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: fog color problem on transparent object
« Reply #5 on: July 12, 2017, 06:55:21 pm »
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?

Offline MichaelJPCT

  • float
  • ****
  • Posts: 264
    • View Profile
Re: fog color problem on transparent object
« Reply #6 on: July 13, 2017, 03:18:00 am »
the opaque objects (such as the green part) are covered by fog correctly, the beach is not.
i'll look into the shaders.