Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Scryed

Pages: [1]
1
That shader worked immediately, you rock Aren!!

Eyeballing the code it seems like the only difference is that you're passing the texture mask to the frag and using it's alpha values. I'm ashamed to say I didn't even try that!!

Thanks for the assist, saved the next release of the game :)

2
Thanks for the reply Aren!

So good news is that putting the UITexture below a panel of the same size with TextureMask clipping works immediately and the UITexture is properly masked. Fantastic!!

However this is a secondary (hopefully simple) problem now. The Panel / UITexture is no longer clipped by the Scroll View it's nested underneath. Unsure as to whether or not there's a simple checkbox fix on the scroll view / panel components to make them play nice, or if it's an issue with having one panel nested within another and I'll need to drastically change my object hierarchy to get around the problem.

I've attached a screenshot of the issue with the current settings of the panel with the texture mask that I created. It's all pretty out of the box settings-wise but you might spot something amiss.

Thanks again :)
Scryed

3
Bump.

Pretty much the same question I just asked here:

http://www.tasharen.com/forum/index.php?topic=12739.msg57753#msg57753

We're going to have to roll back to an old version of NGUI at this rate.

4
NGUI 3 Support / Masking UITexture inside ScrollView doesn't work!!
« on: March 10, 2015, 06:30:38 AM »
Hi guys,

So I recently upgraded to NGUI 3.8.0 from some previous version and noticed that the shader I used to mask players facebook avatars inside a list of your friends no longer works. I was using Nicki's solution found at:

http://nickithansen.dk/masking-and-clipping-textures-using-shaders-in-ngui/

However he has since confirmed this no longer works in the latest version of NGUI due to a change in the way scroll views work. It also doesn't appear as though anything is bundled with NGUI that I can pick up and use.

Any idea what's going wrong here? Curious to know if anybody has encountered this and has any solutions to allow masking inside scroll views.

Cheers guys :)
Scryed

5
NGUI 3 Support / isOverUI not working on Web Player.
« on: February 23, 2015, 08:38:11 AM »
I've ran into a problem with the 'isOverUI' function on Web Player. It seems that it never gets evaluated as true because the 'hoveredObject' isn't being set to the piece of UI the user is hitting.

We've actually been using this logic fine on our editor / iOS and android builds, the problem is on web player alone. As an aside, the camera's event type is set to UI_3D and we have tried running the project thru safari and chrome (suspected the issue was with NGUI raycast logic and found reports that raycasts on chrome could be a bit funny).

Thanks for any help guys :)

Pages: [1]