Hi,
I am generating a dataset use bop_challenge, could you tell me, how to generate a custom plane (or background), such as a blue box.
thank you
Hi @chrisxu1995,
Checkout the BasicMeshInitializer.py, and an example of its usage of creating a custom box
I assume, this closes this issue. If you have a direct follow up you can reopen this issue. For a new question I would ask you to open a new issue :)
Hi @chrisxu1995,
Checkout the BasicMeshInitializer.py, and an example of its usage of creating a custom box
Thanks for the reply, but I still didn鈥檛 find it about the setting of defining the background color or texture. I'll appreciate it very much, If you can provide an example.
Hey,
no worries, we can go more into detail.
In this first part, we create the plane objects and place them around the center:
We then load the CCMaterials via the CMaterialLoader, see this example, to understand how cctextures work.
Now we can use those materials we just loaded:
Here we first select all objects which start with ground_plane:
And then we randomize the materials:
https://github.com/DLR-RM/BlenderProc/blob/ead97d373e82f80b70cac9f92fa4ff5ccc60295f/examples/bop_object_physics_positioning/config.yaml#L215-L224
If you want to know more about the specific config values, check out the documentation of the EntityManipulator.
I hope this helps.
PS: To better understand BlenderProc it helps to go through the existing examples, they show how to use a lot of the different modules, making it easier to see how certain things work.
Best,
Max
Hey,
no worries, we can go more into detail.
In this first part, we create the plane objects and place them around the center:
We then load the CCMaterials via the
CMaterialLoader, see this example, to understand how cctextures work.Now we can use those materials we just loaded:
Here we first select all objects which start with
ground_plane:And then we randomize the materials:
https://github.com/DLR-RM/BlenderProc/blob/ead97d373e82f80b70cac9f92fa4ff5ccc60295f/examples/bop_object_physics_positioning/config.yaml#L215-L224If you want to know more about the specific config values, check out the documentation of the EntityManipulator.
I hope this helps.
PS: To better understand BlenderProc it helps to go through the existing examples, they show how to use a lot of the different modules, making it easier to see how certain things work.
Best,
Max
Thank you, you are so nice.
Most helpful comment
Hi @chrisxu1995,
Checkout the BasicMeshInitializer.py, and an example of its usage of creating a custom box