Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

Point to new assets repository to get the source files. Move instructions to that as well.

Scott Petrovic43aa387e1c8c
diff --git a/CONTRIBUTOR.md b/CONTRIBUTOR.md
deleted file mode 100644
index 639728e..0000000
--- a/CONTRIBUTOR.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# Contributor Guide
-
-This is a work in progress document to help point people that might be interested in helping out.
-
-TODO: Make a template file to start. That will remove steps 2-8
-
-## Creating Animations from rig file
-
-The skeletons need to be compatible with the the web applicatoin. There are pre-rigged meshes ready to animate using Blender 4.5. These will make it very easy to add the animations to the application.
-
-1. Download the 3d Blender rig file you want to help with
-- [Bird Rig](https://github.com/scottpetrovic/mesh2motion-app/blob/main/static/blender/rigs/bird/rig-bird-v2.blend)
-- [Human Rig](https://github.com/scottpetrovic/mesh2motion-app/blob/main/static/blender/rigs/human/rig-human-v2.blend)
-- [Dragon Rig](https://github.com/scottpetrovic/mesh2motion-app/blob/main/static/blender/rigs/dragon/rig-dragon-v2.blend)
-- [Fox Rig](https://github.com/scottpetrovic/mesh2motion-app/blob/main/static/blender/rigs/fox/rig-fox-v2.blend)
-2. Create a new Blender file and delete all the objects (meshes, camera, lights) that exist in the scene
-3. Go to the main menu option File > Link
-4. Find the rig file you just downloaded. Double click the blend file. This will allow us to link/import the rig.
-5. Go into the "Collection" folder. Select all the files in there (will have two collections) and click the Link button to import.
-6. Hide the custom bone shapes collection from the scene outline
-7. Select the rig and go to the 3d viewport option Object > Library Override > Make
-8. Select the skeleton and go into Pose mode.
-
-From here you can create the animation. I usually use the action editor. The project currently contains one animation per Blender file.
-
-## Sharing final animation file
-
-Once your animation is done, you can create a new Github ticket and attach your Blender file with a note with what you have done.
-
-
-
-
-
-
-
-
-
-
-
diff --git a/README.md b/README.md
index 8602ca4..6736331 100644
--- a/README.md
+++ b/README.md
@@ -41,14 +41,13 @@ There is separate tool in the web app where you can generate video previews for
[Preview Generator Documentation](src/preview-generator/README.md)
-## Contributor Guide
-I am not an animator, so you will notice a lot of animations aren't very good. It is a good assumption that if the animation sucks, it is probably made by me. Feel free to help me and create better/new ones.
+## Blender 3D Source files
+Many of the 3d files are originally created using Blender. This includes 3d models, rigs, and animations. To prevent this repository from becoming too large with big animation files, these source files are separated into a different repository. The final compressed GLB files are saved to this repository. These source files aren't needed to buil and run the application, so you can ignore this unless you want to contribute more animations. This repository is located here: https://github.com/Mesh2Motion/mesh2motion-assets
## Licenses
The code and platform are all licensed under the very permissive MIT license. The art assets (3d models, rigs, animations) are all licensed under CC0. I tried making everything as open as possible to remix, change, and build upon for the future.
-[Contributor Guide](CONTRIBUTOR.md)
## ❤️ Help the Project Grow
I don't expect to be receiving money for working on this, but I am also not the best animator. If people want to see better, and more, animations made, add to the fund. I can pay for an animator to help build out the animation library better. Or, if you know an animator that wants to help with this, send them my way! I am just a dude working on this during nights and weekends.
diff --git a/static/ANIMATOR-README.md b/static/ANIMATOR-README.md
deleted file mode 100644
index ff8ef8c..0000000
--- a/static/ANIMATOR-README.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# Animator Guide
-
-This is a general guide for working with Blender and how this web application expects animations to be. There are some things to consider to make rigs work with a variation of mesh sizes.
-
-## Blender Source files
-
-I am using Blender 4.5. All the source files are in the "blender" folder at the location of this readme. There are two variations of the blender files for each rig
- - **RIG**-model.blend - Contains no animations. This has things like mirror modifiers applied to help with modeling
- - **RIG**.blend - Has the skeleton + model + animations.
-
-When you make changes or create a new 3d model, export to GLB and place it in the "models" folder. This models folder is what the web app will use when loading the reference models.
-
-## Rigs and animations
-
-The rig files are in the "blender" folder with the name <RIG>.blend. If I am making a new one, I create **RIG**.blend file with the new rig type. I import the associated GLB file from the "models" folder. I then proceed to build out the armature.
-
-### Things to consider
-
-### Naming bones
-
-The Three.js framework that Mesh2Motion uses does "sanitation" on object names. this means that bone names with things like "." symbols will get completely removed when it enters Mesh2Motion. This can create issues when we use those symbols for parsing to determine what might be a left or right bone. Avoid using characters like that. Models are using the _ character in places where periods are used.
-
-Reference: https://discourse.threejs.org/t/avoid-dots-and-colons-being-deleted-from-models-name/15304
-
-#### Rotation keyframes
-
-When creating animations, we generally only want to make rotation keyframes. This is because people import 3d models in Mesh2Motion that have different sized limbs. We want to make sure their limbs don't get shortened or elongated. If we make position keyframes, this can affect the results. This also makes for a smaller size animations.
-
-When starting a new rig file, one of the first things to do is change the "Keying" type to help with this. This is set in the timeline here.
-
-<img src="./ANIMATOR-README/defaut-keying.png" alt="Default keying section" />
-
-Make sure to set this to "Rotation". When we are animating bones around later and want to make a keyframe, we can press the "I" shortcut. Pressing this shortcut will not only create a keyframe for the rotation property.
-
-### Hip bone positions
-
-In general we only use rotation keyframes. The hip bone is the only exception. This is needed to help with things like jumping or falling where we really need the hip bone to move the entire model.
-
-The easiest way I have found to do this is position the hip bone where you want, then hover over the location transform area and press the "I" shortcut key. The keyframe should change colors indicating there is a keyframe there. YOu can remove the position keyframe with "Shift + Alt + I".
-
-<img src="./ANIMATOR-README/insert-location-keyframe.png" alt="Insert location keyframe" />
-
-
-### No root motion
-
-For each rig, there is a root bone that should be at the origin (0,0,0). This is the parent of all the bones. Currently Mesh2Motion doesn't support root motion, so don't keyframes to that for now. Any root motion will be stripped out when Mesh2Motion loads an animation.
-
-## Final skeleton and animation files for rig
-
-When the animations are ready, you can export out the skeleton by itself in the "skeletons" folder as a GLB if you made changes to that. I usually remove all the animations from the skeleton to make the skeleton size smaller.
-
-The final animations go in the "animations" folder. It is a GLB with everything exported: mesh, skeleton, and animations. The reason we put everything in the file is that it will be used for animation previews.
-
-
-# New Rig setup
-There will need to be programming work to actually see and test a new rig in Mesh2Motion. Before the programming work can start you can export the following into the directories
-
-- models - put the GLB of the mesh only
-- skeletons - put the GLB of the skeleton only
-- animations - put the GLB of the mesh + skeleton + animations
-
-There needs to be a few places in code to add a new rig
-- index.html: Add an option for the model. Add an option for the skeleton
-- script.js - TODO: add references to whatever this is when I do it next
-
-
-## Blender usage notes
-
-For editing and creating animation keyframes, I use the Dope sheet. There is a sub-view to the right where you can change to the "Action Editor". This is where animating all the keyframes happen.
-
-When creating new animation actions, make sure to click the shield icon to save the action. If you don't do this, the action will disappear the next time you start Blender. Blender calls these "Fake users" under the hood. There should be an "F" at the start of every action name in the actions drop-down to denote this property is set.
-
-<img src="./ANIMATOR-README/save-action-dummy.png" alt="save fake user" />
-
-
-
-
-
-
-
-
-
diff --git a/static/ANIMATOR-README/defaut-keying.png b/static/ANIMATOR-README/defaut-keying.png
deleted file mode 100644
index 8e493db..0000000
Binary files a/static/ANIMATOR-README/defaut-keying.png and /dev/null differ
diff --git a/static/ANIMATOR-README/insert-location-keyframe.png b/static/ANIMATOR-README/insert-location-keyframe.png
deleted file mode 100644
index 2ecafd3..0000000
Binary files a/static/ANIMATOR-README/insert-location-keyframe.png and /dev/null differ
diff --git a/static/ANIMATOR-README/save-action-dummy.png b/static/ANIMATOR-README/save-action-dummy.png
deleted file mode 100644
index a4e6262..0000000
Binary files a/static/ANIMATOR-README/save-action-dummy.png and /dev/null differ
diff --git a/static/MODELER-README.md b/static/MODELER-README.md
deleted file mode 100644
index fa6be1f..0000000
--- a/static/MODELER-README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# 3D modeling considerations when using Mesh2Motion
-
-## Try to have one material per mesh
-There is a quirk with how the web technology (three.js) deals with materials and meshes. The 3d library only supports one material per mesh. If you import a mesh with more than one material, the mesh will be broken apart into multiple meshes when you export it. This may, or may not, be an issue for the end animations.
-
-We will just need to keep that in mind for future reference when building out samples or instructions.
-
-Reference:
-https://discourse.threejs.org/t/some-issues-when-export-a-single-mesh-with-multiple-materials-using-gltf-exporter/50395/4
-
-