Weizhen Huang weizhen
  • Joined on 2022-10-03
Weizhen Huang pushed to light_tree_instance at weizhen/blender 2023-04-14 18:48:57 +02:00
49ede3338d Merge branch 'main' into light_tree_instance
d633d9fd02 Curves: Define "lookup int" function for RNA arrays
dcb3b1c1f9 Geometry: Use implicit sharing for curve and mesh offsets
fed463df78 IDManagement: Extend ID remapping code.
Compare 4 commits »
Weizhen Huang commented on pull request blender/blender#106683 2023-04-14 17:51:39 +02:00
Cycles: add instancing support in light tree

Thanks for the patch. The two proposed alternatives require the same amount of memory (16 bytes more compared to the version with union), but with variant the intention of the code is clearer…

Weizhen Huang commented on pull request blender/blender#106683 2023-04-14 17:02:04 +02:00
Cycles: add instancing support in light tree

@blender-bot package

Weizhen Huang pushed to light_tree_instance at weizhen/blender 2023-04-14 17:00:45 +02:00
c10023b8e3 Add #include <variant>
Weizhen Huang commented on pull request blender/blender#106683 2023-04-14 16:49:55 +02:00
Cycles: add instancing support in light tree

@blender-bot package

Weizhen Huang pushed to light_tree_instance at weizhen/blender 2023-04-14 16:48:05 +02:00
a8e5aa4bcc Merge remote-tracking branch 'origin' into light_tree_instance
490f41856b Change light tree node type from union to variant
988f23cec3 Attributes: Add 2D integer vector attribute type
80f3f59555 Fix: Remove unsupported data types in extrude and split edges nodes
3f31ac2e1a Cleanup: Make deprecated custom data type handling consistent
Compare 41 commits »
Weizhen Huang commented on issue blender/blender#106876 2023-04-14 11:48:02 +02:00
Regression: LightTree failing with large number of emitters

Hi, I don't think 17c8e0d309 caused the issue. The light tree uses a bit trail with int type, which limits the tree depth to a maximum of 32, so it is expected that it will fail when dealing…

Weizhen Huang pushed to light_tree_instance at weizhen/blender 2023-04-14 00:36:18 +02:00
13a876dff7 Fix transform zero vector in volume
a56f7e1244 Parallelize iterating over mesh lights and building subtrees
e5b9a1050f Merge branch 'main' into light_tree_instance
8f9a92e3d7 Readability improvement based on reviews
71ed98debe Point Cloud: Avoid unnecessarily initializing initial positions
Compare 125 commits »
Weizhen Huang pushed to microfacet_hair at weizhen/blender 2023-04-13 17:39:33 +02:00
cc0e4cca1f Only 2 closures used
22f9898b4d Some cleanups
b47cc2aaa7 Remove unused node inputs
Compare 3 commits »
Weizhen Huang pushed to microfacet_hair at weizhen/blender 2023-04-13 14:28:15 +02:00
738f284e95 Minor cleanups
90cf06c874 Cleanup: de-duplicate code in closure.h
6ea34518b9 Merge remote-tracking branch 'origin' into microfacet_hair
e5d50b1787 Fix Cycles unknown passes logged when build with Cycles debug
34739f6a6d Fix #106672: MacOS/OpenGL doesn't draw anything Eevee related.
Compare 72 commits »
Weizhen Huang pushed to microfacet_hair at weizhen/blender 2023-04-12 18:49:56 +02:00
869fbcc712 Some comments
d07c115957 Fix compile error on GPU
dfbe7c544f Remove LABEL_TRANSMIT
a9534f0fdd Cleanup: reorder #MicrofacetHairBSDF and #MicrofacetHairExtra
Compare 4 commits »
Weizhen Huang commented on pull request blender/blender#106863 2023-04-12 16:31:43 +02:00
Fix Cycles unknown passes logged when build with Cycles debug

Shouldn't it be MAP_PASS(..., true) instead of false? It was originally PassMode::NOISY.

Weizhen Huang pushed to microfacet_hair at weizhen/blender 2023-04-12 15:00:02 +02:00
68605cd1c7 Modified position and description of the R, TT and TRT lobes
Weizhen Huang commented on pull request blender/blender#106764 2023-04-11 23:52:09 +02:00
Fix #106706: Fireflies with Nishita sky sun sampling at certain angles.

Thanks for investigating. I'm a bit worried about code duplication. I guess you can move the angle wrapping in sky_texture_precompute_nishita() to shader.cpp instead, just before `sky->set_su…

Weizhen Huang pushed to microfacet_hair at weizhen/blender 2023-04-11 18:42:50 +02:00
1cd5c44e68 Fix wrong projected radius in sampling
1ad653dae0 Merge remote-tracking branch 'origin' into microfacet_hair
90ad930a01 Fix #106778: Incomplete copy of curves radius to Cycles
f486679a3b Fix assert error with preview ball
4472717de2 Cleanup: Remove unnecessary PBVH attribute pointer
Compare 754 commits »
Weizhen Huang commented on pull request blender/blender#106683 2023-04-11 14:20:18 +02:00
Cycles: add instancing support in light tree

This array stores indices of the build-in lights (area light, spot light, sun light, point light), these lights are often called "lamps" throughout the code. Besides that we have mesh lights, which are kept in a separate array called mesh_to_light. Because both types are called "lights", I thought it would be less confusing to rename the other one to lamp_to_tree.

Weizhen Huang commented on pull request blender/blender#106683 2023-04-07 18:41:55 +02:00
Cycles: add instancing support in light tree
Weizhen Huang created pull request blender/blender#106683 2023-04-07 18:41:37 +02:00
Cycles: speed up light tree build with many instanced mesh lights
Weizhen Huang pushed to light_tree_instance at weizhen/blender 2023-04-07 18:40:57 +02:00
dec90cfcf9 Cycles: speed up light tree build with many instanced mesh lights