Weizhen Huang weizhen
  • Joined on 2022-10-03
Weizhen Huang commented on pull request blender/blender#126871 2024-09-16 20:35:17 +02:00
WIP: Shader: Add Artistic Conductor Fresnel type to Metallic BSDF

We discussed in a meeting, the conclusion is that it seems confusing to have two parametrizations doing pretty much the same thing, so we don't implement this option yet.

For compatibility…

Weizhen Huang commented on pull request blender/blender#123532 2024-09-16 20:25:20 +02:00
Cycles: Additional scattering phase functions

Double Henyey-Greenstein. Remove the hyphen after Double.

Weizhen Huang commented on pull request blender/blender#123532 2024-09-16 20:25:19 +02:00
Cycles: Additional scattering phase functions

This function name is not quite clear, how about volume_has_same_phase_function()?

Weizhen Huang commented on pull request blender/blender#123532 2024-09-16 20:25:18 +02:00
Cycles: Additional scattering phase functions

Also a comment here explaining the functionality would be good. I guess it's finding the angle using binary search.

Weizhen Huang commented on pull request blender/blender#123532 2024-09-16 20:25:16 +02:00
Cycles: Additional scattering phase functions

This function needs a description, it is not clear from the name.

Weizhen Huang commented on pull request blender/blender#123532 2024-09-16 20:25:15 +02:00
Cycles: Additional scattering phase functions

These if (pdf) are not needed. In all the use cases of phase function sampling we require the pdf.

Weizhen Huang commented on pull request blender/blender#123532 2024-09-16 20:25:14 +02:00
Cycles: Additional scattering phase functions

😅 Thanks for spotting this typo, I'll commit a cleanup and merge this to reduce noise in the PR.

Weizhen Huang commented on pull request blender/blender#123532 2024-09-16 20:25:13 +02:00
Cycles: Additional scattering phase functions

Given angle between rays

Weizhen Huang commented on pull request blender/blender#123532 2024-09-16 20:25:12 +02:00
Cycles: Additional scattering phase functions

Rayleigh is parametrized by cosine angle, so this should just be dot(-sd->wi, wo) instead acosf(dot(-sd->wi, wo)).

Weizhen Huang commented on pull request blender/blender#123532 2024-09-16 20:25:10 +02:00
Cycles: Additional scattering phase functions

Using vector_angle() is better behaving at small angles. Also since it's an angle, call it theta instead of cos_theta.

Weizhen Huang commented on pull request blender/blender#123532 2024-09-16 20:25:09 +02:00
Cycles: Additional scattering phase functions

I don't think we should expose Draine phase function in the UI. Too many options look overwhelming, so we would like to only support phase functions for common use cases. Water, cloud and atmosphere are all quite usual, but Draine for interstellar dust seems too specific to support? Also it can be achieved by setting other parameters to zero in the Draine-Henyey-Greenstein model.

Weizhen Huang commented on pull request blender/blender#123532 2024-09-16 20:25:08 +02:00
Cycles: Additional scattering phase functions

I don't understand why this new density mode is needed, using color should be enough?

Weizhen Huang pushed to unbiased-ray-marching at weizhen/blender 2024-09-16 18:13:58 +02:00
2cfc88d6e4 Handle absorption only case more explicitly
94f12d5b3d Change lcg to rng
21abc66c81 Manually increase majorant in thin volumes
d73c939346 Refactor: renaming, delete unused functions
bc402787d4 Use PATH_RAY_SHADOW for extinction evaluation
Compare 329 commits »
Weizhen Huang pushed to main at weizhen/.profile 2024-09-16 11:51:46 +02:00
bd59a44623 Update reports/2024.md
Weizhen Huang deleted branch fix-volume-color-channel from weizhen/blender 2024-09-12 14:28:21 +02:00
Weizhen Huang merged pull request blender/blender#127454 2024-09-12 14:28:18 +02:00
Fix: Cycles: reuse random number for sampling color channel in volume
Weizhen Huang pushed to main at blender/blender 2024-09-12 14:28:18 +02:00
ee2fe7fa6c Fix: Cycles: reuse random number for sampling color channel in volume
Weizhen Huang pushed to main at blender/blender-test-data 2024-09-12 14:27:47 +02:00
ee017c3e97 Cycles: update volume render due to changes in color channel sampling