Overview
You rig a character you own in Mesh2Motion, catch an elbow that folds badly under automatic skinning, and repaint its bone weights by hand. The result is a two-image gallery at a matching frame plus a repaired GLB that plays the same way in a second viewer.
- A rigged copy of your own character with a manual weight painting pass on one elbow.
- Two screenshots of the same animation frame, one with automatic weights and one with painted weights.
- Two GLB exports,
before.glbandafter.glb, carrying the same animation. - A local
index.htmlgallery that sets the defect beside the repair and adds a screenshot from the Babylon.js Sandbox.
Tool
Mesh2Motion Update 14
Mesh2Motion runs free in a browser without generation credits. Its code uses MIT; imported models retain their own licenses.
Announcement
Mesh2Motion added manual weight painting for correcting automatic skinning. The browser tool supports adding, removing and smoothing bone influence.
Before you begin
A character model you made or hold the rights to
Use a GLB or FBX file with arms that bend at an elbow. Mesh2Motion also takes a ZIP holding GLTF with its BIN and textures.
A current desktop browser
Mesh2Motion runs free at app.mesh2motion.org with no account or credits. Use the browser app for this build, because the offline desktop releases in Mesh2Motion/mesh2motion-desktop date from August 2026, before Update 14 added weight painting.
A screenshot tool
The one built into your operating system is enough. You need two captures framed the same way.
Basic rigging vocabulary
You should know that a skinned mesh follows bones and that each vertex carries a weight per bone. No modelling skills are required.
Stage 01 · setup10 minutes
Set up the gallery folder
Have a project folder with your model in it and Mesh2Motion open in a browser.
Make one folder for the whole build so the gallery can link to its images and exports with relative paths. Copy your model into source/ and keep a note of where it came from, since the gallery page states its license.
mkdir -p elbow-gallery/source elbow-gallery/shots elbow-gallery/exports
cp ~/path/to/monster.glb elbow-gallery/source/New-Item -ItemType Directory -Force elbow-gallery\source, elbow-gallery\shots, elbow-gallery\exports
Copy-Item $HOME\path\to\monster.glb elbow-gallery\source\elbow-gallery/
source/
monster.glb # your own model
shots/ # screenshots go here
exports/ # GLB files from Mesh2Motion
index.html # written in the last stage- Open
https://app.mesh2motion.orgin your browser. - Choose
Use Your Modelin the top navigation. - Confirm that the panel shows a drop zone reading
Drop your 3D model here or click to browse.
The elbow-gallery folder holds your model in source/, and the Mesh2Motion Use Your Model page shows its upload drop zone.
Stage 02 · data20 minutes
Load the model and fit the skeleton
Bind a skeleton to your model with the optional weight painting step switched on.
Mesh2Motion accepts GLB and FBX files directly, and a ZIP for GLTF with separate BIN and textures. Its own hint marks GLB and FBX as the preferred formats.
- Drop
source/monster.glbon the drop zone, or click it and pick the file. The model loads as soon as the file arrives; leave theLoadbutton alone, because it loads the selected built-in reference model instead. - If the model faces the wrong way, use the rotate buttons until it faces front along the blue origin line, then press
Auto-align to floor. - Pick the closest rig in the
Skeleton templatelist. For a two-armed monster, start with the human template. - Press
Edit Skeleton. - Drag the joints so each elbow joint sits inside the elbow of the mesh. Use the undo button or
Ctrl+Zif a drag goes wrong. - Tick
Add weight painting step. Its help text says it adds an optional step after posing the bones. - Press
Bind pose.
After Bind pose, the weight painting step opens because you ticked the option. It has Paint and Test modes, and Test plays a few animations on the skinned mesh.
The weight painting step is open, with Paint and Test mode buttons and a bone list filled with your skeleton's bone names.
Stage 03 · test20 minutes
Record the elbow defect
Capture the automatic-weights version of one frame and export it as before.glb.
Use Test mode to find an animation where an elbow bends far, such as a punch or a wave. The usual signs are an inner elbow that collapses and forearm vertices that stay with the upper arm when the joint bends.
- Switch to
Testand pick an animation from the list in the panel. - Lower
Speedto0.25xor0.1xso you can watch the elbow fold. - When you have a clear defect, press
Continueto reach the animation list. - Find the same animation in
Library, tick it, and keep only that one selected. - Pause the player and drag the scrubber to the frame where the defect is worst. Write down the animation name and the frame number shown beside the scrubber.
- Frame the elbow in the viewport and save a screenshot as
shots/before-frame.png. - Use the download control at the bottom of the panel, choose GLB as the format, and save the file as
exports/before.glb.
The frame number is what makes the two shots comparable. Keep the camera where it is if you can, because the after shot should show the same angle.
shots/before-frame.png shows the bad elbow and exports/before.glb exists. Your notes hold one animation name and one frame number.
Stage 04 · build25 minutes
Repaint the elbow weights
Move vertex influence back to the right bones and smooth the bend.
Press Back to return to the skeleton step, then press Bind pose again to reopen weight painting. The joint positions you set are still in place, and the option you ticked stays on.
| Control | Effect |
|---|---|
Select Bone | Chooses the bone whose influence the brush changes. |
Add | Strengthens the selected bone on the vertices under the brush. |
Remove | Takes the selected bone's influence away from those vertices. |
Smooth | Blends each vertex with its neighbours to soften steps around a joint. |
Brush size and Strength | Default to 24 px and 50 percent. |
Mirror L/R | Applies the stroke to the matching bone on the other side. It starts switched on. |
| Reset weights to auto | Restores the automatic weights and removes all manual painting. |
- Switch to
Paint. - Under
Select Bone, choose the upper arm bone on the side you recorded. - Choose
Removeand paint over forearm vertices that the upper arm is dragging. - Select the forearm bone, choose
Add, and paint the same area at a lowerStrength. - If torso vertices follow the arm, select the upper arm bone and use
Removeon them. - Choose
Smoothand pass over the elbow crease a few times. - Switch to
Test, play the same animation at a low speed, and repeat until the elbow keeps its volume.
Small strokes at low strength are easier to judge than one heavy pass. Press Ctrl+Z to undo a stroke that makes the crease worse.
In Test mode, the recorded animation plays with an elbow that bends without collapsing or pulling nearby vertices along with the wrong bone.
Stage 05 · build10 minutes
Capture and export the repair
Save the painted version of the same frame and export it as after.glb.
Mesh2Motion's weight painting help text says painted vertices are kept when binding and exporting. Your own export is the test of that claim.
- Press
Continueto reach the animation list. - Select the same single animation you used for the before shot.
- Pause and drag the scrubber to the frame number you wrote down.
- Match the camera angle of
before-frame.pngand saveshots/after-frame.png. - Use the download control again with GLB selected and save
exports/after.glb.
shots/after-frame.png and shots/before-frame.png show the same animation frame from the same angle, and exports/after.glb sits beside exports/before.glb.
Stage 06 · ship15 minutes
Check the GLB elsewhere and build the gallery
Prove the repair survives export and publish the comparison as a local page.
The Babylon.js Sandbox loads a GLB dropped on the page and has playback controls that pause and scrub animations. It does not share code with Mesh2Motion, so it is a fair second viewer.
- Open
https://sandbox.babylonjs.comin a new tab. - Drag
exports/after.glbonto the page, or use the open button in its toolbar. - Play the animation, pause it, and scrub to the bend you repaired.
- Save a screenshot as
shots/after-babylon.png. - Load
exports/before.glbthe same way and confirm the defect still shows there, so the difference comes from the painting.
Now write the gallery page. Replace each REPLACE marker with the matching detail from your notes, starting with the model name and its license.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Elbow repair gallery</title>
<style>
body { font-family: system-ui, sans-serif; max-width: 960px; margin: 2rem auto; padding: 0 1rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
figure { margin: 0; }
img { width: 100%; border: 1px solid #ccc; }
</style>
</head>
<body>
<h1>Elbow repair gallery</h1>
<p>Model: REPLACE with your model name and license. Animation: REPLACE. Frame: REPLACE.</p>
<div class="pair">
<figure>
<img src="shots/before-frame.png" alt="Automatic weights: the elbow folds inward">
<figcaption>Before: automatic weights</figcaption>
</figure>
<figure>
<img src="shots/after-frame.png" alt="Painted weights: the elbow keeps its shape">
<figcaption>After: painted weights</figcaption>
</figure>
</div>
<h2>Viewer check</h2>
<img src="shots/after-babylon.png" alt="Repaired GLB playing in the Babylon.js Sandbox">
<p>Files: <a href="exports/before.glb">before.glb</a>, <a href="exports/after.glb">after.glb</a></p>
</body>
</html>
Open index.html by double-clicking it. The images load from shots/ and the links point at exports/, so keep the folder structure intact if you zip it up to share.
index.html shows the before and after frames side by side above the Sandbox screenshot of the repaired elbow. Both GLB links download their files.
Troubleshooting
The file picker greys out a .gltf file.
The upload accepts .glb, .fbx and .zip. Put the .gltf, its .bin and its textures in one ZIP and upload that, or export a single GLB from your modelling tool.
The model loads lying down or facing away.
Return to the load step and turn the model with its rotate buttons. When the front of the model lines up with the blue line, use Auto-align to floor to stand it on the ground.
No weight painting step appears after Bind pose.
Go back to the skeleton step and tick Add weight painting step. Clicking Bind pose a second time opens the painting step.
Painting changes the wrong arm.
Mirror L/R is on by default and copies each stroke to the opposite bone. Switch it off, undo the stray strokes, and paint again.
The after shot does not line up with the before shot.
Check that only one animation is selected and that the scrubber sits on the frame number you wrote down. Move the camera back to the earlier angle before capturing.
The Sandbox shows the mesh but no animation controls.
The controls appear only when the file holds animations. Export again with at least one animation ticked in the Mesh2Motion list.
Done when
- The gallery includes the original defect and the repaired pose. An exported GLB reproduces the repair in a separate viewer.
Going further
- Repeat the repair on a knee or shoulder and add a second pair of images to the gallery.
- Export the repaired character as FBX as well and compare it in a game engine you already use.
- Give the monster a held prop from the Mesh2Motion props picker and check the wrist weights under its pose.
- Record a short screen capture of the Sandbox playback and link it from the gallery page.
References
An AI guide writer drafted this walkthrough against the official documentation above, automated template and style checks validated every block, and an independent AI reviewer verified commands, flags and claims before publication.
