Author Topic: Camera UI is vibrating?  (Read 2307 times)

decoy26517

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Camera UI is vibrating?
« on: November 13, 2013, 07:45:31 PM »
I'm not sure what I missed but the UI seems to be vibrating for some reason. This ONLY happens when the camera is rotated. If the character (which UI Root is a child of) just moves around there isn't a problem. But if I rotate the camera around the character the UI starts to vibrate when the character starts moving around. Also it only happens when the the UI root is REALLY far away from the 0,0,0 origin. Ex: At 17920, 0, -75280 the vibrations are very noticeable. but at 10,0,0 you can't notice it.

This happens when there are no scripts (other than the default NGUI ones that are attached but the wizard and widget tool) are attached to anything.

decoy26517

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: Camera UI is vibrating?
« Reply #1 on: November 13, 2013, 07:52:10 PM »
Ok, nvm the camera rotation as being part of it. It just seems as though if the UIRoot widgets will vibrate if it moves far away from 0,0,0 regardless if the camera is rotated.


EDIT: Had to clarify that.
« Last Edit: November 13, 2013, 08:11:49 PM by decoy26517 »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Camera UI is vibrating?
« Reply #2 on: November 14, 2013, 03:19:35 PM »
UI camera should be stationary.

decoy26517

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: Camera UI is vibrating?
« Reply #3 on: November 14, 2013, 08:26:00 PM »
Thanks Aren, guess I still have a lot to learn about NGUI.  :P

decoy26517

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: Camera UI is vibrating?
« Reply #4 on: November 14, 2013, 11:12:51 PM »
OK Aren, having a new issue. I have two cameras in the scene, one is dedicated to the UI, the other is for the player and objects.

It was working for awhile but now the UI camera is not talking to the MainCamera. The UI is visible in the Camera preview when the UIcamera is selected in the inspector, but it is not visible in the game window. EXCEPT when I turn something on/off in the inspector (like disable the camera/reenable the camera is now appears in the game window)

I've looked through all of the scripts and nothing is disabling the UIcamera or any of its components. Its just not appearing over the main camera.

EDIT:

Ok, apparently there was something wrong with the UI camera itself. I replaced it and everything it working now.
« Last Edit: November 15, 2013, 12:10:44 AM by decoy26517 »