Customizable Player Models (Fabric)

Customizable Player Models (Fabric)

389k Downloads

(BTA 7.3_04, CPM 0.6.24a) Transparency rendering issues

pedrothepanda64 opened this issue ยท 2 comments

commented

CPM 0.6.24a for BTA 7.3_04 does not appear to properly support transparency. Instead of correctly blending transparencies, they completely override anything behind them.

Image Image

You can see straight through my head in BTA. Here is how it should look using the same model in Minecraft 1.21.8:

Image Image

Players in spectator will appear completely opaque while their CPM model is active. Note that this player's name and armor are not visible in the first screenshot where they are in spectator mode, which then re-appear when they enter survival mode:

Image Image

The player should be completely invisible in the first screenshot.

commented

Important note: BTA does support transparency blending on normal Minecraft skins.

Image
commented

I have what I believe is the same issue, however it also extends to the Editor.

In-game, any part of an opaque element occluded by a translucent element will be culled as seen in the following examples:

Opaque element completely inside translucent element Opaque element partially inside translucent element

In the editor, any part of an opaque element occluded by a face of a translucent element will flicker rapidly, as seen in the following example:

Image

One thing to note however, is that if a translucent element is occluded by another translucent element, it will render correctly both in the editor and in-game, as seen in the following example:

Translucent element inside another translucent element

Attempting to use this as a workaround, by giving our opaque elements the slightest of alpha, seems successful initially, however anything beyond two layers of translucency causes rendering issues.

Elements with slight alpha Elements with slight alpha behind two translucent elements

In-game with the workaround seems promising with no clipping, however the player in this image is wearing a diamond helmet that is invisible.

Invisible diamond helmet

Technical Details
CustomPlayerModels 0.6.24a
NeoForge 21.8.31
Minecraft 1.21.8