Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: shokinhan on July 29, 2012, 11:13:34 PM

Title: About softclip
Post by: shokinhan on July 29, 2012, 11:13:34 PM
I have meet some problem.
desc:
      I have use the softclip property of uipanel, then all is right on the uinty player, but when I published the game for web, the softclip would be with bug, the softclip is invalid.
Title: Re: About softclip
Post by: ArenMook on July 29, 2012, 11:17:54 PM
Check quality settings and make sure that they are the same for your web build as they are for the editor.
Title: Re: About softclip
Post by: shokinhan on July 30, 2012, 12:47:26 AM
Your means is that the players settings right?
Title: Re: About softclip
Post by: ArenMook on July 30, 2012, 06:13:45 AM
No, I mean the quality settings. You may have it set to use "fastest" for web builds, for example.
Title: Re: About softclip
Post by: shokinhan on July 30, 2012, 08:05:38 AM
I have use the quality settings with fastest. But the uipanel's area  out of the softclip can be saw!

(http://e:/1.jpg)
Title: Re: About softclip
Post by: ArenMook on July 30, 2012, 08:31:33 AM
Fastest means shaders are turned off. You can't have it on Fastest. Set it back to Good or higher.
Title: Re: About softclip
Post by: shokinhan on July 30, 2012, 09:04:16 AM
I have try to set the quality with good, but the area out of the uipanel hardclip and softclip are saw also on the platform of web, it likes the softclip and hardclip is invalid on the platform of web, and then all is ok on the platform of unityeditor.

(http://src = "E:/1.jpg")
Title: Re: About softclip
Post by: ArenMook on July 30, 2012, 09:05:25 AM
All your image links are broken.
Title: Re: About softclip
Post by: shokinhan on July 30, 2012, 09:11:33 AM
insert picture is that " (http://src= "e:/1.jpg") " ?
I insert into picture failer!!!
Title: Re: About softclip
Post by: shokinhan on July 30, 2012, 09:14:39 AM
picture
Title: Re: About softclip
Post by: shokinhan on July 30, 2012, 09:21:35 AM
I have try to set the quality with good, but the area out of the uipanel hardclip and softclip are saw also on the platform of web, it likes the softclip and hardclip is invalid on the platform of web, and then all is ok on the platform of unityeditor.

picture on windowsweb:





Picture one and picutre two are error on the webplayer!

But on the platform of unityeditor is ok, eg:3.jpg




Title: Re: About softclip
Post by: ArenMook on July 30, 2012, 05:46:36 PM
Did you happen to move the shaders perchance? They must be in the Resources folder in order for NGUI to work. Try building one of NGUI's examples that uses clipping. Also make sure that all scales leading up to and including your panel are uniform -- meaning (1, 1, 1) in most cases, all 3 values must match.
Title: Re: About softclip
Post by: shokinhan on July 30, 2012, 09:55:37 PM
I have check the 3 condition and the layers are the same like 'UILayer' , the scale are (1.0,1.0,1.0), the quality are 'good'.

configure:

Title: Re: About softclip
Post by: ArenMook on July 31, 2012, 12:40:36 AM
No, the quality is not "Good". See the green color? That's the color you have selected. It's "Fastest".

Like I said -- it must not be on Fastest. Set it to Good or higher.
Title: Re: About softclip
Post by: shokinhan on July 31, 2012, 02:31:05 AM
I have try ,but the softclip and hardclip about uipanel is wrong on the webplayer.

I export the scroll view example for webplayer width fasteast or good or beautiful, and it is ok!

This probleam takes off me one day, I don't know why the uipanel about softclip and hardclip property are invalid on the webplayer, but it's ok on the unityeditor.

Title: Re: About softclip
Post by: ArenMook on July 31, 2012, 07:58:55 AM
Please stop posting the same question several times. That was the 3rd thread of yours I had to delete because it's a duplicate of this one.

I already told you what may be the problem. Beyond that, I don't know. You will have to investigate yourself.
Title: Re: About softclip
Post by: shokinhan on July 31, 2012, 08:11:28 AM
OK
Title: Re: About softclip
Post by: shokinhan on July 31, 2012, 08:22:24 AM
I have two different camera , one is sence camera, another is uicamera, they are different layer, May be it can cause the bug?
Title: Re: About softclip
Post by: ArenMook on July 31, 2012, 08:25:14 AM
No. There are only two known causes for something like this, and I've mentioned both of them -- either shaders aren't working due to you using the "Fastest" setting, or your UI is not scaled uniformly. All scales must be (1, 1, 1), with the exception of widgets and UIRoot.
Title: Re: About softclip
Post by: shokinhan on July 31, 2012, 10:26:10 PM
Dear ArenMook:
I have found the Unlit/Transparent Colored (SoftClip) is null, because NGUI's shader not be load on webplayer!
Where NGUI's shader should be put?

thanks?
Title: Re: About softclip
Post by: ArenMook on July 31, 2012, 10:44:14 PM
Exactly where NGUI puts it -- in the Resources folder. I already mentioned this earlier:

Quote
Did you happen to move the shaders perchance? They must be in the Resources folder in order for NGUI to work.
Title: Re: About softclip
Post by: shokinhan on August 01, 2012, 01:30:01 AM
I have try to find shader , the shader "Unlit/Transparent Colored (SoftClip)" cannot be found, but the shader of "Unlit/Transparent Colored" can be found,  this two shaders are in
"Assert/Resource/Shaders".