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

Fix compression bug in segmentation palette #3937

Merged
merged 1 commit into from
Aug 9, 2021

Conversation

saihv
Copy link
Contributor

@saihv saihv commented Aug 7, 2021

Fixes: #3423

About

The modified segmentation material in #3053 used a wrong compression type on the palette texture, causing the colors to become inconsistent with the old seg_rgbs.txt. Compression should be HDR instead of Default, and the sampler type in SegmentationMaterial.uasset for the texture should be LinearColor instead of Color.

How Has This Been Tested?

With the script from #3423 (comment) (thanks @TidalPaladin !) - the output of this script should match the (flipped) values from https://microsoft.github.io/AirSim/seg_rgbs.txt.

Screenshots (if appropriate):

Before fix:

image

After fix:

image

Output of script vs. actual seg_rgb values:

image

@jonyMarino
Copy link
Collaborator

Thanks, Sai!

@jonyMarino jonyMarino merged commit 7b7ee7f into microsoft:master Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Image Segmentation Color mapping wrong
2 participants