Oink
Nodes

AINormals

AINormals: Analyze runs MoGe-2 (MIT) per frame: N layer = normals in camera space (X right, Y up, +Z to camera), or world space when a camera is connected to cam.

raw .md

AINormals: Analyze runs MoGe-2 (MIT) per frame: N layer = normals in camera space (X right, Y up, +Z to camera), or world space when a camera is connected to cam. Optional depth layer (per frame, not temporally smoothed). The model is picked for you (the smaller, faster MoGe-2 ViT-B by default; the larger ViT-L when you choose it). The lens comes from Known FOV, a connected camera, the plate's metadata, or an estimate.

NodeAINormals
Type idOC_N_ainormals
MenuAI › AINormals
Nuke classnone: saved in .nk files as an Oink node
Codeopencomp_core/nodes/ai/aidepth.py

AINormals properties

Inputs and outputs

PortNameType
input 0Imageimage
input 1camscene
output 0Imageimage

Knobs

Panel tab Ainormals, in panel order.

KnobLabelTypeDefaultRange / valuesNuke knobDescription
output_depthdepth layerboolfalseAlso output MoGe-2's per-frame depth (1/Z)
encodeinputmenusrgbsrgb (scene linear), none (display)
analysis_widthanalysis sizefloat1036256 to 2048 (integer)Long side of the frames sent to the model (px)
fov_modefield of viewmenuestimateestimate, known
known_fovknown FOVfloat501 to 179
haperturehoriz aperturefloat24.5760.1 to 100Film back width (mm) for the focal readout / Create Camera
spatial_sigmaupsample spatialfloat10.1 to 4Joint bilateral spatial sigma (model pixels)
range_sigmaupsample edgefloat0.080.005 to 2Joint bilateral range sigma (plate colour, lower = sharper edges)
keep_other_frameskeep other framesboolfalseAnalyze keeps results of frames outside the new range
keep_loadedkeep model loadedboolfalseLeave the models in VRAM after Analyze (faster re-runs)

Other knobs (Python, .nk and the assistant; not on the panel)

KnobLabelTypeDefaultRange / valuesNuke knobDescription
gl_colorViewer Controls Colorfloat ×30, 0, 00 to 1
postage_stamp_frameStatic Frameint1-2147483648 to 2147483647
lifetimeStartLifetime Startint0-2147483648 to 2147483647
lifetimeEndLifetime Endint100-2147483648 to 2147483647
useLifetimeUse Lifetimebooleanfalse
cachedCachedbooleanfalse
bookmarkBookmarkbooleanfalse
dope_sheetDope Sheetbooleanfalse
clone_groupClone Groupstring
link_sourceLink Sourcestring
link_overridesLink Overridesstring
split_viewsSplit Viewsstring
moge_modelModelenumAUTOAUTO, VITL, VITBGeometry model (metric depth, field of view, normals); licence tier: optional / bundled
results_dataResultsstring{}
fov_xFOV X (deg)float0-3.4028234663852886e+38 to 3.4028234663852886e+38
fov_yFOV Y (deg)float0-3.4028234663852886e+38 to 3.4028234663852886e+38
focalFocal (mm)float0-3.4028234663852886e+38 to 3.4028234663852886e+38
analysed_firstAnalysed Firstint0-2147483648 to 2147483647
analysed_lastAnalysed Lastint-1-2147483648 to 2147483647

Nuke equivalent

No Nuke class. In a .nk file this node is written as an Oink node that Nuke will not recognise.

On this page