Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Simplify instancing creation

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

@Absulit がすでに取り組んでいます。

2026年2月7日 から。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
javascript

調査の方向性

glb_renderpass.addMesh メソッドと、instanceCount がどのように設定されているかを確認します。workgroup と thread の計算に関する compute pass のセットアップを理解します。新しいメソッド addInstances は、これらの手順をカプセル化する必要があります。コードベース内の既存のパーティクルまたはメッシュのインスタンシング例を確認し、現在のパターンを把握します。

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

説明

enhancement
  • Currently to create instances for particles or any other use, you have to make a large set of steps like:
    • calculate the number of particles based on workgroup size and thread size
    • pass those values (number of particles, worgroup size per dimension and threads per dimension) as constants to the library
    • use those constants in the compute pass to calculate the @workgroup_size
    • to indicate the number of instances you have to tell it to the added mesh this way with the instanceCount
glb_renderpass
    .addMesh('lucy', positions, colors, colorSize, uvs, normals, indices)
    .instanceCount = NUMPARTICLES;

It would be nice to have all of this in one step, like

renderPass.addInstances(meshName, numInstances)

主要言語
JavaScript
スター
56
フォーク
5
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

Absulit/points のほかの issue

Absulit/points の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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