loadModel() options break without fileType and ignore flipU/flipV
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript
調査の方向性
loadModel(path, options) のオプション解析は src/webgl/loading.js の573〜581行目付近にあります。issueによると、flipU と flipV が読まれる前に fileType が再代入されるため、options オブジェクトが .toLowerCase() に到達する可能性があります。まずそのブロックを読み、次に loadModel('model.obj', { flipU: true }) と fileType を含む形の両方で再現してください。両方の呼び出し形式がエラーなく読み込まれ、反転オプションが読み込まれたモデルに適用されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- WebGL
- WebGPU
- p5.strands
- Build process
- Unit testing
- Internationalization
- Friendly errors
- Other (specify if possible)
p5.js version
2.3.2 / current main
Web browser and version
Chromium 151
Operating system
Fedora Linux
Steps to reproduce this
The documented loadModel(path, options) overload breaks depending on whether fileType is included.
async function setup() {
createCanvas(100, 100, WEBGL);
// Throws: fileType.toLowerCase is not a function
await loadModel('model.obj', { flipU: true });
// Loads, but flipU is ignored
await loadModel('model.obj', {
fileType: '.obj',
flipU: true
});
}
Options like { normalize: true } or {} also throw when fileType is omitted. With fileType present, flipU / flipV are ignored, although calling model.flipU() / model.flipV() afterwards works.
Expected: loadModel(path, options) should work without requiring fileType, and the flip options should be applied.
I traced it to the options parsing here:
fileType is reassigned before flipU / flipV are read, so without fileType the options object eventually reaches .toLowerCase(), while with it the flags are read from a string.
- 主要言語
- JavaScript
- スター
- 24.1k
- フォーク
- 3.9k
- 平均マージ
- 2日 22時間
- マージ済み PR(30日)
- 38
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
processing/p5.js のほかの issue
-
[p5.js 2.0+ Bug Report]: key docs needs updating対応中かも @MannXo が今日担当しました。 オープンHelp Wanted
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
processing/p5.js#9296 · コメント 5 件 · リアクション 1 件 ·
メンテナーはふだん 3 日以内に返信
-
False positive FES warning for loadModel(path, callback)対応中かも @xsupremeyx が 1 日前に担当しました。 オープンp5.js 2.0+
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
processing/p5.js#9295 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
Add unit tests for noiseDetail()対応中かも @harshiltewari2004 が 3 日前に担当しました。 オープンArea:Math Enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
processing/p5.js#9253 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
[p5.js 2.0+ Bug Report]: storeItem() validation branches are missing `return`, so bad input throws a TypeError or is stored anyway対応中かも @iUjjwalRaj が 10 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
processing/p5.js#9242 ·
メンテナーはふだん 3 日以内に返信
-
[p5.js 2.0+ Bug Report]: getURLParams() mis-parses valueless parameters and never percent-decodes values対応中かも @mayanksingh-7974 が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
processing/p5.js#9241 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
processing/p5.js の issue をすべて見る
似ている issue
-
change request evaluating
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
sindresorhus/eslint-plugin-unicorn#3907 ·
メンテナーはふだん 1 日以内に返信
-
Android bug feature/error-tracking react-native team/error-tracking
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
PostHog/posthog-js#5310 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Add Prettier and a format-check CI job対応中かも @ezekielnathaniel070-ai が今日担当しました。 オープンbackend frontend good first issue Stellar Wave
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
OlaGreat/starbound-realms#98 · コメント 1 件 ·
-
Add Audiobookshelfオープンapp request good first issue help wanted self-hosted app
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Secra-Solutions/Conector#15 ·
-
Complexity: See issue making label epic good first issue Issue Making: Level 1 P-Feature: Project Info and Page role: back end/devOps role: front end size: 0.25pt time sensitive
難易度 2/5 1時間未満 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信