Website Header Slim

Derive Node Reference

Shadow Filter Node

Description

The shadow filter attempts to cancel out shadowy artifacts from photographed textures. It is not designed to remove large shadows caused by large objects obstructing light from reaching the photographed surface, but it can be very useful for removing small shadows caused by direct lighting during photography.

 

Since shadows are to be rendered based on the chosen lighting model and the scene lighting, shadows on a texture are almost certainly perceived as artifacts and thus undesired. This node can only attempt to solve this problem, but will by no means always succeed. The success of the shadow filtering operation depends on so many different factors, that it is near impossible to tell, when it will return good results and when it won’t.

 

The filter works based on detecting dark areas. That area is then considered the area of effect. If this area is very small, only the darkest spots of the texture will be taken into consideration. Including ever brighter areas of the texture will also increase the area of effect. However the filter is not able to tell whether a dark area is a shadow or simply just the color of the surface in that area. Thus certain surfaces – such as granite – will almost certainly fail with this filter.

 

Upon detecting the dark areas that the effect should be applied to, these areas are brightened in the HSV color model to keep loss of color information as low as possible.

 

This node probably requires the most balancing of properties to produce acceptable results.

Sample Tree

Properties

Property Name Property Type Description
Area of Effect
Float Slider

Determines the area of effect based on the pixel brightness. The higher the value, the brighter the pixels that are included in the effect.

 

The preview right above the control shows the area of effect. The black areas are unaffected by the shadow filter, while the rest is.

Filter Strength
Float Slider

Determine the strength of the brightening filter on the area of effect. The higher the value, the brighter the affected areas will get. The goal is to find the best value for which the filtered area has about the same color as the unfiltered area.

Smoothness
Float Slider
Smoothens the area of effect to make it easier to find the best value for the filter strength. By smoothening the area of effect, results in a smooth blending between the filtered and the unfiltered areas.

Inputs

Input Name Allowed Data Types Description
Input
Float, RGBA
Input that takes the texture to apply the shadow filter to.

Outputs

Output Name Data Type Description
Output
= Input Data Type
Outputs the input texture with the shadow filter applied to it according to the specified properties.

Login