🔆 Sphere Light Render:
The SphereLightNode is designed to simulate a spherical light source within a 3D rendering environment, providing a realistic lighting effect that enhances the visual quality of rendered images. This node is particularly useful for artists and designers who want to add dynamic lighting to their 3D scenes without delving into complex lighting setups. By adjusting parameters such as rotation, elevation, and intensity, you can control the direction and strength of the light, allowing for a wide range of lighting effects. The node processes an input image encoded in base64 format, applies the specified lighting conditions, and outputs a transformed image that reflects the changes in lighting. This functionality is crucial for creating visually compelling images that require nuanced lighting adjustments.
🔆 Sphere Light Render Input Parameters:
rotation
The rotation parameter controls the horizontal angle of the light source around the scene. It allows you to rotate the light source from -180 to 180 degrees, with a default value of 0.0 degrees. Adjusting this parameter changes the direction from which the light hits the objects in the scene, affecting the shadows and highlights.
elevation
The elevation parameter sets the vertical angle of the light source above the horizon. It ranges from 5 to 85 degrees, with a default value of 45.0 degrees. This parameter influences how high the light is positioned relative to the scene, impacting the length and direction of shadows cast by objects.
intensity
The intensity parameter determines the brightness of the light source, ranging from 0.2 to 3.0, with a default value of 1.5. Increasing the intensity makes the light source brighter, which can enhance the visibility of details in the scene, while decreasing it results in a dimmer light, creating a more subdued atmosphere.
render_b64
The render_b64 parameter is a string that contains the base64-encoded image data to be processed. It should start with "data:image" to be recognized as valid input. This parameter is essential for providing the initial image that will be transformed by the lighting effects applied by the node.
🔆 Sphere Light Render Output Parameters:
render
The render output parameter is an image tensor that represents the final rendered image after applying the spherical light effects. This output is crucial for visualizing the impact of the lighting adjustments made using the input parameters. The tensor format ensures compatibility with further processing or integration into larger workflows.
🔆 Sphere Light Render Usage Tips:
- To achieve dramatic lighting effects, experiment with extreme values of
rotationandelevationto see how they alter the scene's appearance. - Use the
intensityparameter to fine-tune the brightness of the light, ensuring that the details in your scene are neither overexposed nor too dark. - Ensure that the
render_b64input is correctly formatted and starts with "data:image" to avoid processing errors.
🔆 Sphere Light Render Common Errors and Solutions:
Error: Invalid base64 input
- Explanation: This error occurs when the
render_b64input does not start with "data:image" or is improperly formatted. - Solution: Verify that your base64 string is correctly formatted and begins with "data:image" to ensure it is recognized as valid input.
Error: Image processing failed
- Explanation: This error might happen if there is an issue decoding the base64 string or processing the image.
- Solution: Check the integrity of your base64 string and ensure it is complete and correctly encoded. If the problem persists, try using a different image to see if the issue is with the specific file.
