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

Support depth + normal map generation #5

Open
gizatt opened this issue Apr 9, 2019 · 1 comment
Open

Support depth + normal map generation #5

gizatt opened this issue Apr 9, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@gizatt
Copy link
Owner

gizatt commented Apr 9, 2019

view_layers["View Layer"].use_pass_z
view_layers["View Layer"].use_pass_normal

And then somehow extract them. They get rendered alongside the combined image in the render result.

@gizatt gizatt added the enhancement New feature or request label Apr 9, 2019
@gizatt gizatt self-assigned this Apr 9, 2019
@gizatt
Copy link
Owner Author

gizatt commented Sep 28, 2021

https://blender.stackexchange.com/questions/56967/how-to-get-depth-data-using-python-api

Programmatically adding a viewer node for each channel seems like the right idea to force Blender to save those images in a way I can get at them.

image

This setup seems to spit out the right files (though you have to give each file output a different folder as a base path so the images don't overwrite each other -- how do you specify output file name?)

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

No branches or pull requests

1 participant