yinyunie/depth_renderer

how to add lighting from all direction

qiminchen opened this issue · 1 comments

Hi, thanks for the great work, I'm wondering how to add lights from all directions.

def light_setting_init():
""" light settings for renderer
"""
# Make light just directional, disable shadows.
world = bpy.data.worlds['World']
world.use_nodes = True
# changing these values does affect the render.
bg = world.node_tree.nodes['Background']
bg.inputs[1].default_value = 10.0

my mesh in meshlab looks like 1st image but I got RGB like 2nd/3rd images (left, right and top are black, apparently affected by the light) after rendering. Are there any ways to solve this? BTW this mesh is from ShapeNetCore.v1

Screenshot from 2022-09-14 12-29-08
color_006
color_008