I’m currently working on a game where mesh parts are being used for the character. The mapping on the texture is correct, however, for some odd reason, all the transparent parts of the texture are black, thus resulting in the whole part being black.
Here is the texture file:
And here is the result:
It’s so black in fact you loser all depth perception.
Any solutions to this? The texture file is a PNG and when attempting to apply the texture to a special mesh, rather than mesh part, the same issue occurred.
Can you show me the explorer window with the full drop-down of options? I believe you may have the color of texture set to 0,0,0 which will force the texture black. If not, it could have to deal with the UV mapping of the mesh.
Can you please provide more details so I can help?
Assuming that TextureID is an actual ID rather than words, it looks like the problem lies within your UV map; however, from the looks of it TextureID appears to just be words. When I do the same with another in-game mesh, it comes out as an ID rather than as words (see below). Perhaps upload the texture as a decal and plug that ID in to test?
Right, the reason it is words is become the texture is sourced from the image directly, however, you can do it via ID as well. Here is that ID, the same effect occurs when using the number ID as well.
I’m going to load it into Adobe illustrator and photoshop real quick to see if its the image itself as the problem or if its Roblox’s poor on-site loading of said image.
Your mesh could potentially be vertex painted black, however vect0rius would probably know in this case, if it’s not then you could maybe export it into Blender and visualize it by enabling Vertex Paint mode. With the knowledge we have of this situation I’m not sure what else the solution could be.
Although it could be that, it doesn’t seem to be since in Illustrator it loads in as transparent and, in the image he provided on a yellowish-tan part, the image has a transparent background.
I’ll have the modeler recheck, he’s extremely talented. If all is in order I may file this as a bug. The fact other transparent images render black leads me to believe the issue is consistent.
Have you tried making that portion of the model a part with a SpecialMesh, and then applying the texture as a decal within the same part? While Roblox can technically have alpha in textures, it’s moreso of a workaround to get it working.
This would also mean that the texture does degrade in quality a bit, and that this object would take more resources than it would normally. As PeteyK473 mentioned in an earlier reply, you may wish to consider vertex painting if that’s possible with how the mesh is arranged.
My modeler said no to the vertex thing, we attempted taking a part adding a special mesh and adding the texture and mesh ID, it yielded the same result.
Was the texture ID placed into a decal alongside the SpecialMesh within the part? The texture ID for the SpecialMesh should either be blank, or whatever texture you would like underneath the decal if needed. It shouldn’t be used for the SpecialMesh’s texture ID, which would produce the completely black mesh as shown in your pictures.
This might be related to Roblox not properly rendering alpha maps. You can’t have transparent textures as the texture in a meshpart sadly.
Try duplicating the offending part, and remove it’s textures.
Then, on the MeshPart with the texture, add to 0.05 to the size of the mesh with the texture on it, and change it’s transparency to 0.01. Make sure the untextured part is below the textured part, and slightly smaller than the textured part. This is all assuming you want to use materials & colors on the MeshPart, while having a texture that gives it more detail.
This should allow you to color the untextured part without any issues, resulting in an illusion of proper alpha map rendering.
Sometimes this engine is simply too far back in the dark ages. Could you make that a feature suggestion, I would but I have to take 5 steps to get it posted there.