`coat_weight` applied twice in multiple places

Đang mở
#337 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
css
Lĩnh vực
computer-graphics

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
CSS
Star
844
Fork
48
Merge trung bình
1 ngày 18 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của AcademySoftwareFoundation/OpenPBR

Tất cả issue của AcademySoftwareFoundation/OpenPBR

Issue tương tự

Thêm issue về Computer Graphics

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.