Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: helpmeplease on May 02, 2013, 06:42:45 AM

Title: to use dynamic font
Post by: helpmeplease on May 02, 2013, 06:42:45 AM
i want to use dynamic font to dragablePanel

but, i have some problem

look at attached file.

(http://postfiles1.naver.net/20130502_144/gochja_136749497845772Qx3_PNG/problem.PNG?type=w3)

how can i ? help me please
Title: Re: to use dynamic font
Post by: tkok on May 02, 2013, 06:44:53 AM
Hi,

I'm having problems with dynamic font's alpha and scrollable panel with clipping.

When a label goes over the panel's soft clipping area it does not fade away nicely. Is it dynamic font's problem or someting else?
(http://i.imgur.com/nv68hEJ.png)

(I'm just starting to use NGUI)
Title: Re: to use dynamic font
Post by: helpmeplease on May 02, 2013, 06:52:53 AM
i don`t know what problem is
Title: Re: to use dynamic font
Post by: tkok on May 02, 2013, 07:10:44 AM
i don`t know what problem is
I know it's about alpha blending but not sure if it's fixable or already fixed at version 2.60.

Hope someone with more experience with NGUI will answer :)
Title: Re: to use dynamic font
Post by: Nicki on May 02, 2013, 08:24:38 AM
Looks like it's not switching to the proper shader. If you are using the 2.5.7 version from the forums, make sure you have all 3 shaders, so soft shading is supported.
Title: Re: to use dynamic font
Post by: ArenMook on May 02, 2013, 08:29:45 AM
@helpmeplease: Your issue is that you have "depth" enabled on your scrollable panel. Turn it off. Why did you enable it in the first place?
Title: Re: to use dynamic font
Post by: tkok on May 03, 2013, 01:32:46 AM
Looks like it's not switching to the proper shader. If you are using the 2.5.7 version from the forums, make sure you have all 3 shaders, so soft shading is supported.

I use version 2.5.1 from asset store :) How do I change shader when I use Dynamicfont with Material from the font, I can't modify anything in that material, not even the shader.

(http://i.imgur.com/OafjtQS.png)
Title: Re: to use dynamic font
Post by: tkok on May 03, 2013, 02:13:11 AM
I use version 2.5.1 from asset store :) How do I change shader when I use Dynamicfont with Material from the font, I can't modify anything in that material, not even the shader.

Solved It  8) Don't need to change shader at that material, just make new one:

1. Make new Material
2. Set Shader To Unlit/Dynamic Text Shader (!! Not AlphaClip or SoftClip)
3. Set Font Texture from the ttf to material's texture
4. ? ? ?
5. Profit!
Title: Re: to use dynamic font
Post by: Nicki on May 03, 2013, 09:16:45 AM
What tkok said.