Skip to content
,

MoGe 3 in ComfyUI: Depth Maps, Normal Maps and 3D Mesh from One Photo

7–10 minutes
Woman in a home lab with a PC tower holding a tablet with a MOGE 3 card, hook depth plus normals from one photo

Need a depth map, a normal map or even a rough 3D mesh from a single photo? MoGe 3 does all three, and ComfyUI runs it natively with no custom nodes.

MoGe (Monocular Geometry estimation) comes from Microsoft. Version 3 adds a sparse volumetric refinement step that keeps thin structures and sharp depth edges that older depth models blur. Comfy’s official template, “Geometry Estimation: MoGe 3”, downloads about 2.5 GB and runs on modest GPUs.

This guide covers the two model files, every MoGe node and setting from ComfyUI’s source code, how to get depth, normals, masks, field of view and meshes, and how MoGe is already used inside other ComfyUI workflows.

All details are checked against ComfyUI’s source (comfy_extras/nodes_moge.py) and the official template, as of December 2026.

TL;DR

  • Template: Templates, search “MoGe 3”. Native nodes only.
  • Models: moge_3_vitl_fp16.safetensors (706 MB) or moge_3_vitg_fp16.safetensors (2.33 GB, more fine detail) in models/geometry_estimation/.
  • Outputs: depth, coloured depth, OpenGL or DirectX normal maps, a mask, the camera field of view and a textured 3D mesh.
  • Key settings: resolution_level 9 (most detail) and refine_steps 3 (MoGe 3 only).
  • Also does panoramas with a separate 360-degree node.

New to ComfyUI? Start with my ComfyUI guide for the basics of nodes, models and workflows.

What MoGe 3 Does

Most depth models output a flat greyscale picture where brighter means closer. MoGe goes further: it predicts a full 3D point map, meaning a 3D position for every pixel, plus the camera’s field of view. Depth maps, normal maps and meshes are all worked out from that.

The template describes MoGe 3 as “the sparse-volumetric refinement version of MoGe”. It “lifts a coarse point map onto a sparse voxel shell and refines depth with lightweight sparse 3D convolutions, keeping thin structures and depth discontinuities that image-space decoders blur.”

In plain terms: fences, plant stems, chair legs and the edges between a person and the background come out cleaner.

What you can do with it:

  • Depth maps for ControlNet and depth-guided video, like the LTX Union Control workflow.
  • Normal maps for relighting, 3D texturing and game assets.
  • Masks that separate valid geometry from sky or empty areas.
  • Camera field of view, which other nodes like SAM 3D Body use for correct scale.
  • 3D meshes straight from a photo, exported as GLB.

Model Files and Folders

File Size Notes
moge_3_vitl_fp16.safetensors 706.3 MB ViT-L. Lighter and faster.
moge_3_vitg_fp16.safetensors 2.33 GB ViT-G. “Higher fine-detail accuracy”. The template loads this one.

Both go in:

ComfyUI/models/geometry_estimation/

They come from the Comfy-Org/MoGe repo on Hugging Face, with a ModelScope mirror. You only need one. The same folder can also hold older MoGe 2 files, such as moge_2_vitl_normal_fp16.safetensors, which several other templates use.

The template’s total download is about 2.5 GB. MoGe is one of the lightest models in ComfyUI, and it should run on most modern GPUs. Lower batch_size if you process many images at once.

Run the Official Template

  1. Update ComfyUI. Open Templates and search MoGe 3.
  2. Download the model and press R.
  3. Load your image in Load Image. The example is cosmic_suitcase.png.
  4. Click Run.
  5. Check the previews: a depth map and a normal map, with a compare slider.

The template wraps the MoGe nodes in a subgraph. It runs Load MoGe Model, then Run MoGe Inference (resolution level 9, field of view auto, batch 4, mask on, refine steps 3), then Render MoGe Geometry for each output.

Every MoGe Node and Setting

Load MoGe Model

Pick any file from models/geometry_estimation. ViT-L and ViT-G MoGe 3 files both appear in the same dropdown.

Run MoGe Inference

Input Default What it does (from the tooltips)
resolution_level 9 0 is fastest, 9 is most detail
fov_x_degrees 0 Horizontal field of view of the source camera. 0 auto-recovers it from the predicted points.
batch_size 4 Images per inference call. Lower it if you run out of memory on a long video or image set.
force_projection On Advanced option
apply_mask On Sets sky and invalid pixels to infinity so meshing removes them. The mask is still returned separately.
refine_steps 3 MoGe 3 only. Sparse volumetric refinement passes. More sharpens fine detail and edges “at a roughly linear cost”. 0 turns it off. Ignored by MoGe 1 and 2.

It works on image batches, so you can feed it video frames too.

Run MoGe Panorama Inference

For 360-degree equirectangular panoramas. It splits the panorama into 12 perspective views, runs MoGe on each and merges them.

  • resolution_level 9, split_resolution 512, merge_resolution 1920 (long side of the merged distance map), batch_size 4 (views per batch), refine_steps 3.

Render MoGe Geometry

Turns the geometry into an image. The output options are depth, depth_colored, normal_opengl, normal_directx and mask.

Convert MoGe Point Map to Mesh

Builds a 3D mesh from the point map. Details are in the mesh section below.

Get FoV from MoGe Geometry

