View Full Version : Objects transparent where they're overlapping certain things?

24th Apr 2018, 9:47 PM
I've had this before. Certain objects either get transparent where they should be opaque, or invisible where they should be transparent, when you position the camera in a way that they overlap a certain other object. This usually happened when the problematic object overlapped one with an alpha. I could solve this by setting stdMatAlphaTestEnabled to false a few times. It won't be transparent then, but whatever.

The problem I ran into today is this chair:


From here (http://hafiseazale.tumblr.com/post/69338718986/i-know-its-a-bit-early-but-i-wont-be-around).

It shouldn't be transparent at all, and I couldn't find anything in the TXMT that would suggest that the object somehow "thought" it was. It also didn't only look weird when I placed it on a rug that had an alpha, but also when certain parts of itself overlap. (See screenshot; when I turn it around so that the back is visually overlapping the seat, the back turns partially transparent.)

Is there any chance the issue is still with the texture? I fell madly in love with this set when I saw it and this drives me nuts, but I can't mesh for shit.

24th Apr 2018, 9:53 PM
Since the object requires no transparency, try changing stdMatAlphaBlendMode to none.

25th Apr 2018, 1:00 AM
If you use stdMatAlphaBlendMode with blend on an opaque object, it often shows with weird transparency when there shouldn't be any, because the blend setting can also transfer to opaque objects if the mesh isn't properly layered. There's no opacity in te texture of that chair (barstool?) so like HugeLunatic says, try setting it to "none" for the "cushion" TXMTs.

The blend setting can be a hard nut to crack. It does weird things if the mesh groups aren't layered properly, especially if there's more than one layer with opacity. For transparent objects with blend, I prefer to keep all the transparent parts in their own group, so they have their own TXMT. Makes things easier...

26th Apr 2018, 1:18 PM
Oh, now that makes sense. I completely forgot about that line and only checked stdMatAlphaTestEnabled. Thanks!