Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: ntopia on April 10, 2014, 05:45:54 AM

Title: Disappearing of AlphaClip option
Post by: ntopia on April 10, 2014, 05:45:54 AM
In NGUI 3.5.5, 'AlphaClip' is exists in UIPanel clipping option.

But in NGUI 3.5.6, 'AlphaClip' option is disappeared.

Where is it going?? T_T
Title: Re: Disappearing of AlphaClip option
Post by: ArenMook on April 10, 2014, 07:31:37 AM
It's not needed anymore. Just use the soft clip with border of 1. Same result.
Title: Re: Disappearing of AlphaClip option
Post by: LightStorm on April 10, 2014, 07:51:15 AM
No it's not same. Just try to modify code in UIPanelInspector.cs to remove Softness value restriction:
Old
  1.                                 if (soft.x < 1f) soft.x = 1f;
  2.                                 if (soft.y < 1f) soft.y = 1f;
  3.  

New
  1.                                 if (soft.x < 0f) soft.x = 0f;
  2.                                 if (soft.y < 0f) soft.y = 0f;
  3.  
It will be same only with Softness value 0 which is prohibited now.
Title: Re: Disappearing of AlphaClip option
Post by: ArenMook on April 10, 2014, 07:56:49 AM
That's right, minimum is 1 pixel. That means that the content fades out over 1 pixel, which is indistinguishable from a flat cut without using a magnifying glass. Why is this an issue for you?
Title: Re: Disappearing of AlphaClip option
Post by: LightStorm on April 10, 2014, 08:29:11 AM
Because in some usage cases it's visible like semitransparent vertical or horizontal line.
Please remove that restriction in future updates.
Title: Re: Disappearing of AlphaClip option
Post by: hexaust on April 10, 2014, 08:34:37 AM
Because in some usage cases it's visible like semitransparent vertical or horizontal line.
Please remove that restriction in future updates.

This is true, it happens especially when two elements with contrasting colors are next to each other. It is visible.
Title: Re: Disappearing of AlphaClip option
Post by: Nicki on April 10, 2014, 11:00:57 AM
 Remember that virtual pixels don't correspond with screen pixels depending on your setup of UIRoot, which can make a 1 px soft edge become quite visible.
Title: Re: Disappearing of AlphaClip option
Post by: ArenMook on April 11, 2014, 06:58:57 AM
I'll just make it possible to go down to 0 in a future update.