Author Topic: Unity 4 - Clipping Issues  (Read 6100 times)

NnelGdaBandit

  • Guest
Unity 4 - Clipping Issues
« on: June 21, 2013, 02:21:55 PM »
I've been using NGUI on Unity 4, and most things seem to work great. The only problem I have is with using Panel clipping. Even on the examples, if I have any clipping on whats inside that panel will not render. Has anyone come across this problem or have a solution to it?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unity 4 - Clipping Issues
« Reply #1 on: June 22, 2013, 06:09:34 AM »
Make sure your panel has uniform scale. Select the UIRoot and hit ALT+SHIFT+P. Also you have to have shader support. GLES 1.1 = no shaders.

NnelGdaBandit

  • Guest
Re: Unity 4 - Clipping Issues
« Reply #2 on: June 23, 2013, 10:10:30 AM »
I'm using OpenGL ES 2.0, and I tried your shortcut and now its rendering but its just a single flat color instead of the image. Any ideas on fixing that? Thanks for your response!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unity 4 - Clipping Issues
« Reply #3 on: June 23, 2013, 10:23:41 AM »
Single flat color means you don't have shader support. Is quality set to fastest? Fastest means no shader support.

NnelGdaBandit

  • Guest
Re: Unity 4 - Clipping Issues
« Reply #4 on: June 23, 2013, 10:43:46 AM »
The quality is set to good, anywhere else shader support would be turned off? It looks the same o both the PC and Android player, its not a Unity 4 issues right?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unity 4 - Clipping Issues
« Reply #5 on: June 23, 2013, 03:41:04 PM »

NnelGdaBandit

  • Guest
Re: Unity 4 - Clipping Issues
« Reply #6 on: June 24, 2013, 09:01:56 AM »
I went over those 5 things and they all seem to check out fine. I created a blank project with, imported NGUI and the panel demo and this is what I'm getting.

This happens when the panel is all the way at the beginning and or while it moves, otherwise they just don't appear. Thanks for all your help man, sorry this is a pain :(

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unity 4 - Clipping Issues
« Reply #7 on: June 24, 2013, 10:04:21 AM »
It's like your graphics driver doesn't support shaders.

NnelGdaBandit

  • Guest
Re: Unity 4 - Clipping Issues
« Reply #8 on: June 25, 2013, 09:08:18 AM »
It's the same on both my computers, once I get some time I'll look into the code to see whats going on. Thanks for your help, if you have any other info or ideas that could help please let me know.

NnelGdaBandit

  • Guest
Re: Unity 4 - Clipping Issues
« Reply #9 on: July 01, 2013, 12:11:23 PM »
I managed to fix this by updating. I was using 2.6.1 but the clipping works fine with the latest version.