`coat_weight` applied twice in multiple places

Abierto
#337 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
css

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
CSS
Estrellas
844
Forks
48
Merge medio
1 d 18 h
PR fusionados (30 d)
3

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de AcademySoftwareFoundation/OpenPBR

Todos los issues de AcademySoftwareFoundation/OpenPBR

Issues similares

Más issues de Computer Graphics

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.