Author Topic: NGUI HUDText is a bit shaky  (Read 3823 times)

Demigoth

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 18
    • View Profile
NGUI HUDText is a bit shaky
« on: August 08, 2014, 10:13:20 AM »
Hi, so I am making a 2D endless runner, but I am using the hudtext to add some flavor to the game when you pick up stuff, so I was wondering if there is any reason why the HUDText is shaking a bit when i set it to follow the runner? I have the object moving back and forth on the x axis for like 0.3f constantly and that makes the HUDText.Add all shaky when it comes in contact with the colliders.

is it because the runner movement? is there some kind of delay on the HUD?

Thank you for your support ArenMook.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,152
  • Toronto, Canada
    • View Profile
Re: NGUI HUDText is a bit shaky
« Reply #1 on: August 08, 2014, 04:46:05 PM »
Are you moving the camera? The camera used by HUDText should remain stationary.

Demigoth

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 18
    • View Profile
Re: NGUI HUDText is a bit shaky
« Reply #2 on: August 08, 2014, 05:05:38 PM »
Yes,  I am moving the main camera but not the uicamera.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,152
  • Toronto, Canada
    • View Profile
Re: NGUI HUDText is a bit shaky
« Reply #3 on: August 08, 2014, 05:33:18 PM »
If the HUDText is draw by the camera that doesn't move, then it should be fine.

Why does HUDText get shaky when it comes with colliders? How can HUDText come in contact with colliders? Do you mean the object comes in contact? All HUDText does is follows the game object. Note that physics updates are not smooth. They only happen 50 times per second by default.

Towns

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Re: NGUI HUDText is a bit shaky
« Reply #4 on: February 09, 2015, 08:59:24 PM »
Hello
I'm sorry to reply such an old topic, but I meet the same trouble.
When the fps is lower than 100 and move the main camera, the uifollowtarget seems to have a delay. The hudtext isnt in the correct position during the moving. And when the main camera stop moving, the hudtext can set to the correct position.
Lower the fps is, the delay seems more serious. The hudtext seems dancing when the fps is 30 TOT
Thanks.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,152
  • Toronto, Canada
    • View Profile
Re: NGUI HUDText is a bit shaky
« Reply #5 on: February 10, 2015, 05:40:26 AM »
I've made quite a few changes to the HUDText tool in Windward regarding smoothness of movement... I just put up an update for it, although I suspect it will take a while for it to get approved and show up. You can get in touch with me via email (support at tasharen.com) and provide your invoice, then I'll send you the updated version.

mightee

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: NGUI HUDText is a bit shaky
« Reply #6 on: June 25, 2015, 01:39:42 PM »
hey there, i just tried hudtext with uifollowtarget attached to an enemy and when im moving my character with the camera, its pretty laggy and shaky. im using the updated version of hudtext and still getting shaky texts.

is there anyway that you could share your windward hudtext example ? or atleast just small part of it so i can see what im doing wrong.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,152
  • Toronto, Canada
    • View Profile
Re: NGUI HUDText is a bit shaky
« Reply #7 on: June 25, 2015, 09:33:40 PM »
UI camera should never move. It should remain stationary. Detach it from your character.

mightee

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: NGUI HUDText is a bit shaky
« Reply #8 on: July 04, 2015, 09:44:28 AM »
wow what a great support guy.

take a look at this: https://youtu.be/j93qFwdKxWU

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,152
  • Toronto, Canada
    • View Profile
Re: NGUI HUDText is a bit shaky
« Reply #9 on: July 06, 2015, 08:58:08 PM »
That means that your main camera is set to draw your UI layer. Check its culling mask.