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

Segmentation mask of reflection #1121

Open
cs-mshah opened this issue Jun 29, 2024 · 1 comment
Open

Segmentation mask of reflection #1121

cs-mshah opened this issue Jun 29, 2024 · 1 comment
Labels
question Question, not yet a bug ;)

Comments

@cs-mshah
Copy link

Describe the issue

I have an interesting use case:
I have a mirror and an object in front of it. I am able to get the rendering and segmentation mask of the scene. But I also want the segmentation mask of the reflection of the object in the mirror. How should I achieve this using blenderproc?

Minimal code example

No response

Files required to run the code

No response

Expected behavior

An additional data key called "reflection" would be beneficial after calling the blenderproc render function. This should contain the mask of the reflection that would be visible in the mirror of the object in front of it.

BlenderProc version

v2.7

@cs-mshah cs-mshah added the question Question, not yet a bug ;) label Jun 29, 2024
@cornerfarmer
Copy link
Member

Hey @cs-mshah,

interesting question. This definitely does not work out of the box.
You could try to do it similar to how the old segmap renderer worked (https://github.com/DLR-RM/BlenderProc/blob/main/blenderproc/python/renderer/SegMapRendererUtility.py):

However, I am not fully sure this works. It might be that due to the mirror you get blur or not uniform coloring of the object of interest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question, not yet a bug ;)
Projects
None yet
Development

No branches or pull requests

2 participants