Equirectangular to Face:
The Equirectangular to Face node is designed to convert an equirectangular image, which is a common format for 360-degree panoramas, into a specific face of a cubemap. This transformation is particularly useful in virtual reality and 3D graphics, where different perspectives of a scene are needed. By extracting a single face from the equirectangular image, you can focus on a specific direction, such as the front or top, and use it in applications that require a cubemap format. This node simplifies the process of isolating a particular view from a full 360-degree image, making it easier to work with in various creative and technical projects.
Equirectangular to Face Input Parameters:
e_img
This parameter represents the input equirectangular image that you want to convert. It is crucial as it serves as the source from which a specific face will be extracted. The image should be in a format compatible with the node, typically a tensor, and it must be provided for the node to function. There is no default value, as the image is a required input.
face_width
The face_width parameter determines the width of the face to be extracted from the equirectangular image. If set to a value less than 1, the node will automatically calculate the face width as half of the image's height. This parameter allows you to control the resolution of the extracted face, impacting the level of detail and quality. The default value is -1, which triggers the automatic calculation.
padding_mode
This parameter specifies the interpolation method used when sampling the image. Options include "bilinear," "bicubic," and "nearest," with "bilinear" as the default. The choice of padding mode affects the smoothness and quality of the resulting face image, with bilinear providing a balance between performance and quality.
cube_face
The cube_face parameter allows you to select which face of the cubemap you want to extract from the equirectangular image. Options include "Up," "Down," "Right," "Left," "Front," and "Back," with "Front" as the default. This parameter is essential for directing the node to focus on the desired perspective, enabling you to tailor the output to your specific needs.
Equirectangular to Face Output Parameters:
Face Image
The output of this node is the "Face Image," which is the extracted face from the equirectangular input. This image represents a specific view or direction from the original 360-degree panorama, formatted as a single face of a cubemap. The output is crucial for applications that require individual perspectives, such as rendering environments in virtual reality or creating detailed textures for 3D models.
Equirectangular to Face Usage Tips:
- Ensure your input equirectangular image is of high quality to achieve the best results when extracting a face.
- Experiment with different
cube_faceoptions to find the perspective that best suits your project needs. - Use the
face_widthparameter to adjust the resolution of the output face, balancing detail and performance.
Equirectangular to Face Common Errors and Solutions:
"Only a batch size of 1 is currently supported"
- Explanation: The node currently supports only a single image at a time, and this error occurs if you attempt to process a batch of images.
- Solution: Ensure that your input image tensor has a batch size of 1 before passing it to the node.
"Invalid cube_face option"
- Explanation: This error occurs if an unsupported value is provided for the
cube_faceparameter. - Solution: Double-check that the
cube_faceparameter is set to one of the valid options: "Up," "Down," "Right," "Left," "Front," or "Back."
