Author Topic: Disappearing of AlphaClip option  (Read 7087 times)

ntopia

  • Newbie
  • *
  • Thank You
  • -Given: 6
  • -Receive: 0
  • Posts: 15
    • View Profile
Disappearing of AlphaClip option
« 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Disappearing of AlphaClip option
« Reply #1 on: April 10, 2014, 07:31:37 AM »
It's not needed anymore. Just use the soft clip with border of 1. Same result.

LightStorm

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 17
    • View Profile
Re: Disappearing of AlphaClip option
« Reply #2 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Disappearing of AlphaClip option
« Reply #3 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?

LightStorm

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 17
    • View Profile
Re: Disappearing of AlphaClip option
« Reply #4 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.

hexaust

  • Newbie
  • *
  • Thank You
  • -Given: 14
  • -Receive: 1
  • Posts: 35
    • View Profile
Re: Disappearing of AlphaClip option
« Reply #5 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.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Disappearing of AlphaClip option
« Reply #6 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Disappearing of AlphaClip option
« Reply #7 on: April 11, 2014, 06:58:57 AM »
I'll just make it possible to go down to 0 in a future update.