Skip to content

Commit

Permalink
fix(front3d): Fixes transmission parameter of front3d materials
Browse files Browse the repository at this point in the history
  • Loading branch information
cornerfarmer committed Oct 17, 2023
1 parent d3cd273 commit 32c50c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blenderproc/python/loader/Front3DLoader.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,10 @@ def load_furniture_objs(data: dict, future_model_path: str, lamp_light_strength:
# => Reset the emission color
principled_node.inputs["Emission"].default_value[:3] = [0, 0, 0]

# Front3d .mtl files use Tf incorrectly, they make all materials fully transmissive
# Revert that:
principled_node.inputs["Transmission"].default_value = 0

# For each a texture node
image_node = mat.new_node('ShaderNodeTexImage')
# and load the texture.png
Expand Down

0 comments on commit 32c50c9

Please sign in to comment.