Jump to content

diffuseTexture with alpha channel has edge artifacts on iOS?


jps0611
 Share

Recommended Posts

Hello, sorry to interupt you in this passionated topic! I really liked following your ideas and brainstorming on the subject.

But I have to participate because I have the same issue. All the png and svg image I import in babylon have this dark/grey edge showing when you set hasAlpha to true.
See in this playground : https://playground.babylonjs.com/#U6F7E2#12

For me the problem occurs on every browser.
I tried all of your solution above and none has work.

The only way I found to improve this was to use engine.setHardwareScalingLevel(0.5); but not very nive for the GPU I guess.

Hope that can help the topic! ;)

Link to comment
Share on other sites

Do we and if not why don't we have a method for setting a specific alpha texture so we can have a separate image an alpha?

 


IE:
myMaterial.alphaTexture = new BABYLON.Texture("PATH TO IMAGE", scene)
myMaterial.alphaTexture.blackAndWhite = true



Are yall still getting the artifacts with this:
https://playground.babylonjs.com/#HLGXFX#3

*UPDATE*
Dumb dumb dumb...
http://www.babylonjs-playground.com/#4K1IX9

Just export your cat on a solid yellow background, then export the opacity pass as a separate image.
Should fix your artifacts.


Why material.opacityTexture is not mentioned in the docs anywhere I can find is beyond me.

Link to comment
Share on other sites

Quote

Why material.opacityTexture is not mentioned in the docs anywhere I can find is beyond me

Because documentation is a long and painful work and we are not getting a lot of help on this front :) (However I wanted to shout out to @JohnK for his invaluable help on the doc)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...