Author Topic: NGUI Soft clipping not working when scrolling (Android) [resolved]  (Read 8219 times)

ababilinski

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
The scroll view does not clip the objects when the user is scrolling through the view. The scroll view works perfectly but seems to fail when exported.
 
here is a link to a screen recording taken off of my phone.
https://drive.google.com/file/d/0B9LpK1sHpGZ-TEVReko3cEFTMF84V0FyNnRMdTZHcTBESTFF/edit?usp=sharing


I'm running version :3.6.1
I'm exporting to Android 4.2 or higher which supports higher quality textures.
« Last Edit: June 10, 2014, 07:31:29 AM by ababilinski »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI Soft clipping not working when scrolling (Android)
« Reply #1 on: June 07, 2014, 08:58:42 PM »
Whenever clipping doesn't work, it means the appropriate shader was not loaded. This can be caused by running the game using the "Fastest" quality setting, targeting GLES 1.1 / ARMv6, or by moving NGUI's shaders out of their proper place in the Resources folder.

ababilinski

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: NGUI Soft clipping not working when scrolling (Android)
« Reply #2 on: June 08, 2014, 06:54:28 AM »
Quote
Whenever clipping doesn't work, it means the appropriate shader was not loaded. This can be caused by running the game using the "Fastest" quality setting, targeting GLES 1.1 / ARMv6, or by moving NGUI's shaders out of their proper place in the Resources folder.

I have the Shaders in in the Resources folder.
I disabled the fastest quality setting.
I also my device filter is ARMv7 Only.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI Soft clipping not working when scrolling (Android)
« Reply #3 on: June 09, 2014, 03:10:06 AM »
Then I don't see why the clipping would fail. If it works in the editor, then it will work on the device unless something causes shaders to not work there. If you're not using the fastest quality setting and shaders are allowed in your quality settings, then it should work as expected. Provided the device actually supports shaders, that is.

ababilinski

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: NGUI Soft clipping not working when scrolling (Android)
« Reply #4 on: June 09, 2014, 10:45:01 PM »
I figured out the problem now. NGUI does not support GLES 3. Got it fixed now! thank you!

yeagerj

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: NGUI Soft clipping not working when scrolling (Android) [resolved]
« Reply #5 on: June 11, 2014, 09:44:41 AM »
For anyone else this is affecting, the solution (at least for us) was to set the graphics level in player settings to 'Force OpenGL ES 2.0' instead of 'Automatic'.

- Josh