Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

feat(examples): Add polygonal chunk mesher with Greedy Meshing

Aperta
#4 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start by reading examples/06_voxel_renderer and the cited depth pipeline, indexed draw, and buffer initialization APIs. Add a complementary example that builds indexed quad meshes from voxel chunks using greedy meshing and demonstrates dynamic rendering with a depth buffer. Done means the example runs and shows the polygonal voxel chunk mesher described in the issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement help wanted
Summary

Currently, examples/06_voxel_renderer showcases voxel raymarching via DDA in a fragment shader.

A great complementary example would be a classic polygonal chunk mesher that generates indexed 3D quad meshes from voxel chunk arrays using Greedy Meshing (combining coplanar adjacent faces into single quads).

What this demonstrates:
  • lgpu dynamic rendering with a dedicated depth buffer (TextureFormat::Depth32Float).
  • Structured vertex & index buffer allocation using device.create_buffer_init_slice().
  • Drawing with encoder.draw_indexed_with_depth().
  • A real-world reference for game developers building block games or voxel engines with lgpu.
Relevant APIs
  • lgpu::Device::create_graphics_pipeline_with_depth
  • lgpu::CommandEncoder::draw_indexed_with_depth
  • lgpu::BufferUsage::VERTEX / INDEX
Lingua principale
Rust
Stelle
8
Fork
1
Merge medio
1h 45m
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di kuntal-devrat/lgpu

Tutte le issue di kuntal-devrat/lgpu

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.