Outputs the field of view as a number (vertical, horizontal or diagonal; degrees or radians) and the focal length in pixels. Feed it into nodes that need a camera FOV.

Depth, Normals, Mask: Which Output to Use

Output Looks like Use it for
depth Greyscale distance map Depth ControlNets, depth-guided video, depth of field effects
depth_colored Colour-mapped depth Checking results by eye, presentations
normal_opengl Purple-blue normal map, green up Blender, Substance, Unity, glTF
normal_directx Normal map, green down Unreal Engine
mask Black and white Cutting out sky or empty space, compositing

The source code explains the normal map choice: “DirectX: green = -Y down (Unreal). OpenGL: green = +Y up (Blender, Substance, Unity, glTF).” Picking the wrong one makes bumps look like dents.

For depth-guided AI video, the depth output feeds straight into the LTX-2.3 Union Control workflow, which already uses MoGe by default. See my LTX ControlNet guide.

Turn a Photo into a 3D Mesh

Connect Run MoGe Inference to Convert MoGe Point Map to Mesh, then save the result with a 3D save node.

Input Default What it does
batch_index 0 Which image in a batch to mesh
decimation 1 Vertex stride. 1 is full resolution; higher makes a lighter mesh.
discontinuity_threshold 0.04 Drops pixels where depth jumps sharply, which removes stretched “curtains” between foreground and background. 0 turns it off.
texture On Uses the source photo as the mesh’s colour texture

The result is a 2.5D mesh: it shows what the camera saw, not the hidden back of objects. It’s perfect for parallax effects, scene blocking and quick 3D previews.

For full 360-degree objects, use an image-to-3D model instead, such as the one in my Hunyuan3D in ComfyUI guide.

Four Practical MoGe Recipes

1. Depth map for a ControlNet image

Load a photo, run MoGe Inference, then Render MoGe Geometry set to depth. Feed that image into a depth ControlNet with a new prompt. The layout and distances of the photo stay, while the style, colours and subject can change completely.

2. Normal map for a game texture

Photograph a flat surface such as a brick wall, bark or fabric, straight on and in even light. Render normal_opengl for Blender or Unity, or normal_directx for Unreal. Use it alongside the photo as a simple material.

3. Parallax “3D photo” for social posts

Convert the point map to a mesh with texture on and a small discontinuity threshold, then save it as GLB. In Blender, put a camera in front and animate a slow sideways move. The foreground shifts against the background, giving the popular 3D photo effect.

4. Correct camera for other 3D nodes

Connect Get FoV from MoGe Geometry to any node with a field-of-view input. SAM 3D Body uses exactly this to get body scale and depth right. See my SAM 3D Body guide.

MoGe 3 vs Depth Anything 3

MoGe 3 Depth Anything 3
Main output 3D point map plus camera FOV Depth (and more, in its larger variants)
Normals Built in, OpenGL or DirectX Not its focus
Meshes Built-in point-map-to-mesh node Needs extra steps
Fine edges Sparse 3D refinement for thin structures Strong general depth
In ComfyUI Native Native

Both are good. Choose MoGe when you need normals, a mesh, or the camera’s field of view. For a quick depth map for ControlNet, either works. My Depth Anything 3 guide covers the other one.

Common Problems and Fixes

Problem Cause Fix
Model not in the dropdown Wrong folder Put it in models/geometry_estimation/ and press R
Bumps look like dents in Unreal OpenGL normals Use normal_directx for Unreal
Stretched walls in the mesh Depth jumps at edges Raise discontinuity_threshold a little
Sky turns into a wall Mask off Keep apply_mask on
Soft fine detail Refinement off or low resolution refine_steps 3 or more, resolution_level 9, ViT-G model
Out of memory on a video Too many frames per call Lower batch_size
Wrong scale in other 3D nodes FOV guessed by downstream node Feed Get FoV from MoGe Geometry into it

FAQ

What is MoGe?

MoGe is a monocular geometry model from Microsoft. From one image it predicts a 3D point for every pixel, plus the camera field of view.

Do I need custom nodes for MoGe in ComfyUI?

No. MoGe support is built into ComfyUI. Update ComfyUI and open the template.

Which MoGe 3 file should I download?

ViT-G (2.33 GB) for the most detail, or ViT-L (706 MB) for speed and lower memory.

Can MoGe make normal maps?

Yes. Render MoGe Geometry outputs OpenGL or DirectX normal maps.

Can it turn a photo into a 3D model?

It makes a textured 2.5D mesh of what the camera sees. Hidden sides are not filled in.

Does it work on video?

Yes. The inference node accepts image batches, so you can feed it video frames.

What does refine_steps do?

It runs MoGe 3’s sparse volumetric refinement. More passes sharpen edges and thin details, at a cost that grows roughly in line with the number of passes.

Sources

  • ComfyUI source: comfy_extras/nodes_moge.py (all MoGe nodes, inputs and tooltips)
  • Comfy-Org workflow template: utility_moge3_geometry_estimation (description, defaults, model notes)
  • Comfy-Org/MoGe on Hugging Face
Free weekly email

Get new AI guides every week

One short weekly email with our newest local AI, ComfyUI and AI tool guides. No spam, no pop-ups, just the good stuff.

Free. Unsubscribe anytime in one click. We only use your email to send this newsletter. See our privacy policy.

Woman in a home lab with a PC tower holding a tablet with a MOGE 3 card, hook depth plus normals from one photo