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

オープン
#4 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
42/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Rust
スター
8
フォーク
1
平均マージ
1時間 45分
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

kuntal-devrat/lgpu のほかの issue

kuntal-devrat/lgpu の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。