Add outfit: Difference between revisions

From VR Wiki
No edit summary
Line 27: Line 27:
Outfits specifically made for your model are easiest to fit and require little work. However ,they often need some cleaning/optimizing. Not everyone gets the whole "why does vrc perform so badly when everything in it is player made assets" thing.
Outfits specifically made for your model are easiest to fit and require little work. However ,they often need some cleaning/optimizing. Not everyone gets the whole "why does vrc perform so badly when everything in it is player made assets" thing.


Summary:
'''Summary:'''


* Try and find outfits that are close to the body shape of the model
* Try and find outfits that are close to the body shape of the model
Line 65: Line 65:
[[File:appendit.png|frameless|to append to a blend file]] [[File:selecteverythingfromobjec.png|frameless|select all objects]] [[File:Willappearlikethis.png|frameless|will appear something like this]]
[[File:appendit.png|frameless|to append to a blend file]] [[File:selecteverythingfromobjec.png|frameless|select all objects]] [[File:Willappearlikethis.png|frameless|will appear something like this]]


Summary:
'''Summary:'''
* Clean up base model
* Clean up base model
* Save in subfolder
* Save in subfolder
Line 83: Line 83:
# Press 'save as rest pose' to lock it in place. Remember to make regular iterative saves! (ctrl-shift-s, hit + icon)
# Press 'save as rest pose' to lock it in place. Remember to make regular iterative saves! (ctrl-shift-s, hit + icon)


Example screenshots (view the captions for comment)
'''Example screenshots '''(view the captions for comment)


Getting started:
Getting started:
Line 107: Line 107:
[[File:Closeshapeandsize.png|frameless|more or less done]]
[[File:Closeshapeandsize.png|frameless|more or less done]]


Summary:
'''Summary:'''


* Before merging armatures, use pose mode to squish and move the outfit to roughly match your model
* Before merging armatures, use pose mode to squish and move the outfit to roughly match your model

Revision as of 14:21, 21 November 2022

This covers an example of what kind of operations are needed to put an outfit on a model. This will start with an outfit that is not rigged or sculpted for the base you're putting it on. In effect this is how to make a custom outfit, although if you do have a pre-made booth outfit you follow the same steps but skip most of them. Skills also can be used here to put on a hat or hair pin or something.


It will cover the following:

  • Cleaning up an outfit for import
  • Appending meshes into the same blender project
  • Roughly getting the imported clothing the same size and shape as the base model
  • Fine tuning the fit using sculpting/proportional editing/editing
  • Weighting the outfit using data transfer and weighting cleanup techniques
  • Shortcuts such as mesh deletion and shapekeys to prevent clipping
  • Merging and optimising materials
  • Exporting to FBX
  • Importing into unity and copying over existing settings
  • Cleanup and fixing scuff

Key skills: Merging, sculpting, materials, vertex groups, bones, pose, weighting, editing, export, pumkins tools,


Finding an outfit to Use

It gets easier the closer it is to your model's figure and shape, and the less mesh is actually present, and how much of the outfit is nearly skintight. Boobs tend to be the main factor in fitting clothing; outfits with boobs will have appropriate textures for big boobs with shadows and dense UVs for those areas. Fitting flatchest outfits to booba models will often result in very streeetched textures. fitting booba outfits to flat chest will often result in squieeshed textures and shadows for boobs that don't exist.

Anything can be used, but gamerips require more cleaning than anime girl outfits. They tend to have lots of unmerged vertexes, awkward UVs, and other tidbits that increase the difficulty. They will also have specific topology that won't match your model, resulting in more difficult weighting. Don't be put off but it is a pretty significant time investment to polish these.

Outfits specifically made for your model are easiest to fit and require little work. However ,they often need some cleaning/optimizing. Not everyone gets the whole "why does vrc perform so badly when everything in it is player made assets" thing.

Summary:

  • Try and find outfits that are close to the body shape of the model
  • Gamerips take more time and are higher difficulty
  • Pre made outfits are pretty easy

Cleaning up an outfit for import

The goal of a pre-clean is to remove bits you don't need. This bit is reasonably simple:

  1. First take a look at the model, look at the shapekeys, the parts, the materials. Fix up the materials by adding textures if neccessary, and whatever.
  2. Delete mesh from the outfit that you do not need. Go into edit mode, and select mesh. See [Link to blender hotkeys] for mesh manipulation hotkeys, but I find ctrl-l to be the most handy. Using CATS to seperate the outfit by materials is also very useful for removing parts.
    • Delete mesh from mesh objects or delete entire objects.
    • Use ctrl-l to select all linked, circle (c) and box (b) select. Going into wireframe mode can help seeing the verts.
    • Cats seperate by part/material can help cut the model into pieces for deletion.
  3. Delete unneeded bones in edit mode. Wiggle/move them in pose mode to check they don't affect anything any more. Select them in edit mode and delete them. shift-g when a bone is selected can help you select all children; and circle select (c) is handy for selecting multiple bones.
  4. Apply transforms. Blender sneakily also stores a position of mesh as an offset, and when merging two together, the offsets are reset. In object mode; ctrl-A and apply location,rotation and scale.
  5. Save this cleaned outfit as a .blend file.:
