Raster Image - Bevel

From RealWorld Wiki

Jump to: navigation, search

The Bevel operation is an operation plug-in, which modifies raster images by defining height for each pixel and then letting a directional light shine on a 3D surface obtained from the image and the heights. The net effect resembles the impression of an embossed surface.

The height for each pixel is obtained in two steps. First, it is taken from pixel opacity and/or from image mask. Fully opaque and selected pixels have maximum height while transparent or non-selected pixels have height of 0. Second, the edges of the elevated region are beveled and/or blurred. Amount of beveling and blurring is set in the configuration.

Once the height map is complete, surface normals are computed and pixels are lit depending on their normal and on light direction. Users can choose if they want to use standard light intensity or automatically adjust it to make flat surfaces appear unchanged.

[edit] Internals

GUID: BC29F53A-6940-4C6D-ABC9-EBE5536D07ED

Configuration
Parameter nameTypeDefaultValueNote
Sourceint11 = opacity, 2 = mask, 3 = both
SelectionIDstring"IMAGEMASK"state ID holding an image mask
Amountint10pixels
Blurint4pixels
Lightfloat[4]0.27059805, 0.27059805, 0.0f, 0.92387953rotation defining light direction as a quaternion
KeepFlatboolfalse
Personal tools