render_shaded — 3D render op

Data kinds: normalmapimage2d

Call: import fullseye as fs; fs.ledger.render_shaded(normals_img, light=(0, 0, 1), ambient=0.1) (to call the implementation directly, import match3d; match3d.render_shaded(normals_img, light=(0, 0, 1), ambient=0.1); from the registry, ops3d.get("render_shaded"))

Usage

Normal map (H,W,3) + light direction → a Lambertian shaded image (appearance-sample generation, the bridge to optics).

> The detailed description below is the original text — the summary and the headings are translated.

`I = ambient + (1 − ambient)·clip(n·L̂, 0, 1)(H, W)` float64、値域 [0, 1] で返す。

`light` は内部で単位化する(零ベクトルは 0 除算で NaN)が、法線は単位化しない(単位法線を

渡す。`estimate_point_normals / normals_from_depth` の出力は単位)。法線の成分順と

`light の成分順は揃える(既定 (0,0,1)` は第 3 成分=カメラ向きを正面光とする規約)。

光源と反対を向く面は `ambient の値になる。最後の軸を法線とみなすので (N,3)` の点ごとの

法線でも動く。鏡面ハイライトは無い(`fresnel_reflectance / reflect` で別途)。

用途: `photometric_stereo` の検算(法線 → 画像の順方向)、外観検査の合成サンプル。

Background guides (the physics and conventions behind this op)

blender_interop — Blender との併用 — 形を作って fullseye で測る(軸・単位・正解データの罠)

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

Runnable examples (verified samples that actually call this op)

render_aopy -3.11 examples_3d/render_ao.py

Ops the type connects to (they accept image2d as input)

fuse_to_voxel · fit_poly_surface · eval_poly_surface · surface_form_error · background_flatten · polar_unwrap · fit_zernike · matcap_shade

Same category (render)

project_points · render_point_depth · render_volume_projection · ambient_occlusion · cast_shadow · phong_shade · matcap_shade · supersample_mesh


*Provenance: match3d.py — 3D operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.