Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate normal maps from input images for 3D depth illusion.
The CalculateNormalMap
node is designed to generate a normal map from a sequence of input images. A normal map is a type of texture that stores information about the direction of surface normals, which can be used to create the illusion of depth and detail on a 3D surface without increasing the polygon count. This node processes the input images by centering their brightness levels, applying Gaussian blur to smooth the normal calculation, and then computing the normal map based on the image intensities. The result is a normalized and clamped normal map that can be used in various applications, such as enhancing the realism of 3D models in computer graphics and game development.
images
is a sequence of input images that are used to calculate the normal map. These images should represent different lighting conditions (e.g., left, right, top, bottom) to accurately capture the surface details. The quality and accuracy of the normal map depend on the input images provided.
sigma
is the standard deviation for the Gaussian blur applied during the normal calculation. It controls the smoothness of the resulting normal map. A higher sigma value results in a smoother normal map, while a lower value retains more detail. The value should be chosen based on the desired level of detail and smoothness.
center_input_range
is the range used to center the input images, adjusting their brightness levels to have a mean closer to zero. This step is crucial for ensuring consistent lighting conditions across the images, which improves the accuracy of the normal map calculation.
mask
is an optional parameter that specifies a mask image to define the computation region. If provided, the normal map calculation will be restricted to the areas defined by the mask, allowing for selective processing of the input images. This can be useful for focusing on specific regions of interest.
normal
is the calculated normal map, which contains the surface normal information derived from the input images. This output can be used in various applications to enhance the visual realism of 3D models by simulating detailed surface textures and lighting effects.
sigma
parameter to balance between smoothness and detail in the normal map.center_input_range
parameter to normalize the brightness levels of the input images for consistent lighting.sigma
value is set outside the acceptable range.sigma
value to be within a reasonable range for Gaussian blur, typically between 0.1 and 10.© Copyright 2024 RunComfy. All Rights Reserved.