Nodes/anaglyphTool-Comfyui/Cross-Eye 3D Tool (CUDA)
ComfyUI Node

Cross-Eye 3D Tool (CUDA)

Cross-eye stereo from a depth map

By Cryptyox·Created about a year ago·Updated 6 months ago· 9
Cross-Eye 3D Tool (CUDA)
  • image
  • depthmap
  • IMAGE
invert_depthmaptrue
divergence2.0
zero_parallax_depth0.50

CrossEyeTool is AnaglyphTool's glasses-free sibling, and it exists because people asked for it. When the pack's author announced the anaglyph node on r/comfyui, one of the top comments was basically "could it also output a side-by-side L/R image?" - so you could view it in a stereoscope without the red-cyan color shift. He shipped it as a second node.

It takes the same two inputs as AnaglyphTool - an image and a depth map - and returns one wide side-by-side image: the right-eye view on the left half, the left-eye view on the right half. You fuse it by crossing your eyes (left eye looks at the right panel, right eye at the left), and a full-color 3D scene locks in. No glasses at all.

When to reach for it

Red-cyan anaglyphs work, but they're color-filtered by design - everything carries a red/cyan cast. Cross-eye gives you the true scene colors, which makes it much better for actually judging a depth map, or for 3D you want to share on a phone or in a stereoscope. It's also a different viewing experience: with anaglyph the glasses do the color filtering, with cross-eye your brain does all the work.

How it works

The engine is identical to AnaglyphTool - normalize the depth map, optional invert, compute a per-pixel horizontal shift from divergence and zero_parallax_depth, warp two views with bilinear grid_sample. The only difference is the combine step: instead of mixing red and cyan channels, it concatenates the two warped views along the width. Same inputs, same two knobs:

  • divergence (−10 to 10, default 2) - separation strength. Too high and fusion gets hard.
  • zero_parallax_depth (0 to 1, default 0.5) - where the screen plane sits.
  • invert_depthmap (default true) - flip it if the scene looks inside-out.

Output is a single IMAGE that's twice as wide as the input. That matters if you're batching frames into video - the wide frame flows through SaveImage fine, but don't force it back to the original aspect ratio or you'll squash the stereo.

Installation

Same pack, same story as AnaglyphTool. ComfyUI Manager → search "anaglyph" (anaglyphTool-Comfyui), or:

cd ComfyUI/custom_nodes
git clone https://github.com/Cryptyox/anaglyphTool-Comfyui
pip install -r requirements.txt

torch is the only dependency and nothing gets downloaded - you bring your own depth map. Restart and CrossEyeTool appears under ImageProcessing/GPU/Stereo.

Troubleshooting

  • Can't fuse the two panels - that's the technique, not the node. Start with a small divergence (1–2), stare at the seam between the panels, and let your eyes relax. Eye strain after a while is normal; take a break.
  • Inside-out or flat - invert_depthmap and divergence, same as the anaglyph node.
  • Want separate L/R images - this node only outputs the combined side-by-side. The author mentioned individual L/R outputs were being worked on but had issues, so don't count on two separate outputs yet.
  • Expects CUDA - like its sibling it forces the GPU, and the CPU path is barely maintained. Don't bother trying to run it fast on CPU.
CategoryImageProcessing/GPU/Stereo

Inputs (5)

NameTypeDefaultDescription
imageIMAGE
depthmapIMAGE
invert_depthmapBOOLEANtrue
divergenceFLOAT2.0-10–10
zero_parallax_depthFLOAT0.500–1

Outputs (1)

NameTypeDescription
IMAGEIMAGE