Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate normal maps from directional exposure images to enhance textures and lighting for 3D/2D models.
The CalculateNormalsFromImages
node is designed to generate normal maps from a set of images taken from different directional exposures. This node is particularly useful for AI artists who need to create detailed and realistic textures for 3D models or enhance the depth and lighting of 2D images. By processing four images representing different light directions (left, right, bottom, and top), the node calculates the normal map, which can be used to simulate how light interacts with the surface of an object. This process helps in creating more dynamic and visually appealing images by adding depth and realism.
This parameter expects a batch of four images representing different directional exposures: left, right, bottom, and top. These images are used to calculate the normal map. The images should be in the format of a 4D tensor with dimensions (B, H, W, C), where B is the batch size, H is the height, W is the width, and C is the number of color channels.
This is a floating-point parameter that controls the sharpness of the normal map. A higher sigma value results in a smoother normal map, while a lower value produces a sharper map. The default value is 10.0, with a minimum of 0.01 and a maximum of 100.0. Adjusting this value can help in fine-tuning the appearance of the normal map to match the desired level of detail.
This boolean parameter determines whether the input image range should be centered. If set to True, the images are scaled to a range of [0, 1]. The default value is False. Centering the input range can help in normalizing the images, which may lead to more consistent results in the normal map calculation.
This optional parameter allows you to provide a mask that can be used to influence the normal map calculation. The mask should have the same spatial dimensions as the input images. If provided, the mask is used to blend the normal map with a default normal vector, which can help in preserving certain areas of the image. If not provided, the normal map is calculated without any masking.
This output parameter provides the calculated normal map as an image. The normal map is a 3D tensor with dimensions (H, W, 3), where H is the height, W is the width, and 3 represents the three color channels corresponding to the x, y, and z components of the normal vectors. This map can be used to simulate lighting and shading effects in 3D rendering or image processing applications.
This output parameter provides an image that represents the divided directional exposures. It is a 4D tensor with dimensions (4, H, W, 3), where 4 corresponds to the four directional exposures (left, right, bottom, top), H is the height, W is the width, and 3 represents the color channels. This output can be useful for debugging or further processing of the individual directional exposures.
sigma
parameter to find the optimal sharpness for your normal map. Higher values will produce smoother results, while lower values will enhance details.center_input_range
parameter to normalize your input images if they are not already in the [0, 1] range. This can help in achieving more consistent results.safe_divide
function.© Copyright 2024 RunComfy. All Rights Reserved.