1
$\begingroup$

this glasses model seems to work fine with opaque or alpha hash selected but i need this custom alpha value with it that those other modes cant seem to deliver. it works fine until you pan a certain distance for the body to basically act like a mask for whatever reason.

blend file and glasses textures

tell me if the skin textures are needed as well

enter image description here

$\endgroup$
3
  • $\begingroup$ I don't follow. I see that the glass in glasses disappears. But why? What changed in your project? You say you need custom alpha value, but I see the alpha value is the same on both screenshots. $\endgroup$ Commented Jan 9, 2022 at 20:46
  • $\begingroup$ the texture of the front of the glasses disappears if you view the glasses from the side in the second photo. let me try to make a gif to explain better $\endgroup$
    – desperrrr
    Commented Jan 9, 2022 at 21:39
  • $\begingroup$ hey not to bother but is there an answer yet? $\endgroup$
    – desperrrr
    Commented Jan 10, 2022 at 14:31

1 Answer 1

2
$\begingroup$

Alpha blend requires that meshes get sorted in the right order-- if a deeper face gets drawn after a shallower face, then the deeper face will never get drawn because the depth buffer is already written with a shallower value. That's why alpha blend is so tricky, and gets trickier the more layers of alpha blend that you have.

In this case, it is usually the two sides, front and back, of the glasses that are confusing the sorting. For alpha blend materials, Blender gives the "show backface" option in material settings. By telling blender not to consider the backfaces in any sorting algorithms, the sorting will work more often:

enter image description here

Here, I'm comparing the glasses with "show backface" disabled, with the original glasses above.

Note that in this file, the glasses are not the only alpha blend material. You also have at least two thin eye layers that are alpha blend. The more layers of alpha blend you have, the more likely you are to get sorting issues. These sorting issues are only going to come out at specific angles and deformations, and it's impossible to check them all. If you can use alpha hash or clip on any layers, you will get better results. I know that there are some things that just don't work right without alpha blend, but you should pick just one, most important, layer to get the alpha blend.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .