You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@xxlong0 Thanks for this wonderful project!
The released render_codes only provides rgb/normal/depth rendering results. How to output roughness/metallic images?
I wrote this piece of code, it can output roughness/metallic images with default values of roughness/metallic.
# some objects' normals are affected by texturesmesh_objects=convert_to_meshes([objforobjinscene_meshes()])
forobjinmesh_objects:
print("removing invalid normals")
formatinobj.get_materials():
mat.set_principled_shader_value("Normal", [1,1,1])
principled_bsdf=mat.get_the_one_node_with_type("BsdfPrincipled")
forkeyin ["Roughness", "Metallic", "Specular"]:
obj.set_cp("cp_"+key.lower(), principled_bsdf.inputs[key].default_value)
@xxlong0 Thanks for this wonderful project!
The released
render_codes
only provides rgb/normal/depth rendering results. How to output roughness/metallic images?I wrote this piece of code, it can output roughness/metallic images with default values of roughness/metallic.
...
However, if we have objects with roughness/metallic textures, the results are wrong:
Any solutions? Thanks!
The text was updated successfully, but these errors were encountered: