ComfyUI > Nodes > comfyUI_TJ_NormalLighting > NormalLighting

ComfyUI Node: NormalLighting

Class Name

EulerLightingNode

Category
custom
Author
TJ16th (Account age: 2533days)
Extension
comfyUI_TJ_NormalLighting
Latest Updated
2024-05-23
Github Stars
0.13K

How to Install comfyUI_TJ_NormalLighting

Install this extension via the ComfyUI Manager by searching for comfyUI_TJ_NormalLighting
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter comfyUI_TJ_NormalLighting 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

NormalLighting Description

Enhance image quality with realistic lighting effects using Euler angles and various maps for AI artists.

NormalLighting:

The EulerLightingNode is designed to enhance the visual quality of images by simulating realistic lighting effects using Euler angles. This node takes in various maps such as diffuse, normal, and specular maps, and applies lighting calculations based on specified light directions and intensities. By adjusting parameters like light yaw, light pitch, specular power, and ambient light, you can achieve a wide range of lighting effects that add depth and realism to your images. The node is particularly useful for AI artists looking to add sophisticated lighting to their digital artworks without needing to delve into complex technical details.

NormalLighting Input Parameters:

diffuse_map

The diffuse_map parameter is an image input that represents the base color of the surface without any lighting effects. It is essential for determining the overall color and texture of the final output. This parameter does not have a minimum, maximum, or default value as it is an image input.

normal_map

The normal_map parameter is an image input that contains information about the surface normals, which are used to simulate how light interacts with the surface. This map is crucial for creating realistic lighting effects, as it helps in calculating the direction and intensity of the light hitting the surface. Like the diffuse_map, this parameter does not have a minimum, maximum, or default value.

specular_map

The specular_map parameter is an image input that defines the reflective properties of the surface. It is used to calculate the specular highlights, which are the bright spots that appear on shiny surfaces when illuminated. This parameter also does not have a minimum, maximum, or default value.

light_yaw

The light_yaw parameter controls the horizontal angle of the light source. It ranges from -180 to 180 degrees, with a default value of 45 degrees. Adjusting this parameter changes the direction from which the light is coming, affecting the shadows and highlights on the surface.

light_pitch

The light_pitch parameter controls the vertical angle of the light source. It ranges from -90 to 90 degrees, with a default value of 30 degrees. This parameter affects the height of the light source, influencing how light and shadows are cast on the surface.

specular_power

The specular_power parameter determines the sharpness of the specular highlights. It ranges from 1 to 200, with a default value of 32. Higher values result in sharper, more focused highlights, while lower values produce softer, more diffused highlights.

ambient_light

The ambient_light parameter controls the overall brightness of the scene by simulating indirect light that is scattered in all directions. It ranges from 0 to 1, with a default value of 0.50. Increasing this value makes the scene brighter, while decreasing it makes the scene darker.

NormalDiffuseStrength

The NormalDiffuseStrength parameter adjusts the intensity of the diffuse lighting based on the normal map. It ranges from 0 to 5.0, with a default value of 1.00. Higher values increase the impact of the normal map on the diffuse lighting, making the surface details more pronounced.

SpecularHighlightsStrength

The SpecularHighlightsStrength parameter controls the intensity of the specular highlights. It ranges from 0 to 5.0, with a default value of 1.00. Increasing this value makes the specular highlights more prominent, while decreasing it reduces their intensity.

TotalGain

The TotalGain parameter adjusts the overall brightness of the final output. It ranges from 0 to 2.0, with a default value of 1.00. This parameter is useful for fine-tuning the final appearance of the image by increasing or decreasing the overall light intensity.

NormalLighting Output Parameters:

IMAGE

The output parameter is an image that combines the effects of diffuse, normal, and specular maps with the specified lighting settings. This output image reflects the enhanced visual quality achieved through realistic lighting simulations, making it suitable for use in digital artworks and other visual projects.

NormalLighting Usage Tips:

  • Experiment with different light_yaw and light_pitch values to achieve various lighting angles and effects.
  • Use higher specular_power values for shiny surfaces like metal or glass to create sharp highlights.
  • Adjust the NormalDiffuseStrength to emphasize surface details and textures.
  • Increase the ambient_light parameter for scenes that require a softer, more evenly lit appearance.
  • Fine-tune the TotalGain parameter to balance the overall brightness of the final output.

NormalLighting Common Errors and Solutions:

"Input image dimensions do not match"

  • Explanation: This error occurs when the dimensions of the diffuse_map, normal_map, and specular_map do not match.
  • Solution: Ensure that all input images have the same dimensions before feeding them into the node.

"Invalid parameter value"

  • Explanation: This error occurs when a parameter value is outside its allowed range.
  • Solution: Check the parameter ranges and ensure that all values are within the specified limits.

"Tensor conversion error"

  • Explanation: This error occurs when there is an issue converting the input images to tensors.
  • Solution: Verify that the input images are in a compatible format and try again. If the issue persists, check for any potential bugs in the image conversion process.

NormalLighting Related Nodes

Go back to the extension to check out more related nodes.
comfyUI_TJ_NormalLighting
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.