/graphics-and-vision:gfx-referencefrom graphics-and-vision
Reference for graphics and vision anti-patterns, numerical lookups (resolution, precision, throughput), 3D Gaussian splatting, vision foundation models, method selection, and image debugging checklists.
Ships in graphics-and-vision. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Part 5 of 5 of the Graphics and Vision reference (plugin
graphics-and-vision), covering §14–§19. Sibling skills:gfx-transforms-rasterization-and-rendering(§0–§4),gfx-gpu-real-time-techniques-and-colour(§5–§7),gfx-image-formation-classical-vision-and-geometry(§8–§10),gfx-deep-learning-neural-rendering-and-performance(§11–§13). Section numbers are shared across the set; a reference written as §N →skillpoints into that sibling skill.Currency: The mathematics is permanent — projective geometry, the rendering equation, epipolar geometry. Neural rendering and vision foundation models moved. See §16 below for those.
Why one document. ⚠️ They are inverse problems over the same geometry. Graphics goes scene → image; vision goes image → scene. They share the camera model, projective geometry, and increasingly the representations — §12 →
gfx-deep-learning-neural-rendering-and-performanceis where they now meet directly.⚠️ GOTCHA boxes mark where the math is subtle or the standard implementation is silently wrong.
The three ideas that unify the whole document:
- ⚠️ Homogeneous coordinates make projection linear. Adding a fourth component turns perspective — a nonlinear operation — into a matrix multiply, which is why the entire pipeline is matrices (§1 →
gfx-transforms-rasterization-and-rendering).- ⚠️ Rendering is an integral, and everything real-time is a sampling strategy for it. The rendering equation is the ground truth; rasterization, path tracing, and every approximation in §6 →
gfx-gpu-real-time-techniques-and-colourare ways of estimating it under a time budget (§4 →gfx-transforms-rasterization-and-rendering).- ⚠️ Vision is underdetermined and that is not a solvable bug. A single image is a projection; depth is destroyed. Every vision method is adding a constraint — multiple views, motion, a learned prior — to recover what the projection threw away (§8 →
gfx-image-formation-classical-vision-and-geometry, §10 →gfx-image-formation-classical-vision-and-geometry).
| Anti-pattern | Why |
|---|---|
| Transforming normals by the model matrix | ⚠️ Use the inverse transpose (§1 → gfx-transforms-rasterization-and-rendering) |
| Euler angles for interpolation or accumulation | Gimbal lock, drift (§1 → gfx-transforms-rasterization-and-rendering) |
| Lighting or blending in sRGB space | ⚠️ The most common correctness bug in graphics (§7 → gfx-gpu-real-time-techniques-and-colour) |
| Screen-space linear interpolation of attributes | ⚠️ Must be perspective-correct (§2 → gfx-transforms-rasterization-and-rendering) |
| Near plane at 0.001 to "be safe" | ⚠️ Destroys depth precision. Z-fighting follows (§2 → gfx-transforms-rasterization-and-rendering) |
Fragment shader writing depth or using discard unnecessarily | ⚠️ Kills early-Z silently (§2 → gfx-transforms-rasterization-and-rendering) |
| Disabling mipmaps for sharpness | ⚠️ They're antialiasing, not an optimization (§2 → gfx-transforms-rasterization-and-rendering) |
| Intermediate metallic values | Physically meaningless (§3 → gfx-transforms-rasterization-and-rendering) |
| Constant shadow bias | ⚠️ Acne or peter-panning. Use normal-offset (§6 → gfx-gpu-real-time-techniques-and-colour) |
| Expecting SSR to reflect off-screen geometry | ⚠️ Inherent limitation, not a bug (§6 → gfx-gpu-real-time-techniques-and-colour) |
| Assuming hardware RT makes path tracing free | It accelerates queries; sampling still dominates (§4 → gfx-transforms-rasterization-and-rendering) |
| Branching on non-uniform values in a hot shader | ⚠️ Warp divergence executes both paths (§5 → gfx-gpu-real-time-techniques-and-colour) |
| Ignoring Vulkan/D3D12 validation layers | ⚠️ Barrier races appear on one vendor only (§5 → gfx-gpu-real-time-techniques-and-colour) |
| Calibrating with a board that never tilts | ⚠️ Focal length and distance stay unseparable (§8 → gfx-image-formation-classical-vision-and-geometry) |
| Calibration target that misses the image corners | Distortion goes unconstrained (§8 → gfx-image-formation-classical-vision-and-geometry) |
| Polynomial radial distortion on a fisheye | ⚠️ Wrong model entirely (§8 → gfx-image-formation-classical-vision-and-geometry) |
| Unnormalized 8-point algorithm | ⚠️ Numerically terrible. Hartley-normalize (§10 → gfx-image-formation-classical-vision-and-geometry) |
| Expecting absolute scale from a monocular sequence | ⚠️ Inherent ambiguity (§10 → gfx-image-formation-classical-vision-and-geometry) |
| Feature matching without RANSAC | Outliers are guaranteed (§9 → gfx-image-formation-classical-vision-and-geometry) |
| Stereo depth quoted without stating range | ⚠️ Error grows with distance squared (§10 → gfx-image-formation-classical-vision-and-geometry) |
| Augmentation that breaks task invariance | ⚠️ Silently caps your ceiling (§11 → gfx-deep-learning-neural-rendering-and-performance) |
| Reporting test-set accuracy as deployment performance | ⚠️ Domain shift is where vision fails (§11 → gfx-deep-learning-neural-rendering-and-performance) |
| Optimizing the model before profiling the pipeline | ⚠️ Decode and resize are often the bottleneck (§13 → gfx-deep-learning-neural-rendering-and-performance) |
| Expecting clean meshes or relighting from 3DGS | Both are open problems (§12 → gfx-deep-learning-neural-rendering-and-performance) |
FRAME BUDGETS
60 fps = 16.6 ms · 120 fps = 8.3 ms · ⚠️ VR 90 Hz ≈ 11 ms per eye
GPU warp/wavefront: 32 (NVIDIA) · 32/64 (AMD)
MATH
Homogeneous: position w=1, direction w=0
⚠️ Normals: inverse transpose · Quaternion: q and −q are the same rotation
NDC depth: OpenGL [−1,1] · D3D/Vulkan/Metal [0,1]
Monte Carlo variance ~1/√N ⚠️ (4× samples to halve noise)
SH: 9 coefficients ≈ diffuse environment lighting
PBR
Dielectric F0 ≈ 0.04 (4%) · Metals: no diffuse, tinted specular
GGX/Trowbridge-Reitz for D · Schlick for F · Smith for G
VISION
⚠️ Stereo depth error ∝ Z² · Z = f·B/d
Essential matrix: 5 DOF, t up to scale, 4 candidate decompositions
⚠️ Shot noise is Poisson — SNR ∝ √signal
Bayer: 2 green per 1 red, 1 blue
NEURAL RENDERING (§16.1 for verification)
NeRF ~5 fps, hours to train · 3DGS 100+ fps, minutes to train
Quality both ~25–33 dB PSNR
⚠️ Everything in §1–§11 → gfx-transforms-rasterization-and-rendering, gfx-gpu-real-time-techniques-and-colour, gfx-image-formation-classical-vision-and-geometry, gfx-deep-learning-neural-rendering-and-performance is stable. These two areas are not.
KHR_gaussian_splatting
extension. ⚠️ A representation getting into the interchange standards is what
separates a technique from a research result.⚠️ GOTCHA — two cautions on the numbers above. The fps and PSNR comparisons come from a commercial 3D-scanning site, and while they are consistent with the original paper's claims and the broad literature, ⚠️ they are marketing-adjacent and vary enormously with scene, resolution and hardware. Treat them as order-of-magnitude. And "3DGS replaced NeRF" is too strong: ⚠️ NeRF-family methods remain competitive where the scene is small and quality matters more than speed, and much 3DGS research still benchmarks against Mip-NeRF 360. The right claim is that 3DGS won the real-time and production niche decisively.
⚠️ The structural change: task-specific models trained on narrow datasets have been substantially displaced by large pretrained backbones you prompt, adapt, or distil.
The current landscape (August 2026):
⚠️ What this does NOT mean. Classical CV (§9 → gfx-image-formation-classical-vision-and-geometry) and multiple view geometry (§10 → gfx-image-formation-classical-vision-and-geometry) are
not obsolete — ⚠️ calibration, epipolar geometry, RANSAC, bundle adjustment and
optical flow remain the correct tools, and a foundation model does not give you metric
3D. The honest framing is that recognition and segmentation were substantially
absorbed by foundation models; geometry was not.
⚠️ Sourcing caveat: much of the model-landscape detail above comes from Roboflow's comparison posts and similar vendor blogs, which are competent and current but are commercially interested in the tooling ecosystem. The SAM 3 architecture claims trace to the paper and to independent research using it; the model rankings should be read as orientation, not evaluation.
| Author | Work | Why |
|---|---|---|
| Akenine-Möller, Haines & Hoffman | Real-Time Rendering (4th ed.) | ⚠️ The graphics reference. Nothing else is close |
| Pharr, Jakob & Humphreys | Physically Based Rendering | ⚠️ Free online, and it IS the path tracer. Won a Sci-Tech Oscar |
| Shirley | Ray Tracing in One Weekend series | ⚠️ Free. The best possible starting point |
| Hughes et al. | Computer Graphics: Principles and Practice | The classic foundation |
| Hartley & Zisserman | Multiple View Geometry in Computer Vision | ⚠️ §10 → gfx-image-formation-classical-vision-and-geometry is this book. The definitive text |
| Szeliski | Computer Vision: Algorithms and Applications | ⚠️ Free online. The broad modern survey |
| Forsyth & Ponce | Computer Vision: A Modern Approach | The other standard text |
| Prince | Understanding Deep Learning | ⚠️ Free, and the best-written modern DL book |
| Gortler | Foundations of 3D Computer Graphics | ⚠️ Excellent on §1 → gfx-transforms-rasterization-and-rendering's transform conventions |
| Marschner & Shirley | Fundamentals of Computer Graphics | Course-standard |
Practical: LearnOpenGL (⚠️ the best free graphics tutorial series), Vulkan Tutorial and vkguide, WebGPU Fundamentals, Shadertoy, Íñigo Quílez's articles (⚠️ SDFs and raymarching, from a master), scratchapixel, GPU Gems / GPU Zen / Ray Tracing Gems (much free), SIGGRAPH course notes (⚠️ the real state of the art in real-time rendering, and free), OpenCV docs, COLMAP, Nerfstudio, PyTorch3D, Kornia, and papers with code / CVPR-ICCV-ECCV proceedings.
| Need | Use |
|---|---|
| Rotation storage and interpolation | ⚠️ Quaternions (§1 → gfx-transforms-rasterization-and-rendering) |
| Rotation optimization | ⚠️ Lie algebra (SO(3)/SE(3)) (§1 → gfx-transforms-rasterization-and-rendering) |
| Many dynamic lights | Deferred or clustered forward (§6 → gfx-gpu-real-time-techniques-and-colour) |
| Geometric edge antialiasing only | MSAA (§6 → gfx-gpu-real-time-techniques-and-colour) |
| Modern AA + upscaling | ⚠️ TAA-based (DLSS/FSR/XeSS) (§6 → gfx-gpu-real-time-techniques-and-colour) |
| Ground-truth quality, offline | Path tracing (§4 → gfx-transforms-rasterization-and-rendering) |
| Cheap ambient occlusion | GTAO (§6 → gfx-gpu-real-time-techniques-and-colour) |
| Reflections including off-screen | ⚠️ Not SSR — needs RT or probes (§6 → gfx-gpu-real-time-techniques-and-colour) |
| Learn a modern graphics API first | ⚠️ WebGPU (§5 → gfx-gpu-real-time-techniques-and-colour) |
| Camera pose from a known 3D model | PnP + RANSAC (§9 → gfx-image-formation-classical-vision-and-geometry, §10 → gfx-image-formation-classical-vision-and-geometry) |
| Two-view geometry, calibrated | 5-point essential matrix (§10 → gfx-image-formation-classical-vision-and-geometry) |
| Refine a whole reconstruction | ⚠️ Bundle adjustment (Ceres/g2o) (§10 → gfx-image-formation-classical-vision-and-geometry) |
| Real-time camera tracking | ORB-SLAM3, or ⚠️ VIO if you have an IMU (§10 → gfx-image-formation-classical-vision-and-geometry) |
| Metric scale from one camera | ⚠️ Impossible without a prior — add IMU/stereo/known size (§10 → gfx-image-formation-classical-vision-and-geometry) |
| Photorealistic capture → real-time render | ⚠️ 3DGS (§12 → gfx-deep-learning-neural-rendering-and-performance, §16.1) |
| Segment anything by text prompt | SAM 3, or Grounded-SAM (§16.2) |
| Strong features, few labels | DINOv3 (§16.2) |
| Fast open-vocab detection, no masks | YOLO-World (§16.2) |
| Ship on edge hardware | ⚠️ Distil a foundation model into a small student (§16.2) |
gfx-gpu-real-time-techniques-and-colour)gfx-transforms-rasterization-and-rendering)gfx-transforms-rasterization-and-rendering)gfx-transforms-rasterization-and-rendering)gfx-gpu-real-time-techniques-and-colour)gfx-gpu-real-time-techniques-and-colour)gfx-gpu-real-time-techniques-and-colour)gfx-image-formation-classical-vision-and-geometry)gfx-image-formation-classical-vision-and-geometry)gfx-deep-learning-neural-rendering-and-performance)§1–§15 → gfx-transforms-rasterization-and-rendering, gfx-gpu-real-time-techniques-and-colour, gfx-image-formation-classical-vision-and-geometry, gfx-deep-learning-neural-rendering-and-performance rest on permanent material — projective geometry, Kajiya's rendering equation
(1986), microfacet theory, epipolar geometry, and the classical CV algorithms — sourced
from the references in §17, chiefly Real-Time Rendering, PBRT, Hartley &
Zisserman, and Szeliski. ⚠️ None of it needed web verification, and §19's whole
point is that the ratio of permanent to perishable in this field is very high — the
frontier moves fast, the foundations do not.
Two searches were run in August 2026, confined to the two genuinely moving areas: neural rendering and vision foundation models. ⚠️ Both are quarantined in §16 so the rest of the document doesn't rot around them.
Confidence. High in §1–§15 → gfx-transforms-rasterization-and-rendering, gfx-gpu-real-time-techniques-and-colour, gfx-image-formation-classical-vision-and-geometry, gfx-deep-learning-neural-rendering-and-performance: standard mathematics and long-established technique,
with the subtleties (normal matrices, Hartley normalization, perspective-correct
interpolation, warp divergence, linear-vs-sRGB) stated because ⚠️ those are precisely
where correct-looking implementations are silently wrong.
High in §12 → gfx-deep-learning-neural-rendering-and-performance and §16.1's technical content — the 3DGS description traces to the
original SIGGRAPH 2023 paper and Inria's project page: anisotropic covariance
optimization, interleaved density control, visibility-aware differentiable rasterization,
and SfM initialization are all as the authors describe them. ⚠️ The observation that
3DGS is explicit rather than neural, and descends from EWA splatting (2002), is my
framing, and I think it's the single most clarifying thing to understand about it.
⚠️ Three hedges, all flagged in place. The 3DGS-vs-NeRF performance figures come from a commercial 3D-scanning site — consistent with the literature, but marketing- adjacent and hugely scene- and hardware-dependent. The OpenUSD and glTF standardization claims come from the same source and I have marked the OpenUSD date as reported; ⚠️ verify against Khronos and the OpenUSD project before relying on it. And §16.2's model landscape leans on Roboflow's comparison posts and similar vendor blogs — current and competent, but commercially interested. The SAM 3 capability claims trace to the paper and to independent research papers using it, which is stronger evidence than the rankings.
⚠️ One judgement I'll state plainly: the framing in §16.2 that recognition and segmentation were substantially absorbed by foundation models while geometry was not is my assessment. I think it's well-supported — the 2026 literature still runs SfM, bundle adjustment and RANSAC underneath the learned components — but it is an interpretation, not a citation.
What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/gfx-deep-learning-neural-rendering-and-performanceUse when applying learned methods or profiling a pipeline: deep learning for vision including detection, segmentation, backbones and the training realities; neural rendering where graphics and vision meet, covering NeRF, 3D Gaussian splatting and their trade-offs; and performance — profiling, bottleneck analysis, and the memory and bandwidth limits that dominate in practice./gfx-gpu-real-time-techniques-and-colourUse when making rendering run fast and look right: GPU architecture and the modern APIs and their execution model, real-time techniques including shadows, ambient occlusion, deferred and forward rendering, temporal methods and upscaling, and colour and tone mapping — colour spaces, transfer functions, HDR and the display pipeline.Other plugins' skills for the same job
/gfx-image-formation-classical-vision-and-geometryUse when recovering information from images: image formation and camera calibration including lens models, intrinsics, extrinsics and distortion; classical computer vision — filtering, edges, features, descriptors, matching and segmentation; and multiple view geometry with epipolar geometry, the fundamental and essential matrices, triangulation, structure from motion and bundle adjustment.npx claudepluginhub the-vibey-project/vibey --plugin graphics-and-vision