Bevel/Emboss Effect:
The BevelEmboss node is a powerful tool designed to apply sophisticated bevel and emboss effects to images, leveraging GPU support for enhanced performance. This node is particularly beneficial for artists and designers looking to add depth and dimension to their digital artwork. By simulating the appearance of raised or recessed surfaces, the BevelEmboss node can transform flat images into visually striking pieces with realistic lighting and shadow effects. The node offers a range of customizable parameters, allowing you to fine-tune the depth, angle, and opacity of highlights and shadows, as well as the softness and width of the bevel. This flexibility ensures that you can achieve the desired aesthetic effect, whether you're aiming for subtle texture enhancements or dramatic three-dimensional transformations. The node's integration with ComfyUI ensures a seamless workflow, making it an essential tool for AI artists seeking to elevate their creative projects.
Bevel/Emboss Effect Input Parameters:
image
The image parameter is the input image to which the bevel or emboss effect will be applied. It is expected to be in the ComfyUI image tensor format, which ensures compatibility with the node's processing capabilities.
depth
The depth parameter controls the perceived height or depth of the bevel or emboss effect. A higher value increases the intensity of the effect, making the image appear more three-dimensional. The default value is 5.0, with a range from 0.0 to 100.0, allowing for subtle to pronounced effects.
angle
The angle parameter determines the direction of the light source, affecting how highlights and shadows are cast on the image. This parameter is crucial for achieving the desired lighting effect and can be adjusted from -360 to 360 degrees, with a default of 135 degrees.
highlight_opacity
The highlight_opacity parameter sets the transparency level of the highlights in the bevel or emboss effect. A higher value results in more pronounced highlights, enhancing the illusion of depth. The default is 0.75, with a range from 0.0 to 5.0.
shadow_opacity
The shadow_opacity parameter controls the transparency of the shadows in the effect. Similar to highlight_opacity, increasing this value will make shadows more prominent, contributing to the three-dimensional appearance. It also ranges from 0.0 to 5.0, with a default of 0.75.
soften
The soften parameter adjusts the softness of the bevel or emboss edges. A higher value results in smoother transitions between highlights and shadows, creating a softer effect. The default is 0.0, with a range from 0.0 to 50.0.
mode
The mode parameter allows you to select the type of effect to apply: "emboss", "bevel_inner", "bevel_outer", or "pillow_emboss". Each mode offers a different style of effect, providing versatility in achieving various artistic outcomes.
bevel_width
The bevel_width parameter specifies the width of the bevel effect. A larger width increases the area affected by the bevel, enhancing the overall impact of the effect. The default is 5.0, with a range from 1.0 to 100.0.
debug_device
The debug_device parameter is a boolean flag used for debugging purposes. When set to true, it enables additional logging or diagnostic information to assist in troubleshooting.
mask
The mask parameter allows you to specify a mask image that defines which areas of the input image will be affected by the bevel or emboss effect. This enables selective application of the effect, providing greater control over the final result.
mask_mode
The mask_mode parameter determines how the mask is applied. The default option "apply_to_masked" applies the effect only to the masked areas, allowing for targeted enhancements.
mask_blur
The mask_blur parameter controls the amount of blur applied to the mask, which can help create smoother transitions between masked and unmasked areas. The default is 0.0, allowing for precise control over the mask's influence.
Bevel/Emboss Effect Output Parameters:
image
The output image parameter is the processed image with the applied bevel or emboss effect. This output retains the original image's dimensions and format, now enhanced with the specified three-dimensional effects, ready for further use or display.
Bevel/Emboss Effect Usage Tips:
- Experiment with different
depthandanglesettings to achieve the most realistic lighting effects for your image. - Use the
maskparameter to apply the effect selectively, enhancing specific areas of your image without affecting the entire composition. - Adjust the
softenparameter to create smoother transitions in the bevel or emboss effect, which can be particularly useful for achieving a more natural look.
Bevel/Emboss Effect Common Errors and Solutions:
"Invalid image format"
- Explanation: This error occurs when the input image is not in the expected ComfyUI image tensor format.
- Solution: Ensure that the input image is correctly formatted as a ComfyUI image tensor before applying the node.
"Parameter out of range"
- Explanation: This error indicates that one or more input parameters are set outside their allowable range.
- Solution: Double-check the values of all input parameters and ensure they fall within the specified minimum and maximum limits.
"Mask not compatible"
- Explanation: This error arises when the provided mask does not match the dimensions or format of the input image.
- Solution: Verify that the mask image is the same size and format as the input image to ensure compatibility.
