Skip to content

Phase 3: add a column/span LOD mesh builder #689

@MichaelFisher1997

Description

@MichaelFisher1997

Goal

Add a new mesh-building path that consumes richer LOD columns/spans while keeping the current heightfield mesh as a fallback.

Work Items

  • Implement a column/span mesh builder next to the existing heightfield builder.
  • Generate top, side, water, and optional internal faces from representative spans.
  • Add greedy or local quad merging where it is simple and safe.
  • Use adjacency data to avoid unnecessary edge faces and reduce cracks.
  • Add tests for steep terrain, water, empty columns, span ordering, and fallback behavior.

Acceptance Criteria

  • The new mesh builder can be enabled per LOD level or via config/test hook.
  • Mesh output avoids obvious holes for multi-layer columns.
  • Heightfield mesh remains the stable fallback path.
  • zig build test passes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions