Author Topic: 3D Flickering  (Read 2985 times)

xito

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 13
    • View Profile
3D Flickering
« on: November 22, 2013, 03:30:14 AM »
Hi!

We are trying to put a label with this structure:

+ Panel
     + GameObject
           + Sprite (Depth 3,  Z = 0)
           + Label  (Depth 1,  Z = -1)   <- PROBLEM
     + Button
           + Sprite (Depth 0,  Z = 0)
           + Sprite (Depth 1,  Z = 0)

We are using this panel in 3D view with a billboard and sometimes the label isn't viewed. This billboard is applied to the panel.

The main camera is a perspective camera.

Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 3D Flickering
« Reply #1 on: November 22, 2013, 03:35:19 AM »
Z has no effect in NGUI 3.0 onwards. Only depth matters. You have two depth values conflicting, so which one appears in front is arbitrary.

xito

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 13
    • View Profile
Re: 3D Flickering
« Reply #2 on: November 26, 2013, 09:17:11 AM »
Hi!
We start to develop GUI with 2.3 version, our actual version is 2.7, Is this problem replicate in this version too?

Thanks! Your support is awesome.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 3D Flickering
« Reply #3 on: November 26, 2013, 11:14:37 AM »
2.7 has a hybrid depth / z system. Widgets inside panels are sorted by depth, but panels are sorted by Z if I recall correctly...