I’m making tank tracks using skinned meshes so that they can conform to the terrain. It works perfectly, only problem is when it comes to putting a texture on the mesh. I need a texture so that it looks like the track is actually moving.
However, when I put a texture on the Top face, the texture is applied in two places. This wouldn’t be a problem, but I need one of the places it is applied to scroll in the opposite direction of what I think is the actual top face. Here’s a gif of what I mean: https://gyazo.com/50bb6d3bb623e6e7bd37438efb54d938
See how the texture is on top, but also on top of the bottom portion of the track? I want it to only be on top.
Unfortunately Studio treats any Normal that are within 45 degrees of “up” as the “top” (at least, I think it’s 45 degrees, please correct me if it’s not), and likewise for any other direction, and applies Textures (the object, not a MeshPart texture) and Decals accordingly.
This even includes Normals that aren’t the “top” but still facing upwards, as you can see with the single Meshpart that is two rectangles stacked.
As for a work around, I don’t know of any that don’t involve a lot of changes to how you currently handle the effect. One option would be split the tread into two MeshParts, the top (yellow) and the bottom (blue), and use the texture effect accordingly. I don’t know if this is the best option, of course
Your solution is exactly what I was thinking. I’m not the one who made this mesh (@rolbloxguy1876 is), I’m just in charge of making the deformation effect.
I was talking to him about it and he says that splitting it into two meshes like that would involve changing a lot of things. Is there any way to “hide” the texture where I don’t want it? I’d like to exhaust other possible solutions before re-making the entire mesh, it’d be a pain.
I’d recommend putting multiple textures set to different faces on the mesh. Being 6 different textures, that way it can cover pretty much the whole mesh structure.
But if it is a mesh with different faces designed for it, well I’m not exactly sure, maybe Make’em different parts with different decals or textures. The texture also align to the surfaces pointing toward a certain direction.