.obj loaded Model materials are off
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 858
- Forks
- 144
- PR merge metrics
- No merged PRs in 30d
Description
threeversion: 0.160.0@types/threeversion: 0.160.0three-stdlibversion: 2.28.12
Problem description:
Materials loaded with the MTLLoader and OBJLoader are not the same as threes.js' loaders.
Colours are different between the two.
this is colours loaded with three.js mtl and obj loader:
and this is colours loaded with three-stdlib mtl and obj loader:
Suggested solution:
I believe we are missing the commit: https://github.com/mrdoob/three.js/commit/f49819bc21babf06c935f902f64629daab9f8ddc
where colours are converted from SRGB to Linear. There might be something else but I believe this could be it.
Thank you!
Contributor guide
No contributing guide indexed for this repository
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
Start with the MTLLoader and OBJLoader implementations and compare their material-color handling with the referenced three.js commit f49819bc21babf06c935f902f64629daab9f8ddc. Done means materials loaded through three-stdlib produce the same colors as the corresponding three.js loaders.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, three.js
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100