Weizhen Huang weizhen
  • Joined on 2022-10-03
Weizhen Huang merged pull request blender/blender#126625 2024-08-28 11:54:11 +02:00
Fix #126592: Cycles light tree subtended angle not covering the entire bounding box
Weizhen Huang pushed to fix-missing-light-samples at Alaska/blender 2024-08-28 11:53:07 +02:00
9a665b0f24 Merge remote-tracking branch 'origin' into fix-missing-light-samples
21b820cd33 Fix the type value of 'bpy.types.*.bl_rna'
25b2c5f170 BLI: Add reduce_mul
17397dae19 Fix #125680: Grease Pencil edit overlay shader theme switch
83ffadb248 Cleanup: reduce right-shift
Compare 154 commits »
Weizhen Huang pushed to main at blender/blender-test-data 2024-08-28 11:52:57 +02:00
bfbcb59865 Cycles: update test files due to changes in light tree bounding sphere
Weizhen Huang commented on pull request blender/blender#126625 2024-08-26 20:35:35 +02:00
Fix #126592: Cycles light tree subtended angle not covering the entire bounding box

It's just that someone pushed to tests/data after I did. I'll rebase tomorrow.

Weizhen Huang pushed to main at weizhen/.profile 2024-08-26 10:23:55 +02:00
b3b71ef4a1 Update reports/2024.md
Weizhen Huang commented on pull request blender/blender#126625 2024-08-22 15:26:03 +02:00
Fix #126592: Cycles light tree subtended angle not covering the entire bounding box

I thought the limit of 72 characters was only for message body? For the title I saw lots of commits exceeding the limit.

Weizhen Huang pushed to fix-missing-light-samples at Alaska/blender 2024-08-22 14:45:51 +02:00
bdd94415ab Update test images
Weizhen Huang pushed to light_tree_bounding_sphere at blender/blender-test-data 2024-08-22 14:44:42 +02:00
62fd5e1f68 Cycles: update test files due to changes in light tree bounding sphere
Weizhen Huang created branch light_tree_bounding_sphere in blender/blender-test-data 2024-08-22 14:44:42 +02:00
Weizhen Huang approved blender/blender#126625 2024-08-22 14:30:33 +02:00
Fix #126592: Cycles light tree subtended angle not covering the entire bounding box

I am surprised that this issue has not been identified earlier, probably in practice it's not very common that the light is put so close to a surface?

Weizhen Huang commented on pull request blender/blender#126625 2024-08-22 14:27:36 +02:00
Fix #126592: Cycles light tree subtended angle not covering the entire bounding box

I believe Attic and Bistro are the only scenes that should see a performance difference as they're the only scenes with the light tree enabled.

Ah, somehow I thought they are also enabled in…

Weizhen Huang commented on issue blender/blender#126645 2024-08-22 13:06:02 +02:00
Light linking doesn't work on VDBs whenever they're intersecting other volumes

This issue is known and has the same cause as #104485, because in overlapping regions we only record the object at the top of the stack.

For such cases the current proposal is to render…

Weizhen Huang pushed to main at blender/blender 2024-08-22 13:00:44 +02:00
16bf67cf37 Fix: Outdated tooltip on Principled BSDF
Weizhen Huang merged pull request blender/blender#126644 2024-08-22 13:00:43 +02:00
Fix: Outdated tooltip on Principled BSDF
Weizhen Huang commented on pull request blender/blender#126625 2024-08-22 12:54:00 +02:00
Fix #126592: Cycles light tree subtended angle not covering the entire bounding box

This comment should be on top of the function.

Weizhen Huang commented on pull request blender/blender#126625 2024-08-22 12:51:29 +02:00
Fix #126592: Cycles light tree subtended angle not covering the entire bounding box

Both Openmoonray and PBRT use bounding sphere, I think it's fine like this, correctness is more important.

In most of our benchmark scenes I do not see any difference, except for slightly more…

Weizhen Huang commented on pull request blender/blender#126625 2024-08-22 12:28:48 +02:00
Fix #126592: Cycles light tree subtended angle not covering the entire bounding box

Better named as light_tree_cos_bound_subtended_angle to describe the functionality, and leave the implementation detail (using bounding sphere) in the comment. Something like "Cosine of the angle subtended by the smallest enclosing sphere of the bounding box."

Weizhen Huang commented on pull request blender/blender#126625 2024-08-22 12:28:47 +02:00
Fix #126592: Cycles light tree subtended angle not covering the entire bounding box

cos_from_sin() is going to square the results again, can just use safe_sqrtf(1.0f - radius_sq / distance_to_center_sq) here.