Weizhen Huang weizhen
  • Joined on 2022-10-03
Weizhen Huang pushed to restir at weizhen/blender 2024-04-26 16:10:03 +02:00
0023d17cb7 Minor Speedups
56dde22815 Fix spatial sampling bias
0ffd935bb4 Add ReSTIR profiling
eeb3ffb5b5 Add ray differentials
37126e468b Support mesh light
Compare 193 commits »
Weizhen Huang commented on issue blender/blender#121097 2024-04-26 11:38:53 +02:00
Shading Bug - Smooth and Flat shading with sharp edge in edit mode.

This is caused by 5b6f2ef5a26023c7e869a19fb8568c8faf8f2c79, mesh.normals_domain() changed after split_faces is defined. But I don't understand why normals domain would change when switching…

Weizhen Huang pushed to restir at weizhen/blender 2024-04-25 18:41:43 +02:00
0b83af2c4d Fix spatial sampling bias
89f53ec2c4 Add ReSTIR profiling
Compare 2 commits »
Weizhen Huang created pull request blender/blender#121023 2024-04-24 15:19:22 +02:00
WIP: Cycles: Importance Resampling
Weizhen Huang pushed to restir at weizhen/blender 2024-04-24 13:50:55 +02:00
5637440df4 Add ray differentials
Weizhen Huang pushed to restir at weizhen/blender 2024-04-23 14:18:13 +02:00
daa1abe00e Support mesh light
cf2eb5685e Randomly sample neighbors instead of deterministically to reduce artifact
54b1d11e66 Refactor: use sample sequences in reservoir sampling
4392ddb30f Refactor: use int to represent initial and spatial resampling
16fdd010ed Fix checking visibility when ReSTIR is not used
Compare 184 commits »
Weizhen Huang commented on pull request blender/blender#118477 2024-04-23 11:30:05 +02:00
Cycles: Add thin film iridescence to Principled BSDF

I think the kernel is all C++ now, but not feature complete on some GPUs, not sure what exactly is supported but if buildbot doesn't complain it should be fine.

Weizhen Huang commented on pull request blender/blender#118477 2024-04-22 12:31:08 +02:00
Cycles: Add thin film iridescence to Principled BSDF

This does not compile on Metal. Add ccl_private.

Weizhen Huang commented on pull request blender/blender#118477 2024-04-22 12:26:44 +02:00
Cycles: Add thin film iridescence to Principled BSDF

For cognitive ease I would prefer to add an empty if (fresnel->thin_film.thickness > 0.1f) branch and put the comment there, the following block is then put in the else branch

Weizhen Huang commented on pull request blender/blender#118477 2024-04-22 12:26:43 +02:00
Cycles: Add thin film iridescence to Principled BSDF

We use nullptr now.

Weizhen Huang commented on pull request blender/blender#118477 2024-04-22 12:26:42 +02:00
Cycles: Add thin film iridescence to Principled BSDF

The newly added sqr() is not used, I assume you wanted to use it here?

Weizhen Huang pushed to main at weizhen/.profile 2024-04-22 00:00:22 +02:00
0ac072338e Update reports/2024.md
Weizhen Huang commented on pull request blender/blender#118477 2024-04-21 20:25:10 +02:00
Cycles: Add thin film iridescence to Principled BSDF

Yes, you are right, I was not paying attention to the denominator. I remember switching the order was only to make the two lines have the same structure because the sign didn't matter. Sorry for…

Weizhen Huang commented on pull request blender/blender#118477 2024-04-21 20:13:02 +02:00
Cycles: Add thin film iridescence to Principled BSDF

Do you mean the sign of cos_theta_t? In fresnel_dielectric() it is the angle between the surface normal and the refracted ray, hence negative, and the sign is used in Principled Hair Huang I…

Weizhen Huang pushed to restir at weizhen/blender 2024-04-19 18:21:21 +02:00
f7e93cca5d Randomly sample neighbors instead of deterministically to reduce artifact
6c468666a2 Refactor: use sample sequences in reservoir sampling
f02f623637 Refactor: use int to represent initial and spatial resampling
66b5e9cb41 Fix checking visibility when ReSTIR is not used
Compare 4 commits »
Weizhen Huang pushed to restir at weizhen/blender 2024-04-19 01:39:37 +02:00
4da7e9f1d1 Put BSDF samples in reservoir when spatial resampling is enabled
Weizhen Huang pushed to restir at weizhen/blender 2024-04-19 00:16:55 +02:00
e44dd9b1c9 Fix biase in spatial resampling
Weizhen Huang pushed to restir at weizhen/blender 2024-04-18 21:50:57 +02:00
76d2609896 Fix division by zero
a3b883bf59 Add options to check sample visibility
Compare 2 commits »
Weizhen Huang pushed to restir at weizhen/blender 2024-04-18 15:28:53 +02:00
d33ec9567c Add more ReSTIR options
Weizhen Huang pushed to restir at weizhen/blender 2024-04-18 09:34:30 +02:00
fc3b69435a Add option to use ReSTIR
f7b9351840 Fix crash without light tree
48d5db3081 Cycles: Implement blue-noise dithered sampling
Compare 3 commits »