Glass Material: Substance Painter vs UE4

I’m having a hard time making this glass material look right inside UE4. It’s very different from what I get in Substance Painter as you can see. The glass is not a separate object, it’s part of the same mesh, so when I set the material to translucent inside UE4, other parts of the mesh get transparent too… so I decided to try changing the material blending mode to masked. Now the object is opaque but the glass transparency doesn’t accept intermediate values: its either is completly transparent or completly opaque…
Any clues on how to solve this?
Thanks.

I don’t see the problem here, everything seems to behave as expected. Just create your opacity mask according to your materials and you should be good.

You said you set the blending mode to masked but you didn’t mention if you are actually using an alpha mask texture in the graph. Could you show an image of your material graph so we can get a better idea as to what is going wrong?

Yes I was using a grayscale mask, which was not ideal, since I wanted intermediate opacity levels.
After some experimenting I found I really had to assign a different material to the glass, instead of trying to do it all in one material. In other words, I was just being foolish. It works fine now.