Planetside Software Forums

General => Terragen Discussion => Topic started by: Dune on May 27, 2016, 06:09:04 AM

Title: alpha read off greyscale issue
Post by: Dune on May 27, 2016, 06:09:04 AM
Has anyone enountered this? I made a greyscale version of a RGB branch.tif, with the alpha channel intact (I later checked; they are identical). In TG the opacity tab takes that greyscale image, alpha checked. But the rendered outcome is different from the alpha channel read in the RGB file, and also differs from a pure greyscale (no alpha) opacity map. Strange, huh?
Perhaps TG can't properly read a greyscale alpha channel, which thus would be a bug?
Left is flat grey mask, middle is RGB+alpha, right is greyscale+alpha.
Title: Re: alpha read off greyscale issue
Post by: Kadri on May 27, 2016, 07:08:42 AM

Any unpremultiply, premultiply thing ?
Title: Re: alpha read off greyscale issue
Post by: Dune on May 27, 2016, 07:22:45 AM
No, that's off by default.
Title: Re: alpha read off greyscale issue
Post by: Kadri on May 27, 2016, 07:40:19 AM

Curious. If it is not too much work could you post a basic example Ulco ?
Title: Re: alpha read off greyscale issue
Post by: KlausK on May 27, 2016, 07:42:44 AM
This may sound rather stupid but, what if you check the "use alpha channel" in that shader in the picture. It looks to me as if tg is adding the rgb grayscale values + the alpha channel values. Or am I completely off? Not that I know anything at all about alpha channels...
cheers, Klaus
Title: Re: alpha read off greyscale issue
Post by: Dune on May 27, 2016, 07:52:22 AM
I'll fix a non-ST sample.
@Klaus; the screendump is related to the plain greyscale mask, without alpha channel. With the other 2 I had the alpha checked.
Title: Re: alpha read off greyscale issue
Post by: KlausK on May 27, 2016, 08:00:21 AM
Sure, you wouldn`t miss something like that.
cheers, Klaus
Title: Re: alpha read off greyscale issue
Post by: Dune on May 27, 2016, 08:11:40 AM
No, I guess not, but sometimes you (I) tend to forget the most basic things  :P

I sent you a mail, Kadri. See what you think.
Title: Re: alpha read off greyscale issue
Post by: bobbystahr on May 27, 2016, 11:13:47 AM
Still waiting for TG to recognize greyscale values as transpaerncy/filter values so I can get back to what I was doing in Imagine 10 years ago myself.