ComfyUI  >  Nodes  >  ComfyUI-Image-Filters >  Normal Map (Simple)

ComfyUI Node: Normal Map (Simple)

Class Name

NormalMapSimple

Category
image/filters
Author
spacepxl (Account age: 295 days)
Extension
ComfyUI-Image-Filters
Latest Updated
6/22/2024
Github Stars
0.1K

How to Install ComfyUI-Image-Filters

Install this extension via the ComfyUI Manager by searching for  ComfyUI-Image-Filters
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Image-Filters in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Normal Map (Simple) Description

Generate normal maps from grayscale images for enhancing 3D models with depth and texture.

Normal Map (Simple):

The NormalMapSimple node is designed to generate normal maps from input images, which are essential in 3D graphics and game development for simulating the lighting of bumps and dents on a surface. This node simplifies the process by converting grayscale images into normal maps, which can then be used to add depth and texture to 3D models without increasing the polygon count. By leveraging this node, you can enhance the visual richness of your digital art and 3D models, making them appear more detailed and realistic. The node uses the Scharr operator to compute the gradient of the image, which is then normalized and scaled to produce the final normal map.

Normal Map (Simple) Input Parameters:

images

This parameter accepts the input images from which the normal maps will be generated. The images should be in a format that the node can process, typically a tensor representing the image data. The input images are converted to grayscale to compute the gradients necessary for generating the normal map.

scale_XY

This parameter controls the scaling factor for the X and Y components of the normal map. It allows you to adjust the intensity of the normal map's effect, making the bumps and dents appear more or less pronounced. The default value is 1, with a minimum value of 0 and a maximum value of 100. The step size for adjustments is 0.001, providing fine control over the scaling.

Normal Map (Simple) Output Parameters:

IMAGE

The output is the generated normal map, which is an image that encodes the surface normals of the input image. This normal map can be used in various applications, such as 3D rendering and game development, to simulate detailed surface textures and enhance the visual realism of 3D models.

Normal Map (Simple) Usage Tips:

  • To achieve a more pronounced bump effect, increase the scale_XY parameter. This will make the normal map's features more prominent.
  • Use high-contrast images as input to get more defined normal maps. Low-contrast images may result in less detailed normal maps.
  • Experiment with different scale_XY values to find the optimal setting for your specific use case, as different images may require different scaling factors.

Normal Map (Simple) Common Errors and Solutions:

Batch size for image and normals must match

  • Explanation: This error occurs when the batch size of the input images does not match the expected batch size for processing.
  • Solution: Ensure that all input images have the same batch size before feeding them into the node. You may need to preprocess your images to match the required batch size.

Input image format not supported

  • Explanation: This error occurs when the input images are not in a format that the node can process.
  • Solution: Convert your images to a supported format, typically a tensor representing the image data, before using the node. Ensure that the images are properly preprocessed and normalized.

Normal Map (Simple) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Image-Filters
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.