Author Topic: Quest log text disappears even in example scene  (Read 4804 times)

theropodx

  • Guest
Quest log text disappears even in example scene
« on: May 31, 2012, 09:29:05 PM »
I'm building a gui based on the Quest Log example scene. I tried to make it a 3d gui, but then i noticed the quest log text started to disappear depending on the angle. You can reproduce this by simply viewing the quest log from below with a perspective camera (or even just in the unity scene window). Like this:



I don't see this behavior with other sample scenes. Seems to be related to the scrolling content? Help!

Thank you!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Quest log text disappears even in example scene
« Reply #1 on: May 31, 2012, 09:33:58 PM »
Scrolling content = separate panel = separate draw call. It doesn't mix well with 3D UIs. Read the FAQ for more information. You can remedy this somewhat by moving the Z, or changing the soft clip shader to use a higher render queue.

theropodx

  • Guest
Re: Quest log text disappears even in example scene
« Reply #2 on: May 31, 2012, 10:08:26 PM »
Ok, seems like if I use a separate Atlas I get reliable results too. I realize that creates a separate draw call, but the impact seems pretty minimal too. Or, is that crazy?

theropodx

  • Guest
Re: Quest log text disappears even in example scene
« Reply #3 on: May 31, 2012, 10:21:38 PM »
Actually, my last comment is not quite right...the only way I can get other objects to reliably work with my 3d scrolling window is to display standard meshes with textures. Any use of an atlas creates visual weirdness (as you suggest).

But a bigger problem might be that all kinds of strange behavior crops up when I try to rotate my panel...the scroll wheel either doesn't work or sends the contents of the panel in odd directions.

Is is just the case that the scrolling panels can't do 3D at this point (or in current form)?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Quest log text disappears even in example scene
« Reply #4 on: May 31, 2012, 10:28:12 PM »
As I explained, more than one panel means more than one draw call, so it's up to Unity to determine what's in front of what by comparing the distance from the camera to the center of the draw call's geometry. Tilting the window changes the distance to its components.

ENAY

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 248
    • View Profile
Re: Quest log text disappears even in example scene
« Reply #5 on: May 31, 2012, 10:29:06 PM »
Do what ArenMook says and change the Z axis of your text. I had this problem and once I changed the Z, all my problems magically went away.

theropodx

  • Guest
Re: Quest log text disappears even in example scene
« Reply #6 on: May 31, 2012, 11:48:19 PM »
Oh believe me, I did try that!  ;)  In fact, I tried for 3 hours all combinations of z-depth and depth settings and never got it working.

You can try it yourself. Load up the Quest Log example, switch to a perspective camera, rotate the panel a bit and...the scrolling area is all goofed up. I think that's why Aren says you can remedy this "somewhat"...

And again, the bigger problem (for me) is that once you rotate the panel a bit, and switch to a perspective camera, the scrolling text will scroll right out of it's window, like so:




oh, and to clarify, this mostly/only happens when you use the mouse wheel...
« Last Edit: May 31, 2012, 11:51:33 PM by theropodx »