Author Topic: Soft clipping clips all Objects together instead each of itself  (Read 7412 times)

syslord2k2

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Hi,

i want to build a highscore and encounter the problem that the soft clipping somehow seems to group alle Widgets in one group and changes the alpha of all items instead of the single items, i have attached an image to show the effect. I have several other draggable panels with clipping where i don't have this kind of problem, did somebody maybe have equal experiences and came up with a solution?

Best regards

Michael




ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Soft clipping clips all Objects together instead each of itself
« Reply #1 on: August 17, 2012, 09:57:08 AM »
Clipping doesn't change alpha of widgets. Clipping shader adjusts the alpha of items inside by directly modifying each pixel. You either set the clipping size to be way too big, or your widgets leading up to (and including) your UIPanel may not have a scale of (1, 1, 1).

syslord2k2

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: Soft clipping clips all Objects together instead each of itself
« Reply #2 on: August 17, 2012, 10:46:15 AM »
Thanks for the answer. You can see my clipping area in my image (the purple frame), i don't think it's too big. All my Items have size 1,1,1 except for the labels itself which got the according text size.

PhilipC

  • Guest
Re: Soft clipping clips all Objects together instead each of itself
« Reply #3 on: August 17, 2012, 11:17:44 AM »
Try changing the bounds for the draggable panel the bounds that its currently using is the orange outline. Which from the picture is where the elements are being clipped.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Soft clipping clips all Objects together instead each of itself
« Reply #4 on: August 17, 2012, 06:49:12 PM »
Thanks for the answer. You can see my clipping area in my image (the purple frame), i don't think it's too big. All my Items have size 1,1,1 except for the labels itself which got the according text size.
Purple outline shows you the clipping bounds, but it doesn't show you the border size. Make the "Softness" parameter smaller.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Soft clipping clips all Objects together instead each of itself
« Reply #5 on: August 18, 2012, 05:39:57 AM »
Try changing to hardclip in your uipanel.

Is shaders properly enablerd? Check quality settings, if it's on fastest it won't clip properly.

syslord2k2

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: Soft clipping clips all Objects together instead each of itself
« Reply #6 on: August 20, 2012, 03:39:18 AM »
I now changed to hard clipping but the only change is that instead of all the items slowly disappearing (fading out) they now disappear in an instant which would be the correct behaviour if it were for every item in the grid and not the whole grid as once.

I also double checked and can now confirm that the orange outline is my UIGrid (named "Grid" in the image). I also double checked with some other draggable Panels i use, they have got the same settings but work without any problem.