loadModel() options break without fileType and ignore flipU/flipV
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript
- Lĩnh vực
- computer-graphics
Hướng nghiên cứu
Phân tích tùy chọn cho loadModel(path, options) nằm trong src/webgl/loading.js quanh các dòng 573-581; issue cho biết fileType bị gán lại trước khi flipU và flipV được đọc, nên đối tượng options có thể đi tới .toLowerCase(). Bắt đầu bằng cách đọc khối đó, rồi tái tạo lỗi với loadModel('model.obj', { flipU: true }) và với fileType được truyền vào. Hoàn thành khi cả hai dạng gọi đều tải được mà không lỗi và các tùy chọn lật được áp dụng cho mô hình đã tải.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- JavaScript
- Star
- 24.1k
- Fork
- 3.9k
- Merge trung bình
- 2 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 38
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của processing/p5.js
-
[p5.js 2.0+ Bug Report]: key docs needs updatingCó thể đã có người làm @MannXo đã nhận hôm nay. Đang mởHelp Wanted
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
processing/p5.js#9296 · 5 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 3 ngày
-
False positive FES warning for loadModel(path, callback)Có thể đã có người làm @xsupremeyx đã nhận 1 ngày trước. Đang mởp5.js 2.0+
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
processing/p5.js#9295 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Add unit tests for noiseDetail()Có thể đã có người làm @harshiltewari2004 đã nhận 3 ngày trước. Đang mởArea:Math Enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
processing/p5.js#9253 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
[p5.js 2.0+ Bug Report]: storeItem() validation branches are missing `return`, so bad input throws a TypeError or is stored anywayCó thể đã có người làm @iUjjwalRaj đã nhận 11 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
processing/p5.js#9242 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
[p5.js 2.0+ Bug Report]: getURLParams() mis-parses valueless parameters and never percent-decodes valuesCó thể đã có người làm @mayanksingh-7974 đã nhận 5 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
processing/p5.js#9241 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của processing/p5.js
Issue tương tự
-
BUG
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: filesystem-edit-file converts a CRLF file's line endings to LF on every editCó thể đã có người làm @MohammadHijjawi97 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Mintplex-Labs/anything-llm#6755 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
type/bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
flarum/framework#5231 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
apache/rocketmq-dashboard#6896 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày