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

Issue with Transparent Shader Blocking Annotations in Perception Package #624

Open
asadhazenai opened this issue Sep 3, 2024 · 1 comment

Comments

@asadhazenai
Copy link

Hello,

I am encountering an issue with the transparent shader used in distractors. While the object is visible to the human eye, it does not appear in the annotations. When I disable the transparency, I notice that some polygons are obstructing the object behind it.

I have attached two screenshots for your reference.

Could you please advise if there is a solution to this? Additionally, I would like to understand how the perception package generates annotation boxes. Does it utilize raycasting for this process? I’ve set the object layer to ignore raycasting, but the transparent parts of the distractor still seem to block the object.

I appreciate your assistance.
Rendering_01
Rendering_02

@esgnn
Copy link

esgnn commented Sep 4, 2024

I haven't used perception package for quite some time but if I recall correctly it used a custom pass to create a mask (like segmentation) and convert it to bounding boxes. That's why leaves, which are basically planes with an alpha threshold applied, obstructs the car and creates a smaller bounding box.
According to the documentation there's an "Alpha Threshold" setting under the "Perception Camera Component", playing with it could solve your problem.
Have you tried creating segmentation masks of the scene, do they have the same problem?

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

No branches or pull requests

2 participants