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

White Pixels Around Transparent Textures #121

Open
vincent-edward-lo opened this issue Apr 13, 2020 · 4 comments
Open

White Pixels Around Transparent Textures #121

vincent-edward-lo opened this issue Apr 13, 2020 · 4 comments

Comments

@vincent-edward-lo
Copy link

Hello again,

I'm using some cards for the character's hair.
But no matter what algorithm I use for the PNGs, the hair cards have white pixels that surround the textures. As a result, the hairs look white from afar.

Here's a screenshot of the glTF.

hair_whiteBorders

I tried a bunch of PNG export options from Photoshop.

  1. Using Substance painter exported hair map
  2. Using Burn Tool to paint away alpha
  3. Using Burn Tool to paint away more alpha
  4. Using Burn Tool to paint away even more alpha
  5. Using map with RGB fully opaque and Alpha channel
  6. Using Save For Web, PNG8, Brown Matte
  7. Using Save for Web, PNG8, Dithering Transparency
  8. Using Save For Web, PNG8, No Matte

I'm no expert in Transparency/Shaders/Image Formats, but as far as I understand, Options 5 through 8 should produce results that don't have white pixels, but yet they do?

I am using this shader: glTF_PBR.ogsfx.

Here are more close up pictures of the problem.

hair_whiteBorders_closeup

hair_whiteBorders_closeup_02

Is there a setting I'm missing before export to avoid having the white pixels?

@ziriax
Copy link
Contributor

ziriax commented Apr 14, 2020

Interesting. Could you send a minimum scene that reproduces this?

@vincent-edward-lo
Copy link
Author

Here are the color maps I'm using for the hair.

hairTextures.zip

@ziriax
Copy link
Contributor

ziriax commented Apr 18, 2020

Can you share a Maya scene (.ma) file with me? Saves me time.

@vincent-edward-lo
Copy link
Author

hair_cards.zip

I exported out the hair cards here. Sorry for the delayed response.

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