😺NKD Relight:
The RelightingNode is a powerful tool designed to enhance and manipulate the lighting of an image by utilizing various input data such as RGB, normals, depth, and optional parameters like albedo and roughness. This node allows you to simulate different lighting conditions and effects, providing a flexible and creative way to relight scenes without the need for complex 3D rendering software. By adjusting the lighting configuration, you can achieve a wide range of visual styles and moods, making it an essential tool for AI artists looking to refine and enhance their digital artwork. The node's primary goal is to offer a user-friendly interface for relighting images, enabling artists to focus on their creative vision while the node handles the technical aspects of lighting simulation.
😺NKD Relight Input Parameters:
rgb
The rgb parameter is a required input that represents the base image to be relit. It is crucial as it serves as the foundation upon which all lighting adjustments are applied. This parameter should be an image in RGB format, and its quality and resolution will directly impact the final relit image.
normals
The normals parameter is a required input that provides the surface normals of the image. Normals are essential for determining how light interacts with surfaces, affecting the direction and intensity of the lighting. This parameter should be an image in RGB format, where each pixel encodes the normal vector of the corresponding surface point.
depth
The depth parameter is a required input that represents the depth information of the image. Depth data is used to simulate realistic lighting effects such as shadows and occlusion. This parameter should be an image in grayscale format, where the intensity of each pixel corresponds to the distance from the camera.
albedo
The albedo parameter is an optional input that provides the base color of the surfaces in the image, excluding any lighting effects. It can be used to achieve more accurate relighting results by separating the color information from the lighting. This parameter should be an image in RGB format.
roughness
The roughness parameter is an optional input that defines the surface roughness of the image. Roughness affects the scattering of light on surfaces, influencing the appearance of highlights and reflections. This parameter should be an image in grayscale format, where the intensity of each pixel represents the roughness value.
lights_config
The lights_config parameter is an optional input that specifies the configuration of the lighting setup. It is a JSON string that defines the properties of the lights, such as type, position, intensity, and color. This parameter allows for precise control over the lighting conditions and can be customized to achieve various effects. The default value is an empty JSON object {}.
unique_id
The unique_id parameter is a hidden input used internally to track and manage the relighting process. It is not intended for direct manipulation by users.
😺NKD Relight Output Parameters:
relit_image
The relit_image parameter is the output of the node, representing the final image after the relighting process. This image reflects the applied lighting adjustments and enhancements, showcasing the new lighting conditions and effects. The relit image is in RGB format and can be used for further artistic refinement or as a final piece.
😺NKD Relight Usage Tips:
- Experiment with different
lights_configsettings to achieve a variety of lighting effects, from dramatic shadows to soft ambient lighting. - Use the
albedoandroughnessinputs to fine-tune the relighting results, especially when working with complex scenes or materials. - Ensure that the
normalsanddepthinputs are accurate and well-aligned with thergbimage to achieve realistic lighting effects.
😺NKD Relight Common Errors and Solutions:
Invalid JSON in lights_config
- Explanation: The
lights_configparameter contains a JSON string that is not properly formatted. - Solution: Ensure that the JSON string is correctly formatted, with proper syntax and structure. Use a JSON validator to check for errors.
Mismatched Image Dimensions
- Explanation: The dimensions of the input images (rgb, normals, depth, albedo, roughness) do not match.
- Solution: Ensure that all input images have the same dimensions. Resize images if necessary to match the dimensions of the
rgbimage.
Missing Required Inputs
- Explanation: One or more required inputs (rgb, normals, depth) are missing.
- Solution: Provide all required inputs to the node. Check that each input is correctly connected and available.
