Skip to main content

Smear Generator

The Smear Generator builds the afterimage for your avatar from your avatar's meshes, plus a set of lagging bone copies that drag that mesh behind you when you move. Everything it makes goes into one object called Smear Container, next to your avatar's mesh.

Open it from Tools > MenekoSmears > Smear Generator.

Need help?​

If this guide doesn't answer your questions go ahead and feel free to pop into the Support Discord Server


Quick start​

  1. Drag your avatar into Avatar to Add Smears to at the top of the window. The mesh list fills itself in.
  2. Open Material and press Presets to start from a preset, or Create next to Smear Material for a plain one. You can also drag in a smear material you already have.
  3. Press Generate Smear at the bottom of the window.
  4. Press Open Preview to see a preview of the smears.

That's all you need for a working smear. The rest of this page explains what each setting does, so you can tune it.

tip

Anything that still needs filling in gets a warning icon on its section header and a red highlight. A Needs attention list above the Generate button tells you what's missing, and Generate won't run until all issues are resolved.


The top of the window​

Avatar to Add Smears to - your avatar's root object. Setting it fills the mesh list with the avatar's meshes (starting you off with one group combining all of them) and looks for a smear that's already installed.

Detected Smear - shows the installed smear the window found on this avatar. When there isn't one, it reads No generated smear detected instead. If one is present you can tune the smear's settings by messing with values in the Smear Generator and then clicking Update Smear.

Re-read Settings - replaces the window's settings with the ones the installed smear was made with, including the mesh list and groups. Use it when you want to reset changes made to the settings back to the smear's settings.

Open Wiki - opens this page.

info

Every section has a (?) button in its header that will open the matching help page.


Meshes​

This section controls which meshes get a smear and which meshes get combined into which smears. The lists allow you to sort meshes into groups and each group becomes one combined smear. Skinned meshes and plain Mesh Renderers both work; a plain mesh, like a prop held in a hand, trails with the bone it is attached to.

  • Keep Separate - meshes in this list each get their own smear. Drop a mesh here to take it out of a group.
  • Group 1, Group 2... - meshes in the same group are merged into one smear. Drag meshes by their handle to move them between lists. + Add Group makes a new group, and the X on a group deletes it and moves its meshes back to Keep Separate.

Use + to add a mesh slot and X on a row to remove it.

When Build From (in Smear Mesh) is set to Bones, groups are turned off and only the first mesh is used.


Material​

Settings here pertain to materials and look of the smear.

Smear Material - the material the smear uses. It should use the MenekoByte/Smear Shader. While it's empty, the field and the Create button next to it are highlighted in red.

Presets - opens a list of every material in the generator's Presets folder, each with a preview. Click a preset to select it, then:

  • Create Material - saves a new smear material with that preset and assigns it.
  • Apply to Current Material - copies the preset's values onto your currently assigned smear material. It will overwrite the necessary values but its textures, colors and Index In UV setup are kept. With no smear material assigned, it asks where to save a new one.

Presets you drop into that folder show up here too.

Material Slots - how your avatar's materials carry over to the smear. Not available when Build From (in Smear Mesh) is set to Bones.

OptionWhat it does
Single MaterialOne material for the whole smear.
Separate Material SlotsThe smear keeps a material slot for each material slot on your mesh. Every slot starts with your smear material; you can then put a different smear material in any of them.
Index In UVOne material with multiple texture slots, up to 16. Good for a combined smear of body and hair that should still look like each part.

In Separate Material Slots and Index In UV, a list shows each material slot of your meshes:

  • In Separate Material Slots, set each one to Keep or Remove from smear.
  • In Index In UV, set each one to Texture (gets its own texture slot in the smear material), Solid Color (no texture, plain color), or Remove from smear.

Remove from smear leaves those parts out of the smear entirely.

Refill Slot Textures - (Index In UV only). Copies the textures and colors from the avatar into the smear's material slots. Generate, Update Smear and Update Material only fill slots that are empty or whose source material changed.

Create (next to Smear Material) - makes a new smear material and applies it.

Apply (next to Create) - puts the selected material on every smear mesh in the installed Smear Container. It only swaps the material.

