Docs: Add note in 'material' component or FAQ about texturing models
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 17.6k
- Forks
- 4.4k
- PR merge metrics
- No merged PRs in 30d
Description
Common questions we should probably cover somewhere:
- The
materialcomponent doesn't work on loaded models, except for OBJ models that do not already have an MTL (material) file. - It's usually better to texture in DCC software (e.g. Blender). (Link to tutorial?)
- If you do need to texture or re-color something on-the-fly, use three.js APIs like this:
el.addEventListener('model-loaded', function(event) {
event.details.model.traverse(function(object) {
if (object.isMesh) {
object.material.foo = bar;
}
});
});
For documentation on THREE.Material and its subclasses, see: https://threejs.org/docs/#api/materials/Material
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
Locate the material component documentation or FAQ entry as the possible destination. Add the requested guidance about loaded models, DCC texturing, runtime three.js material changes, and the THREE.Material reference; done means these common questions are documented clearly in one suitable place.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, three.js
- Domain
- computer-graphics, documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100