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.


Topics - Lex_87

Pages: [1]
1
NGUI 3 Support / Unusual content
« on: February 24, 2014, 06:28:59 AM »
Is there a way to find unusual content such as sprites in atlases?

We have too many atlases wich contains unusual sprites.
Content changes dynamically. It is too hard to investigate this every time.

2
Hi everyone  :)

I want to use image effect (e.g. bloom) for only for the single of several Camera layers which contents GUI.

But as a result i have processed UILabels only:


Implementation:

I use two cameras. First camera clears alpha to apply image effect to last layer only.

 ??? Wherein: If i did not apply clear alpha script for the first camera then i have image effect for the whole screenspace like this:


Second camera does image effect for own layer.

Scene hierarchy:
- UIRoot
-- UICamera (layer 1) [clear alpha shader]
--- UIWidgets
--- ...
--- ...
-- UICamera (layer 2) [image effect script]
--- UIWidgets <- Here must be bloomed whole content of this layer but it works with UILabels only
--- ...
--- ...

Clear alpha shader is:
  1. Shader ""ClearAlpha"" {
  2.         SubShader {
  3.                 ColorMask A
  4.                 ZTest Always Cull Off ZWrite Off Fog { Mode Off }
  5.                 Pass { Color (0,0,0,0) }
  6.         }
  7.  
  8.         Fallback off
  9. }
  10.  


OnRenderImage method of the clear alpha script:
  1.         void OnRenderImage (RenderTexture source, RenderTexture destination) {
  2.                 Graphics.Blit (source, destination, material);
  3.         }
  4.  

OnRenderImage method of the image effect script:
  1.         void OnRenderImage (RenderTexture source, RenderTexture destination)
  2.         {
  3.                 amount = Mathf.Sin (Time.fixedTime);
  4.                 material.SetFloat("_Amount", amount);
  5.                 Graphics.Blit (source, destination, material);
  6.         }
  7.  

3
Hi everyone  ;)

I've an issue with assigning different shader parameters on the different UITextures.

Here i have three different UITextures like a gold labels which flashes together.


I wanna coerce flash only e.g. first label.
I guess that roots of this issue is common draw call on the common UIPanel.

How i can draw UItextures in different draw calls on the common UIPanel?

Pages: [1]