Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to add lighting from all direction #6

Open
qiminchen opened this issue Sep 14, 2022 · 1 comment
Open

how to add lighting from all direction #6

qiminchen opened this issue Sep 14, 2022 · 1 comment

Comments

@qiminchen
Copy link

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

@qiminchen
Copy link
Author

qiminchen commented Sep 14, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant