Mrguanglei / Instantmesh_scriptData

Apache License 2.0
16 stars 1 forks source link

Error with Rendering #2

Open PAD2003 opened 3 months ago

PAD2003 commented 3 months ago

When I use setup_compositor_nodes(), the rendered results for depth, normals, and RGB are all incorrect. Depth and RGB outputs are completely black, and normals do not look like normal maps usually do.

When I use the following code, it works, but only the RGB is correct, while depth and normals look exactly like the RGB output.

world_tree = bpy.context.scene.world.node_tree
back_node = world_tree.nodes['Background']
env_light = 0.5
back_node.inputs['Color'].default_value = Vector([env_light, env_light, env_light, 1.0])
back_node.inputs['Strength'].default_value = 1.0

Furthermore, I noticed that changing 'View Layer' to 'ViewLayer' makes it correct. Have you retrained InstantMesh with the rendering code as shown above, and did the results improve?

abrar-khan-368 commented 3 months ago

+1

Mrguanglei commented 3 months ago

I don't know if you used the blender script to render it or if you used the code to render it, please refer to the following article reference