A cleaned outfit. Still in pieces, but doesn't have useless mesh or bones.

Summary:

  • Take a look at the outfit.
  • Delete stuff you don't want.
  • Apply transforms.
  • Save this as a .blend file

Preparing and Bringing together

Next step is to prepare your base model for the outfit. I recommend making a sub folder, and making a copy of your blend file there and working from that. Once you are done with the outfit it's easy to merge it back up and make it part of a set - although this is not recommended as it bloats avatars.

  1. Clean up the 'branch' of your base model the same way you did your clothing. Remove mesh and bones you don't need (I often leave underwear on while I'm working on it though). For full outfits, at least. For just a small addition, just remove what you are replacing, or maybe remove nothing at all. It makes it much easier to work on if all you have is the outfit and the base.
  2. Save the blend file in a subfolder. It helps having outfit related stuff sectioned off; especially since this is often a long process and I highly recommend making many iterative saves. Press ctrl-shift-s, hit the +, then save.
  3. To bring in the outfit, go to File --> Append, select your blend file, then go into objects, and select all the meshes and bring them in. This will give you two armatures. Leave them separate for now.

to append to a blend file select all objects will appear something like this

Summary:

  • Clean up base model
  • Save in subfolder
  • Append clothing blend file onto base

Getting the Clothing Roughly in Shape

Skill: Pose mode modifications

Now that the blend file contains both the clothing and your base at the same time, the first step is to use pose mode to get them roughly aligned.

  1. Take a look at how different they are. Use the view controls like middle mouse button drag, zooming, and such to get a general feel of how close you are.
  2. Enter pose mode and select the hips. Move the clothing with transform - g - and lock the axis with y, x or z. Move it so the hips are roughly in the right location.
  3. Then use scaling. In pose mode, hit s, then z y or x to lock the axis. Concentrate first on getting the scale of the torso approximately right. Use the hip bone to get the butt roughly in the right place and size, then chest and then shoulders. When you change the scale of a bone it will change the scale of all the children of that bone by default. If you need to scale something other than the hips (EG the torso is too long) do parent bones first.
  4. To lock the scale of child bones, go into edit mode, select the bone and click the green bone icon in the properties pane. Change inherit scale to none for bones you don't want to be scaled. For example if you want to make the legs shorter without squishing the feet, disable scale inheritance, and then scale the bones. When doing legs and arms and such, look for the symmetry options up at the top right; you will want x symmetry.
  5. Tweak until roughly right. Sculpting and proportional editing will make the mesh much closer in shape.
  6. Press 'save as rest pose' to lock it in place. Remember to make regular iterative saves! (ctrl-shift-s, hit + icon)

Example screenshots (view the captions for comment)

Getting started:

This one started pretty close but you can see it's offset Enter pose mode with CATS

I lined up and scaled the outfit. First I moved it back, then I scaled it up or down a little so that the arms matched up a little more.

moved the outfit with g -z and it lines up pretty well alreadyI looked at how close it was and it was pretty close. Observatons: not thicc enough, and the shoes are too low.

I somehow chose an outfit that was pretty damn close to my base model so not much here was needed. The shoulders match up and the hips are roughly in the right position. You can see that the pants are completely not thick enough but that gets sorted later. Note that if you're posing and stuff looks wrong, don't leave it like that.

To change the shoes higher I will then move the legs up. However I don't want the shoes squished:

Shoes too low.Shoes too low.For the bone you don't want affected, select bone, then go into green bone properties and turn inheritance off. Because that bone isn't changing it also won't affect child bones of that bone.

Then I moved the legs; select both legs with ctrl-click then s - z then moved. I also wanted to rotate the shoes, but I used symmetry. Hit the x symmetry next to the butterfly at the top right and whe you rotate a bone it does the mirror action. Symmetry is pretty important overall. As a rule; keep your base body symmetrical. Outfits rarely are.

Tiny x buttonmirror symmetry.

And I just kept going, making small adjustments, then applying as rest pose until the overall shape and size was close:

more or less done

Summary:

  • Before merging armatures, use pose mode to squish and move the outfit to roughly match your model
  • Scale (s) and move (g) and rotate (r) all allow locking axis with x y or z.
  • Aim for shoulders and hips first
  • Apply as rest pose when done