Visit ComfyUI Online for ready-to-use ComfyUI environment
Converts depth maps to normal maps for realistic 3D lighting effects with adjustable intensity and axis flipping.
The DepthToNormalMap
node is designed to convert depth maps into normal maps, which are essential in 3D graphics for simulating the lighting of bumps and dents on surfaces. This node takes a depth map, which represents the distance of surfaces from a viewpoint, and transforms it into a normal map that encodes surface orientation information. This conversion is crucial for enhancing the realism of 3D models by allowing for more detailed and dynamic lighting effects. The node provides flexibility in adjusting the intensity of the normals and flipping the axes, making it a versatile tool for artists looking to refine the visual quality of their 3D scenes.
This parameter accepts an image that represents the depth map. The depth map is a grayscale image where the intensity of each pixel corresponds to the distance from the camera, with lighter pixels being closer and darker pixels being further away. The node processes this input to generate the corresponding normal map.
This parameter controls the intensity of the normals in the resulting normal map. A higher intensity value will exaggerate the surface details, making the bumps and dents more pronounced, while a lower value will result in a smoother appearance. The default value is 1.0, with a minimum of 0.01 and a maximum of 10.0.
This boolean parameter determines whether the X-axis of the normal map should be flipped. Flipping the X-axis can be useful for correcting the orientation of the normals if they appear inverted. The default value is True
.
This boolean parameter controls whether the Y-axis of the normal map should be flipped. By default, the Y-axis is flipped, and setting this parameter to True
will un-flip it. This can be useful for adjusting the vertical orientation of the normals. The default value is False
.
This parameter adjusts the scale of the depth map before conversion. It affects how the depth values are interpreted, with a higher scale resulting in more pronounced depth effects. The default value is 1.0, with a minimum of 0.02 and a maximum of 2.0.
The output is an image that represents the normal map derived from the input depth map. This normal map encodes the surface orientation information, which can be used in 3D rendering to simulate realistic lighting and shading effects. The normal map is typically a color image where the RGB channels correspond to the X, Y, and Z components of the surface normals.
normal_intensity
parameter. This will make the lighting effects more dramatic and enhance the perception of depth.flip_x
and flip_y
parameters to correct the orientation.depth_scale
parameter is set outside the allowed range.depth_scale
parameter to be within the range of 0.02 to 2.0.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.