This is quite complicated for me to explain, but you want to get the image from the shirt/pants assets (can be done by just triyng to set a decal’s id to the shirt/pants id), once you have the image id, you apply it to the mesh’s TextureID, which you would probably have UV-wrapped in blender beforehand
I would recommend to try out the new layered clothing on that boi. Also, it looks very cute!
So it means i can use a custom template but i have to uv wrap it first to the mesh before i exporting it as an obj?
If that’s the case how am i going to make a texture apply to multiple parts (Torso, Left and Right Arm), Do i have to export the Torso, Left and Right Arm as a group?
And if that’s an other casee thennn how am i going to separate them as Torso, Left Arm, and Right Arm, and would the texture still work?
If you just uv-map it correctly in blender, with any shirt & pants (literally just has to look normal), then you can export them seperately and they will work as normal.
For the mapping part, i would suggest you make sure the uv-map gets as close to the edge of the texture, you can use something like snapping to pixel corners.
For applying the shirt/pants you first have to get the image id of them, as i explained earlier, by setting the shirt/pants id to any decal/imagelabel, then the decal/imagelabel corrects the shirt/pants id to a texture id, you set the MeshParts, aka the limb’s TextureID, to the id the decal/imagelabel gives you.
This should work as a way to apply shirt/pants textures to a custom model.
layered would look out of place- and also i want players to make their own clothes by giving them a template for it and them making clothes over it.
And yes im trying to make it appealing to all ages- not too childish and too serious
Its just mah bois looking inappropriate-
alright will try, hopefully it works haha, ill show what i did so far when its done
If it turns out not working for you, you can send the .blend file to me and i will see if i can do something about it, but i think you would be able to do it without any further problems.
will do, thanks again, solo dev sucks
As long as it has a Humanoid, shirts and pants should work. Have you set the RigType property of the humanoid to R6? Because this rig only has 6 body parts, which are named correctly for R6.
Yup, i did set it to r6.
I think maybe its cause its body parts are made out of mesh? which im trying to fix by UV mapping the texture of it as Crypted says.
I managed to make it work buuuut it seems like textureId doesnt support transparency?
That black part supposed to be a Transparent Area
I think you can just set the transparency to a very small value and it should act like a cutout thing, or you could try making a transparency mask and use SurfaceAppearance
did research for it but oh well its too hard for roblox to implement that thing.
SurfaceAppearance does no use either, cant change the value using scripts which is obviously needed for customization kind of thing
If you’d like to use Humanoids with Shirt and Pants instances, I’ve documented what the UV map should like like here:
I was able to make custom arms, legs, and heads and stick them on existing R6 and R15 models. R6 and R15 each have a different UV map format to follow.
I saw this post when I was looking for existing documentation, so I figured I’d come back and help you out!
Yup i did fix it, im just figuring out now a work around for a transparent texture to be see-through for clothing
Shirts and Pants on humanoids should support transparent textures.
I think right now you’re not using Shirts and Pants, right? Are you assigning the mesh’s Texture property to the shirt or pants texture instead? It might be possible to get transparency working that way but I’m not sure. You might have to do something really funky like laying a .001
transparency part (for mesh transparency) over a non-transparent part (opaque for skin color).
If you UV map your body parts for generated humanoid clothing textures then it should support normal skin-color-behind-clothing transparency like humanoids. This is not the same as UV mapping them for the Shirts and Pants textures. You could look into UV mapping your body parts for clothing if you can’t get transparency working with your current method of doing things.
Yes, since putting shirts inside a humanoid and assigning its Id doesn’t work, even tho i think i uv mapped each body part correctly
With R6 characters you might need to use a CharacterMesh instead of using actual MeshParts. When using a CharacterMesh, you have normal Parts for the character’s body parts then set the mesh id in 5 CharacterMeshes to match your mesh ids.
The resources post I linked correctly UV maps some meshes for use with both R6 clothing and R15 clothing.
The zip file in the resources post I linked includes a dummy character that uses CharacterMeshes and an annotated template clothing that you could start with. You can also insert an R6 character with CharacterMeshes using the “Create Rig” built-in plugin.
If you need to use actual MeshParts and want skin color to show under clothes textures, you can do one of the following:
- Make an R6 character with CharacterMeshes for visuals only – disable CanCollide and CanTouch on all of its parts and weld it to your real, MeshPart-based, invisible character model.
- Make it an S15 character with skinned meshes (i.e. bendy meshes). This probably fits your characters better than R15’s old rigid joints.
- Make it an R15 character, but use only your own animations so that it looks like an R6 character.
- Make an R15 character, but build your meshes for rigid joints.
- Don’t use real humanoid clothing (like you’re doing now), and use two layers of parts to layer a mesh-with-clothing over a skintone-colored mesh. I gave a more detailed suggestion for this in my last post.
So i found another work-around, inserting a special mesh inside a base part, and inserting a decal in that same base part and setting it to the shirts id
(But roblox stated that they’ll have to render this kind of thing it twice, but i cant think of any other solution)
Ignore the error lol, its uhh another bug in my game that im fixing (solo dev sucks.)