With ‘Color Isolation’ you can select an area of the screen, by its color or by layer, and apply different color effects to that area and the rest of the screen.
Once installed, select the camera of the scene and add the component ‘Color Isolation’. When you add it you will see something like:
With ‘Strength’ (1) you can select the strength of the effect. You can use two different modes to select the areas you want to isolate. The first is ‘Color’ and with it you will isolate areas according to their color.
Select the desired color with ‘Hue’ and adjust the sensitivity with ‘Range’. With the values you see in the image above, you could isolate the blue sphere from this image:
Another mode you can use is the ‘Layer’ mode, with it you can select objects according to their layer.
Just select the layer you want to isolate in ‘Isolation layer’. If all the balls in the scene are on the ‘Balls’ layer, the result would be:
This mode uses the depth buffer of the camera, so it is recommended to set the ‘Far’ of the camera to a minimum to increase the precision. You can also adjust the sensitivity of the effect with ‘Depth threshold’.
Once the zones are selected, you can apply different effects to each zone. The zone you have selected, or isolated, will be affected by all the settings of ‘Isolated zone’ (3) and the rest of the screen ‘Not isolated zone’ (10).
The effects that you can apply to each zone are: tint (4), saturation (5), brightness (6), contrast (7), gamma (8) and hue (9).
Finally, by pressing at ‘[doc]’ (11) you can access the online help and in ‘Reset’ (12) to return to the default parameters.
All code is inside the namespace ‘Nephasto.ColorIsolationAsset’ and main component is ‘ColorIsolation’. So if you want to use it you must first import its namespace:
If ‘myCamera’ is a valid camera and you want to add the effect, you should do something like:
For more information, see the documentation in the ‘ColorIsolation’ class and the attached demo.
Cualquier pregunta o sugerencia que tengas estaré encantado de responderla en