immersive-web / immersive-web/model-element

Supply an Image-based Light file

Open
#71 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
86
Forks
12
Avg merge
7h 12m
Merged PRs (30d)
1

Description

At TPAC we agreed that specifying an image-based light (IBL) is an important component of a V1 implementation and specification. In addition to the specific name (environment map, lighting environment, IBL etc), there is the matter of structural representation, i.e. how it resides within the tree structure of the <model> markup itself.

I don't have a strong opinion but some candidates I can see are:

  1. An attribute on the <model> tag:
<model environment-map="warehouse.hdr">
  <source src="shelf.usdz"/>
</model>
  1. An attribute on the <source> tag
<model>
  <source src="shelf.usdz" environment-map="warehouse.hdr"  />
</model>
  1. An independent tag inside the <model> block
<model>
  <environment-map src="warehouse.hdr" />
  <source src="shelf.usdz"/>
</model>

Or some more complex nesting of <source> elements within such a tag. It should be simple, but my expectation is that the role and complexity of <model> will increase over time, so something expressive enough to meet some obvious needs would be useful.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue contains the candidate HTML structures for representing an image-based light but names no implementation files or tests. Start by reviewing the proposed , , and relationships and the unresolved naming and nesting questions. Done means the representation and its role in the V1 specification are agreed and documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.