immersive-web / immersive-web/model-element
Environment map rotation
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 86
- Forks
- 12
- Avg merge
- 7h 12m
- Merged PRs (30d)
- 1
Description
Model element supports setting a environment map via the environmentMap attribute.
Something very useful is the ability to set the rotation of the env map, as the initial rotation an env map is often arbitrary and not what a creator desires. I think this would be pretty crucial to support.
What are thoughts on how this could best be supported? Here's one idea.
<model environmentmap="envmap.hdr" environmentrotation="180">
<source src="model.glb">
</model>
Here restricted to rotation around the y-axis.
Some references:
- Three.js: https://threejs.org/docs/#api/en/materials/MeshStandardMaterial.envMapRotation
- Blender: not supported out-of-the-box, but simple to add two nodes to rotate
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
Start with the element's existing environmentMap attribute and review the proposed environmentrotation API in the issue. Compare the referenced Three.js behavior and Blender notes, then clarify the supported rotation scope and acceptance criteria; done means an agreed API and implementation approach for rotating the environment map.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100