.obj models not displaying materials
Open
Nobody has claimed this yet.
Area:WebGL
Bug
- Dominant language
- JavaScript
- Stars
- 24k
- Forks
- 3.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 25
Description
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- WebGL
- Build process
- Unit testing
- Internationalization
- Friendly errors
- Other (specify if possible)
p5.js version
1.11.0
Web browser and version
130.0.6723.70
Operating system
mac os 14.7
Steps to reproduce this
Steps:
- load .obj file as model
- in draw() call normalMaterial() for example
- call model(yourModel)
Snippet:
let teapot;
function preload() {
teapot = loadModel("teapot.obj");
}
function setup() {
createCanvas(400, 400, WEBGL);
}
function draw() {
background(20);
normalMaterial();
scale(50);
translate(0, 1.5, 0);
rotateX(PI);
model(teapot);
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the provided WebGL example using loadModel(), normalMaterial(), and model() with teapot.obj, then trace the WebGL model-loading and rendering entry points involved. Done means identifying why the .obj model's materials are not displayed and confirming the corrected behavior with the same example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100