Update Material - sets the smear material's Curve Trail, slot textures and Hide Distance to match the generator's settings. It glows yellow when the material is out of date.


Smear Mesh​

Settings in this section define how the Smear Mesh is built.

Build From

  • Mesh - the smear is built from your avatar's mesh. This is the standard option.
  • Bones - a lighter smear built from the bones only. Great option for weapon trails, lightsabers and such.

Curved Trail (Mid Point, 2x Polys) - adds a middle set of lagging bones and a middle row to the mesh, so the trail can arc and curve. It doubles the polygon count, and adds second set of constraints.

Polygon Count Mode - how much to simplify your mesh before building the smear. Not available in Bones mode.

  • Density - Mesh Density is a percentage value for how many polygons to keep. 100% leaves the mesh as is, 50% will try to cut the poly count in half.
  • Triangle Count - Target Smear Triangles aims for that many triangles in the smear. The result is approximate.

Preserve UVs - keeps UV seams intact, so textures look correct. Will increase the polygon count so turn it off if you don't need textures.

Smear Triangles - press Calculate to see how many triangles the smear will have.

Advanced​

Bounding Box Padding (m) - grows the smear's bounding box by this much (in meters) on every side. Unity hides a mesh when its bounding box is off screen, so the padding keeps a long trail visible when your avatar itself isn't.

Keep Blendshapes - copies the mesh's blendshapes onto the smear. Turn it off to save memory if you don't need them.

Read/Write - sets the smear mesh asset's Read/Write option.

Skip Vertex Colors - leaves vertex colors out of the smear mesh. Breaks the Smear Shader, but fixes Quest and Unity standard color issues.

Untriangulate - skips the diagonal edges after decimation, so fewer strips are made. Reduces the amount of edges reducing poly count and potentially helping with performance. Mesh mode only.

Fill Back Shell - also adds a copy of your mesh's faces at the end of the trail, joined to the strips. Mesh mode only.

Trailing Surface Only - only a lagging copy of your mesh's faces, without the stretched strips. It overrides Fill Back Shell. Mesh mode only.


Smear Constraints​

The smear is driven by copies of your bones that lag behind the real ones. This section controls how they lag.

Smear Chains​

Smear End Bone Suffix - the name ending for the End Bones of the trail.

Curved Trail - adds a middle set of lagging bones and a middle row to the mesh, so the trail can arc and curve. The same setting as in Smear Mesh.

Smear Mid Bone Suffix the name ending for the Middle Bones. It should be different from the End Bone suffix.

Under Settings:

  • Trail Follows Mid - with Curved Trail on, the end bones follow the mid bones instead of your real bones. Their lag adds on top of the mid bones' lag, so the trail gets longer.
  • Flatten Bone Hierarchy - puts all generated bones under one object instead of copying your bone tree.
  • Root Bone - the bones under this one get copies. It's filled in for you: your avatar's Hips, or for a mesh without one, like a weapon, the mesh's own root bone or its own object.

Follow Strength​

How long the smear is. Higher values follow the avatar more closely, which gives a shorter trail. Lower values give a longer trail.

  • End Follow Strength - how well the End Bones of the trail follow the body.
  • Mid Follow Strength - how well the Mid Bones, with Curved Trail on, follow the body.
tip

Turn on Sync to use the end strength for both.

Limb Follow Multiplier - additively scales the follow strength along limbs, comapred to the rest of the body. Above 1, the tips (like tails, hands, ears, etc.) trail less. Below 1, they trail more. At 1 it does nothing.

Under Advanced:

  • Measure From - which bones count as limbs. Humanoid Limbs means anything in the Humanoid Avatar descriptor. Bone Depth means everything under the Root Bone, by distance from it. Humanoid And Depth means the arms and legs plus any other branches attached to humanoid bones or the Root Bone, such as tails, ears and hair.
  • Ramp - whether the multiplier builds up evenly toward the tips (Linear) or mostly near the tips (Quadratic).

Smoothing Chains​

Extra layers of lagging bones placed before the mid and end bones. Each layer follows the one before it, and costs another full set of constraints.

  • Smoothing Bone Suffix - the name ending for smoothing bones. They're numbered: _S1, _S2, and so on.
  • Pre-Mid Smoothing Chains (Curved Trail enabled only) and Pre-End Smoothing Chains - how many smoothing layers to put before the mid and end bones.
  • Sync Strengths - on, one strength is used for every chain in a group. Off, each chain gets its own.

