Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE]: render correspondence map of deformable objects #878

Open
eugenelyj opened this issue Apr 26, 2023 · 3 comments
Open

[FEATURE]: render correspondence map of deformable objects #878

eugenelyj opened this issue Apr 26, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@eugenelyj
Copy link

Description
I find the only supported way to render correspondence map existed in blenderproc is render_nocs. However, it is not suitable for the deformable objects like a dancing human (i.e., Armature).

Describe the solution you'd like
A possible way to do this i thought is to render uv corrdinate. Is it easy to implement in current framework?

@eugenelyj eugenelyj added the enhancement New feature or request label Apr 26, 2023
@cornerfarmer
Copy link
Member

This should be pretty simple to implement. You just need to add a enable_uv_output function to the RendererUtility, similar to e.g. enable_diffuse_color_output. Just use "UV" here instead of "DiffCol":

final_output = render_layer_node.outputs["DiffCol"]

Then in the render function add "uv" to the load_keys set:

load_keys = {'colors', 'distance', 'normals', 'diffuse', 'depth', 'segmap'}

If enabled, uvs should now be rendered using the standard bproc.renderer.render() method.

Let me know if you need any more help. If you want, you can create a PR in the end.

@eugenelyj
Copy link
Author

@cornerfarmer Thanks for your quick response :) I will try to create a PR

@cornerfarmer
Copy link
Member

Hey @eugenelyj, any updates here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
2 participants