Author Topic: to use dynamic font  (Read 11153 times)

helpmeplease

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
to use dynamic font
« 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.



how can i ? help me please

tkok

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
Re: to use dynamic font
« Reply #1 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?


(I'm just starting to use NGUI)

helpmeplease

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: to use dynamic font
« Reply #2 on: May 02, 2013, 06:52:53 AM »
i don`t know what problem is

tkok

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
Re: to use dynamic font
« Reply #3 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 :)

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: to use dynamic font
« Reply #4 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: to use dynamic font
« Reply #5 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?

tkok

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
Re: to use dynamic font
« Reply #6 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.


tkok

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
Re: to use dynamic font
« Reply #7 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!

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: to use dynamic font
« Reply #8 on: May 03, 2013, 09:16:45 AM »
What tkok said.