Blenderproc: About the material

Created on 15 Mar 2021  路  3Comments  路  Source: DLR-RM/BlenderProc

Hello! Can you tell me where is the "bop_tless_vertex_col_material.*" ? And If I want to render the glass material for my own model, where do I import the material from?

Thank you for your project!
I'm looking forward to your reply!

question first answer provided

Most helpful comment

Okay so the answer is a bit more complicated. Rendering glass also requires you to reparameterize the renderer to make more light bounces. So in the RgbRenderer config set:

        "max_bounces": 100,
        "transmission_bounces": 100,
        "transparency_bounces": 100,
        "glossy_bounces": 100,
        "volume_bounces": 100,

If you are starting with the BOP examples, also comment out all other material manipulations. e.g. cf_set_specular, cf_set_roughness, cf_set_base_color. Also comment out this line to avoid setting the vertex color:

https://github.com/DLR-RM/BlenderProc/blob/fe5ea258acb9e3ec11e0d4c6f380321e01c4e751/src/utility/loader/BopLoader.py#L312

After these changes you get this:

Screenshot from 2021-03-15 16-09-17

All 3 comments

Hi,
this is just the material name belonging to the tless objects. It is loaded from the ply vertex colors and meant to be randomized.
For glass set transmission to 1:

        "cf_set_transmission": 1.0

Okay so the answer is a bit more complicated. Rendering glass also requires you to reparameterize the renderer to make more light bounces. So in the RgbRenderer config set:

        "max_bounces": 100,
        "transmission_bounces": 100,
        "transparency_bounces": 100,
        "glossy_bounces": 100,
        "volume_bounces": 100,

If you are starting with the BOP examples, also comment out all other material manipulations. e.g. cf_set_specular, cf_set_roughness, cf_set_base_color. Also comment out this line to avoid setting the vertex color:

https://github.com/DLR-RM/BlenderProc/blob/fe5ea258acb9e3ec11e0d4c6f380321e01c4e751/src/utility/loader/BopLoader.py#L312

After these changes you get this:

Screenshot from 2021-03-15 16-09-17

oh, thank you very much, your reply is very helpful to me!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

soans1994 picture soans1994  路  3Comments

eugval picture eugval  路  3Comments

manuelli picture manuelli  路  3Comments

wangg12 picture wangg12  路  3Comments

b-yogesh picture b-yogesh  路  5Comments