Render material segmentation maps #527
-
Hello, everyone. I am staring to use BlenderProc and learned from the doc that it is possible to render instance/semantic segmentation maps from a scene. I am wondering if it is possible to render a material segmentation map in a similar way (i.e., pixels mapped by their materials)? |
Beta Was this translation helpful? Give feedback.
Answered by
themasterlink
Mar 29, 2022
Replies: 1 comment 2 replies
-
Hey, out of the box we do not support this, yet. However, you can just simply split an object by its materials into different parts. objs = bproc.loader.load_obj("test.obj")
for obj in objs:
obj.edit_mode()
bpy.ops.mesh.separate(type='MATERIAL')
obj.object_mode()
objs = bproc.python.utility.BlenderUtility.get_all_mesh_objects() I have not tested this code, but this should get you started. Best, |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
chenzhekl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
out of the box we do not support this, yet. However, you can just simply split an object by its materials into different parts.
I have not tested this code, but this should get you started.
Best,
Max