Hair on Diffuse color pass is black and never show Albedo color

by user96930   Last Updated May 20, 2020 09:15 AM

I have a object (face with hair), I want to get Albedo from diffuse pass in Blender2.8, I got Image without hair. How can I get the whole image or a Albedo. This is my code:

def _prepare_albedo_node_graph(tree: bpy.types.NodeTree):

if bpy.context.scene.render.engine != "CYCLES":
    raise RuntimeError("Depth GT (Radial Depth) is only supported with CYCLES renderer")

render_layers = tree.nodes["Render Layers"]
albedo_output_dir = tempfile.mkdtemp()
bpy.context.view_layer.use_pass_diffuse_color = True

albedo_output_file_node ='CompositorNodeOutputFile')
albedo_output_file_node.base_path = os.path.join(albedo_output_dir, "Albedo_c")
albedo_output_file_node.file_slots[0].path = "albc######"["DiffCol"], albedo_output_file_node.inputs["Image"])

return albedo_output_dir

enter image description here

Related Questions

How to have sharp shadows in cycles with HDRI

Updated June 06, 2020 11:15 AM