`coat_weight` applied twice in multiple places

Aperta
#337 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
css

Direzione di ricerca

Start by reading the coat-weight equations in the OpenPBR specification, especially Eq. (12), Eq. (16), Eq. (60), and Eq. (73), alongside section 3.4.1 and 3.4.3. Trace where coat_weight appears in the base and coated contributions, then determine whether the equations preserve the intended linear mix. Done means the affected equations and explanatory text consistently treat coat_weight as the mix factor.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

According to the diagram below Eq (12)
image
coat_weight is a mix factor of a none-coated base and a fully-coated base, so coat_weight should only act as a mix factor, not part of the none-coated base or coated-base. However, in multiple places, this coat_weight also appears in the base layer.

For example, In 3.4.1 Coat Darkening section, the spec says "multiply the base BSDF by the uniform modulated darkening factor (taking into account the presence weight C = coat_weight and the darkening parameter δ = coat_darkening)". Combining Eq(16,70), the weight of $f_\mathrm{sub}$ becomes
$$\quad\mathrm{lerp}(1,T_\mathrm{coat}^2(1-E_\mathrm{coat}),\omega_\mathrm{coat})\mathrm{lerp}(1,\Delta,\omega_\mathrm{coat}\delta),$$
which is the sum of a linear mix and a cross-term. If we want to preserve a linear mix, the weight of $f_\mathrm{sub}$ should instead be
$$\quad\mathrm{lerp}(1,T_\mathrm{coat}^2(1-E_\mathrm{coat})\mathrm{lerp}(1,\Delta,\delta),\omega_\mathrm{coat}).$$

In many other places, such as section 3.4 Eq(60) for modified specular IOR, 3.4.3 Eq (73) for modified specular roughness, this should not be the case.

Lingua principale
CSS
Stelle
844
Fork
48
Merge medio
1g 18h
PR unite (30g)
3

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AcademySoftwareFoundation/OpenPBR

Tutte le issue di AcademySoftwareFoundation/OpenPBR

Issue simili

Altre issue su Computer Graphics

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.