Bone Manager​

Removing or combining bones you don't need saves constraints and bones, which will impact your Performance Rank the most. The tree appears once a mesh and a Root Bone are set.

The list shows your bones, grouped under the object each armature belongs to, so your avatar's armature is easy to tell apart from outfit and add-on armatures that use the same bone names. Humanoid bones are marked with an icon. Use Search to filter it by name, and Refresh to rescan the bones. Presets saves the current exclusions and merges to a file you pick, or loads them from one, replacing what is set. A preset can also be used on other avatars: bones are matched by their humanoid assigment, then by their path.

Click the dropdown on a row, or select bones and use Mode dropdown under the list, to set how the generator will treat the bone:

ModeWhat it does
NoneThe bone gets its normal copy.
ExcludedThe bone and everything under it get no copy.
Merge To ParentThe bone gets merged to its parent. Its children still get copies.
Merge ChildrenEverything under the bone gets merged onto it.

Pair As Midpoint - select exactly two bones (Ctrl+Click) and press the button to merge the two bones on the middle point between the two. Press it again (it reads Remove Midpoint Pair) to unpair.

Bones that an outfit tool (VRCFury, MA) links onto your armature are locked and shown greyed out.

Exclude Unweighted Bones - Sets bones that are not attatched to anything to Exclude. This happens automatically on avatar load.

Merge Small Bones - Merges small bones together. Merge Below Size (m) sets how small counts as small. Skip Humanoid Bones keeps this button from merging humanoid bones; you can still merge them by hand.

Merge Small Bones also sets each intermediate finger bone to Merge To Parent and excludes the bones below it, even with Skip Humanoid Bones on. Outfit bones linked onto those fingers are cut the same way.


Hide in First Person​

Hides the part of the smear around your head when your view gets close to it, so the smear doesn't cover your eyes in first person. Tick the box in the section header to turn it on.

It works in two steps. When you generate, the parts of your mesh inside a sphere (the hidden area) are marked. In game, any marked part closer to your view than Hide Distance is hidden.

Show Gizmo - shows the sphere in the Scene view, with handles to move and resize it.

Hidden Area Radius - the size of the sphere.

Hide Distance - how close your view has to get to a marked part before it disappears.

Hidden Area Center Position - where the sphere sits. Snap to Avatar View Position moves it to your avatar's view position, or the head bone if there isn't one set in the Avatar Descriptor.

info

The sphere's size and position are baked into the smear mesh, so changing them needs a Regenerate. Hide Distance is a material setting and only needs an Update.


Generating and updating​

The footer always shows Cost: the bones, constraints and polygons the smear will add.

Generate Smear - Generates the smear. If an existing smear is detected, the button becomes Regenerate Smear, which rebuilds the smear in place. If anything is on the These need fixing list it will not generate.

warning

Generate/Regenerate only works outside Play mode.

info

Each generated mesh keeps a record of how it was made: the settings, plus the generator version, date, source meshes, triangle counts, bones, constraints and material. Expand the mesh asset in the Project window and select Smear Generator Settings to see the settings.

Update Smear - applies the settings that can be applied without rebuilding the mesh:

  • follow strengths
  • bounding box padding
  • material settings

When a setting has been changed, it gets a * next to it and the matching button lights up:

  • Yellow - press Update Smear to apply it.
  • Orange - press Regenerate Smear to apply it.
caution

Changes you make with Update Smear in Play mode are lost when you exit. The window keeps your settings, so press Update Smear again after leaving Play mode.


Preview​

Open Preview (or Tools > MenekoSmears > Preview Smear) opens a window for seeing the smear move. Avatar is the object it previews; changing it stops any running preview.

Outside Play mode - set a Move Direction and Speed, then press Start Preview. The smear bones are pushed back as if you were moving allowing you to see how the smear would look in-game.

In Play mode - the avatar moves in a circle. Set the Circle Radius, Speed and Circle Plane, then press Start Preview to watch the real smear move.

Stopping or closing the preview window restores the avatar back where it was.