Weizhen Huang weizhen
  • Joined on 2022-10-03
Weizhen Huang opened issue blender/blender#111257 2023-08-18 11:39:26 +02:00
Microfacet-based PrincipledHairBSDF
Weizhen Huang approved blender/blender#111155 2023-08-17 11:25:10 +02:00
Cycles: Rework Principled BSDF Emission

Since the aforementioned bug is not introduced by this patch, the current state looks good to me.

Weizhen Huang commented on pull request blender/blender#111155 2023-08-16 18:34:58 +02:00
Cycles: Rework Principled BSDF Emission

Not sure how layering works. I figured that when emission does not render, closure_stack[0] is OSL_CLOSURE_GenericEmissive_ID, then closure_stack[1] is assigned by layer->base which is…

Weizhen Huang commented on pull request blender/blender#111155 2023-08-16 16:34:39 +02:00
Cycles: Rework Principled BSDF Emission

The discrepancy in the principled emission alpha test is because there is a IF_KERNEL_NODES_FEATURE(BSDF) check in svm_node_closure_bsdf(), therefore the Principled BSDF is skipped for…

Weizhen Huang pushed to emission-principled at LukasStockner/blender 2023-08-16 16:34:11 +02:00
8813bb0d4a Fix discrepancy in principled emission alpha test
Weizhen Huang pushed to spectral_cycles at weizhen/blender 2023-08-16 11:40:57 +02:00
1dc7f3639c Merge remote-tracking branch 'origin' into spectral_cycles
007b7d0353 Shaders: Change IOR soft minimum to 1.0 in Principled BSDF
71587663ac Fix #111156: Principled BSDF transmission not rendering in OSL
acbd952abf Cleanup: fewer iostreams related includes from BLI/BKE headers
f50da4040f Fix #111142: bl_static_type is empty for node groups and custom nodes
Compare 544 commits »
Weizhen Huang pushed to microfacet_hair at weizhen/blender 2023-08-15 16:50:19 +02:00
b71d6840fa Merge remote-tracking branch 'origin' into microfacet_hair
e6b102efc9 Rename principled_hair -> hair_chiang, microfacet_hair -> hair_huang
e955c94ed3 License Headers: Set copyright to "Blender Authors", add AUTHORS
f188d6709f LibOverride: keep some anim data from liboverride when it exists in both IDs.
257f21d494 Cleanup: Move Compositor versioning code from Scene's 'lib_link' to actual versioning code.
Compare 40 commits »
Weizhen Huang commented on pull request blender/blender#105600 2023-08-14 18:00:20 +02:00
Cycles: new Microfacet-based Hair BSDF with elliptical cross-section support

@LukasStockner There is a problem with your change. Because num_closure is set to 2 in shader_graph.cpp, when it tries to allocate a transparent closure in bsdf_microfacet_hair_setup() it…

Weizhen Huang pushed to microfacet_hair at weizhen/blender 2023-08-14 17:52:28 +02:00
7d14b8da7e Fix transparent closure not allocated
1a6b4c6d0c Fix assertion error
Compare 2 commits »
Weizhen Huang commented on pull request blender/blender#105600 2023-08-14 15:27:37 +02:00
Cycles: new Microfacet-based Hair BSDF with elliptical cross-section support

Currently if the parametrization is set to Melanin Concentration, an extra Tint socket is enabled, which corresponds to the realistic case of dyed hair (there is melanin present in natural hair,…

Weizhen Huang commented on pull request blender/blender#105600 2023-08-14 15:14:04 +02:00
Cycles: new Microfacet-based Hair BSDF with elliptical cross-section support

Indeed it doesn't look good, but adding if (is_circular) makes it span 8 lines, not sure of the benefits.

Weizhen Huang pushed to microfacet_hair at weizhen/blender 2023-08-14 15:13:56 +02:00
40b8bc055b Resolve some review comments
04bb899969 Merge remote-tracking branch 'origin' into microfacet_hair
a3a0a33978 I18n: updated UI translations from svn trunk (r6663).
769fe07668 GPU: Fix signed/unsigned mismatches in shader code
9094a3a9ab Refactor: Make display_init a base render method
Compare 281 commits »
Weizhen Huang closed issue blender/blender#111091 2023-08-14 10:40:33 +02:00
Incorrect calculation of Point Light Radius on a surface
Weizhen Huang commented on issue blender/blender#111091 2023-08-14 10:40:30 +02:00
Incorrect calculation of Point Light Radius on a surface

Yes, the point light has been changed to sphere light for energy preservation and better compatibility with other renders #108506. Outside the radius it is treated as a sphere light, inside the…

Weizhen Huang pushed to main at blender/blender 2023-08-07 07:29:26 +02:00
52ed6a216f Fix #110255: Cover up CPU/GPU differences with small suns in light tree
Weizhen Huang closed issue blender/blender#110255 2023-08-07 07:29:25 +02:00
Cycles GPU + Light tree: Sun sampling does not work under certain conditions
Weizhen Huang merged pull request blender/blender#110307 2023-08-07 07:29:23 +02:00
Fix #110255: Cover up CPU/GPU differences with small suns in light tree
Weizhen Huang commented on pull request blender/blender#105600 2023-08-07 02:11:20 +02:00
Cycles: new Microfacet-based Hair BSDF with elliptical cross-section support

This piece of code is provided by @olivier.fx. I didn't came up with the logic myself, but for a far-field model the "normal" is always the incoming direction, not really a feature of the object…

Weizhen Huang commented on pull request blender/blender#105600 2023-08-07 02:08:16 +02:00
Cycles: new Microfacet-based Hair BSDF with elliptical cross-section support

For the current two enums yes, but named struct seems easier understandable. On the other hand, it introduces additional storage and is seen as a compromise for not having enum-typed sockets. I'm…

Weizhen Huang commented on pull request blender/blender#105600 2023-08-07 02:04:08 +02:00
Cycles: new Microfacet-based Hair BSDF with elliptical cross-section support

I don't see tooltips in any other shader nodes, so I'm not sure if there is a guideline here, and I also have no idea about UX. I thought it would be good to provide clear information here, so the…