Y7 SBS (Image)

Y7_SideBySide

2D To 3D Image Converter<div style="font-size: 0.8em"><div id="Y7_shortdesc" style="margin-bottom: 15px;">Converts a 2D image to stereoscopic 3D image</div></div><div style="font-size: 0.8em"><div style="margin-bottom: 8px; margin-left: 0px; font-size: 12px;">Processes an image and its depth map to generate an SBS (side-by-side) stereoscopic 3D image.</div></div><div style="font-size: 0.8em"><div style="margin-bottom: 8px; margin-left: 0px; font-size: 12px;">Inputs:</div></div><div style="font-size: 0.8em"><div style="margin-bottom: 8px; margin-left: 20px; font-size: 12px;">- <code style="border: 1px solid #666; border-radius: 3px; padding: 0px 1px; font-family: monospace; display: inline-block;">base_image</code>: The main image to convert to a side-by-side 3D image.</div></div><div style="font-size: 0.8em"><div style="margin-bottom: 8px; margin-left: 20px; font-size: 12px;">- <code style="border: 1px solid #666; border-radius: 3px; padding: 0px 1px; font-family: monospace; display: inline-block;">depth_map</code>: Grayscale depth map of the base image.</div></div><div style="font-size: 0.8em"><div style="margin-bottom: 8px; margin-left: 20px; font-size: 12px;">- method: <code style="border: 1px solid #666; border-radius: 3px; padding: 0px 1px; font-family: monospace; display: inline-block;">mesh_warping</code> or <code style="border: 1px solid #666; border-radius: 3px; padding: 0px 1px; font-family: monospace; display: inline-block;">grid_sampling</code> to shift pixels based on the depth map.</div></div><div style="font-size: 0.8em"><div style="margin-bottom: 8px; margin-left: 20px; font-size: 12px;">- <code style="border: 1px solid #666; border-radius: 3px; padding: 0px 1px; font-family: monospace; display: inline-block;">depth_scale</code>: Controls the strength of the 3D effect (default: 40). Higher values create more pronounced depth but at the cost of tearing and artefacts.</div></div><div style="font-size: 0.8em"><div style="margin-bottom: 8px; margin-left: 20px; font-size: 12px;">- <code style="border: 1px solid #666; border-radius: 3px; padding: 0px 1px; font-family: monospace; display: inline-block;">mode</code>: Viewing mode:</div></div><div style="font-size: 0.8em"><div style="margin-bottom: 8px; margin-left: 40px; font-size: 12px;"> - parallel: For parallel viewing (left eye sees left image, right sees right image).</div></div><div style="font-size: 0.8em"><div style="margin-bottom: 8px; margin-left: 40px; font-size: 12px;"> - cross_eyed: For cross-eyed viewing (left eye sees right image and vice versa).</div></div><div style="font-size: 0.8em"><div style="margin-bottom: 8px; margin-left: 40px; font-size: 12px;"> - For more info about parallel vs cross-eyed <a href='https://www.ks.uiuc.edu/Research/vmd/vmd-1.7.1/ug/node97.html#:~:text=In%20cross%2Deyed%20stereo%2C%20the,hence%20the%20name%20cross%2Deyed.' target='_blank'>visit here.</a></div></div><div style="font-size: 0.8em"><div style="margin-bottom: 8px; margin-left: 20px; font-size: 12px;">- <code style="border: 1px solid #666; border-radius: 3px; padding: 0px 1px; font-family: monospace; display: inline-block;">depth_blur_strength</code>: Controls how much to blur the depth map transitions (3-33, odd values only)</div></div><div style="font-size: 0.8em"><div style="margin-bottom: 8px; margin-left: 40px; font-size: 12px;"> - Lower values for sharper depth separation between objects or layers.</div></div><div style="font-size: 0.8em"><div style="margin-bottom: 8px; margin-left: 40px; font-size: 12px;"> - Higher values for smoother transitions between depth planes, though this may introduce some distortion in some images.</div></div><div style="font-size: 0.8em"><div style="margin-bottom: 8px; margin-left: 0px; font-size: 12px;">Output:</div></div><div style="font-size: 0.8em"><div style="margin-bottom: 8px; margin-left: 20px; font-size: 12px;">- A side-by-side stereoscopic image with twice the width of the original image.</div></div>

Pack: ComfyUI-Y7-SBS-2Dto3D

custom_nodes.ComfyUI-Y7-SBS-2Dto3D

Inputs (7)

NameTypeRequired
base_imageIMAGErequired
depth_mapIMAGErequired
methodCOMBOrequired
depth_scaleINTrequired
modeCOMBOrequired
output_typeCOMBOrequired
depth_blur_strengthINTrequired

Outputs (1)

NameType
IMAGEIMAGE