Special meshes and surface appearance!

Hi! I am working on a game and I am using special meshes so i can quickly switch between different meshes and textures, now my problem is that when trying to use Surface Appearance on a special mesh the texture doesnt show up. I need to use surface appearance instead of normal texture id because for some reason importing a transparent texture with a normal texture id gives it a black background and using a surface appearance seems to fix it.

Any advice? maybe getting the surface appearance to work or to get rid of the black background on a normal texture id? ( really need it to have a transparent background )

1 Like

So as you’ve discovered, you cannot put a surface appearance on a special mesh.
With special meshes the only thing you can do is put the colormap into the TextureId, however, you cannot have any alpha in your colormap with mesh TextureIds or it appears black where the alpha would be.

You’ll have to find a workaround using regular MeshParts instead of SpecialMeshes if you need to use SurfaceAppearances.
You can use MeshId in a regular MeshPart if you’re changing its ID- I mean you’d be doing that with a special mesh so…

Sorry I couldn’t help

1 Like