geometry-mesh-stitching-normals

Eliminate seams and normal discontinuities in chunked terrain rendering.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/gregoryraymond/claude-agents-and-skills --skill geometry-mesh-stitching-normals
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: geometry-mesh-stitching-normals
Source: https://github.com/gregoryraymond/claude-agents-and-skills/tree/main/skills/geometry-mesh-stitching-normals
Command: npx skills add https://github.com/gregoryraymond/claude-agents-and-skills --skill geometry-mesh-stitching-normals

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reference guide to eliminating seams and normal discontinuities in chunked terrain rendering by detailing stitching, boundary consistency, and correct normal calculation across LOD transitions.

Core Features & Use Cases

  • Vertex welding rules to ensure bit-identical boundary attributes across chunks.
  • Cross-boundary vertex duplication to preserve topology when edges are shared.
  • Skirt technique to hide gaps at chunk boundaries and coastlines.
  • Geomorphing strategies to prevent popping during LOD changes.
  • Octahedral normal encoding for compact, high-quality normals.
  • Unified-mesh normal computation before chunk splitting for seam-free lighting.
  • Practical use cases across terrain streaming, cliff edges, and coastline transitions.

Quick Start

Apply these mesh-stitching techniques to ensure seams and correct normals in a chunked terrain system.

Frequently Asked Questions about geometry-mesh-stitching-normals

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I eliminate seams between chunked terrain meshes with varying LODs?

To eliminate seams in chunked terrain, apply vertex welding rules for bit-identical boundary attributes and use skirt generation to hide gaps at chunk boundaries during LOD transitions.

What causes normal discontinuities across terrain chunk boundaries and how do I fix them?

Normal discontinuities across terrain chunk boundaries occur when chunks compute lighting independently. Fix this by performing unified-mesh normal computation with area-weighted normals before chunk splitting.

What is the best way to prevent popping during terrain LOD transitions?

The best way to prevent popping during terrain LOD transitions is to implement geomorphing strategies that smoothly interpolate vertex positions and attributes between detail levels.

How does octahedral encoding work for compact normals in terrain rendering?

Octahedral encoding works for compact normals by projecting unit vectors onto an octahedron and folding them into a 2D plane, providing high-quality normals with a smaller memory footprint.

Why do I need cross-boundary vertex duplication in chunked terrain systems?

Cross-boundary vertex duplication is needed in chunked terrain systems to preserve topology when edges are shared between chunks, ensuring consistent rendering across coastlines and cliff edges.

When should I use skirts versus vertex stitching for terrain chunk boundaries?

Use skirts when you need to hide gaps at chunk boundaries and coastlines without modifying shared edge topology, and use vertex stitching when you require bit-identical boundary vertices for seamless LOD transitions.