top of page

Simulating Horse Leg Musculature Using Houdini Otis

James Kislenko
Oct 29
8 min read

Updated: Nov 19

11/18 Breakdown:


Fig 1. Muscle Simulation Breakdown

11/16 Simulating Muscle:

****EDITED ON 11/18 TO IMPROVE PROCESS DETAILS****


FINAL RESULT:


Fig 1. Final Result

Swap from Velum to Otis:


After running a one-muscle test with vellum muscle, I was having difficulty getting the muscle to stay on the bone. I was following the capybara tutorial and swapping out the nodes, but the muscle kept sliding off.


In my search for nodes that could remedy this I came upon the node:

"Test Geometry: Otto Muscle and Tissue Simulation"


Fig 2. "Test Geometry: Otto Muscle and Tissue Simulation" Node Network
Fig 2. "Test Geometry: Otto Muscle and Tissue Simulation" Node Network

This provided a comprehensive node network which I could study and plug in my assets.


Skinning Detour:

In studying the Otis node network, I noticed that skin weights still needed to be present on the main geometry of the rig. I did a proximity based transfer through the node: "joint transfer biharmonic",and refined it using painted weights.


The animation was then refined to be sped up to match the reference, and was made to loop using a time shift node sampling each frame:



Fig 3. Timeshift SOP multiplies the animation frames by the needed value to increase speed, modulus with the total frame count to ensure looping.
Fig 3. Timeshift SOP multiplies the animation frames by the needed value to increase speed, modulus with the total frame count to ensure looping.
Fig 4. Animation without muscle simulation

Simulating:

  • A group of points needed to be identified on the skin mesh in order to act as tissue for the simulation.

    • NOTE: You MUST name this group "tissue"

    • Be mindful of only selecting the portions of the mesh that hug the muscle as an extraneous geometry will also be treated as a soft body object


Fig 5. Hoof deformation caused by selection of entire leg for "tissue" group

The example provided three different simulation setups. Fascia took approximately double the time to cache, and so I chose to focus on modifying the tissue and skin sliding variants.


PARAMETERS FOR MODIFYING THE SIMULATION CAN BE PRIMARILY FOUND IN FOUR PLACES:

  1. Muscle tension and flex nodes: These impact when/how much your muscles bulge/flex. They are modified before the simulation. When viewing animation through these nodes, muscles will appear yellow/orange/red to indicate when/with the flex will be triggered.

    Fig 6. Muscle Flex Network
    Fig 6. Muscle Flex Network
    Fig 7. Flex Solver Viewport. This does not show final muscle deformation, but rather when the flex parameter will be activated. Red = Active. Grey = Inactive.

  2. Tissue Simulation Networks: The skin "holds" your muscles in place. Modifying parameters found within "tissueproperties" changes how much the skin impacts the muscle movement. Double click the Subnetwork to access more parameters. The "tissuesolidifyotis" node is what allows you to control the "smoothing" and coverage of your tissue.

    Fig 8. Various Tissue Setups
    Fig 8. Various Tissue Setups
    Fig 9. Inside of the "sliding_tissue_setup1" Subnetwork. Most modifications occur in "tissue properties".
    Fig 9. Inside of the "sliding_tissue_setup1" Subnetwork. Most modifications occur in "tissue properties".
    Fig 10. Modifiable parameters within "tissueproperties".
    Fig 10. Modifiable parameters within "tissueproperties".
  3. The Otis Solver/Configure Muscle and Tissue: Shockingly, this offers the fewest customization. This deals mostly with collisions and velocity dampening.



Fig 11. Otis Solver
Fig 11. Otis Solver
Fig 11. Parameters within Otis Solver
Fig 11. Parameters within Otis Solver

d. The "deform skin by tissue" node which allows you to add wrinkles and skin sliding (if you did not add them in the solver originally). This is one of the final steps of the simulation.

Fig 12. deform_skin_by_tissue Subnetwork
Fig 12. deform_skin_by_tissue Subnetwork
Fig 13. Wrinkle deformer and skin sliding within the deform_skin_by_tissue subnetwork
Fig 13. Wrinkle deformer and skin sliding within the deform_skin_by_tissue subnetwork

Initially, there was little difference between the skin sliding and the non skin sliding variants.

Fig 14. Tissue simulation without sliding. Tissue group smoothing causing bounce in upper leg
Fig 15. Tissue simulation with sliding. Tissue group smoothing causing bounce in upper leg











  • The initial smoothing gave me the warning that some of my muscle geometry was poking out, and overall lead to a "bouncy" feeling in the upper leg

    • Reducing smoothing of the mesh lead to less bounce in the upper portion. All videos below use the unsmoothed mesh.


I continued to experiment with different settings. One of the first things I did was reduce the substeps from 40 down to 20 in order to decrease cache times while experimenting with parameters. Below are some variations.



Fig 16. Added remesh node to increase muscle topology. Velocity dampening set to 0.01 on Otis Solver (Default is 0)
Fig 17. No Skin Sliding, dampening increased to 0.7 on core and skin. Unclear why the geometry would crumple. All other settings set to default











The remesh node proved to make the muscles too "watery", and so that was removed.



Fig 18. No Skin Sliding. Volume preservation set to 500 on core. Muscle flex reduced. All other settings set to default
Fig 19. Skin Sliding with dampening, all other settings at default











After experimenting with the settings I concluded I liked the skin sliding effect more, and that dampening was not something which would make my overall product appear better.


Fig 20. Skin Sliding with no dampening and unsmoothed tissue mesh.

That was my favorite one since it captured the stiffness in the back of the leg while maintaining bounce in the front of the thigh. I then increased the substeps to 30 and re-cached.


PROBLEM: Jagged corners in thigh caused by broken muscle geometry. Skin sliding travelling too far outside of thigh region

SOLUTION: Deltamush just the broken vertices on the cache. Paint the "skinmesh" attribute found within the transfer sim to skin node.

Fig 21. Initial Simulated Geometry

Fig 22. Simulated Geometry post DeltaMush
Fig 23. Simulated Geometry Post DeltaMush and skinmesh masking.


11/10 Animation and Muscle Sculpting


After some time animating with the previous rig, it was evident that it was necessary to move the pivot point down the hock and to the ankle in order to ensure proper foot contact. The lower controls were removed and replaced with the foot setup-- as although the controls were more difficult to access, they allowed for better movement.


Fig 1 . Horse Animation

BUG TO INVESTIGATE: Midway through animating the foot stopped following the leg, this is not the case in the rig movement but only in the animation. Restarting Houdini did not help


Fig 2. Horse Toes Bug

Once the animation was mostly completed, it was time to sculpt the muscles for the hind limb. The muscles in the capybara test geometry were used as a base.

Fig 3. Muscle Sculpt Progress Side View
Fig 3. Muscle Sculpt Progress Side View
Fig 4. Muscle Sculpt Interior Progress Rear View
Fig 4. Muscle Sculpt Interior Progress Rear View

The following horse models/diagrams informed the sculpt:



IMPORTANT FOR SCULPTING MUSCLE:

  • Manifold geometry

  • No holes or gaps

  • Muscles should not intersept

  • Each muscle must be tagged separately within Houdini


TO DO:

  • Finish polishing muscle geo

  • Tag each muscle component in Houdini

  • Speed up animation and loop it

  • Begin simulation


11/05: Animation Set-up and Process


With the rig built it was time to start animating.

I needed to get the reference video into Houdini so that I could animate along it.


I did so by creating a grid and applying a principled shader with the video applied as an image sequence to the shader


**NOTE: Houdini doesn't like applying videos as textures, so I had to convert the .mov to a jpg sequence.


Fig 1. Rigging Setup With Animation
Fig 1. Rigging Setup With Animation

Below is the progress on blocking. I wanted it to loop, so the last frame and the first frame are identical.


Fig 2: Blocking Progress

TO DO:

  • Fix foot-ground contact

  • Spline Animation

  • Clean Up Splines

  • Add Muscle Model



11/02: Navigating APEX and Setting Up the Rig:


Order of Operations:

  1. Rig Skeleton Model

  2. Animate Skeleton Model

  3. Sculpt Muscle/Modify Capybara Test Geo Muscle

  4. Simulate Muscle


In order to begin rigging the hind legs of this horse, I needed to become familiar with the APEX environment. As many of the new additions occurred in recent versions of Houdini, it was crucial that the tutorials were recent.


Referenced SideFX Rigging Tutorials:


BUILDING SKELETON

APEX is an environment which handles a lot of the rigging through a "configure autorig" node. Although there are way to circumvent this node, its base structure requires the user adhere to some very strict rules in skeleton construction:

  • ALL bones must be flagged with a "side" ie. L_Hip, R_hip, C_Root

  • Bones and Skeleton must be packed into a rig container prior to autorig initialization

    • Hint: Save the skeleton and skin as separate .bgeo files before packing

  • Rest pose must be saved prior to initializing the environment

  • Set scale to 1 on all bones

  • Make sure model is facing the Z axis

**NOTE: The node will NOT FUNCTION AT ALL if you skip any of these. For those coming from Maya or Unreal Engine, this is a big change, as often in those programs, the node will still work, it will just move strangely if configured incorrectly.


Skeleton is initially built entirely in the "Skeleton" node and modified by additional nodes.


Fig 1: Hind Leg Skeleton Structure in Viewport
Fig 1: Hind Leg Skeleton Structure in Viewport

Useful Nodes:

  • Rig Doctor: flags and resolves errors with skeleton structure, naming, and orientation

  • "Rig Tree" window (NOTE: you cannot rename your joints here)

  • Joint Properties: (NOTE: Click "P" when selecting a joint in the skeleton node to access. Use for renaming and checking scale)

  • Orient Joints: Orients your joints for you

  • Joint Deform: Allows you to see your skin deformations without building the rig







SKINNING:

I opted to paint my skin weight using the "jointcapturepaint" node as although my geometry was divided into groups on import, the groups were not clearly labelled. Had they been labelled by body part, "jointcapturebiharmonic" may have been able to procedurally skin the bones to their corresponding joints by name.


I decided that renaming the groups would take about as long, if not longer than manually painting the weights on the bones, so I opted for the latter. Since I am skinning the horse skeleton mesh, one bone geo would be bound to one joint, making this process very straightforward.


Fig 2: Skeleton and Skinning Node Structure
Fig 2: Skeleton and Skinning Node Structure


RIGGING:


Quadruped legs can be done a variety of ways. For a good reference on different setups, check out This Video by antCGi.



  1. First one that I wanted to try was "Multi IK"




Fig 3: Multi IK Result

Result:

  • Not enough Control

  • Erratic Movement




  1. Second was Leg and Foot



Fig 4: Leg IK with Foot Result

Result:

  • Difficult to control AutoRoll pivot placements

  • Too many unneeded controls/functions clutter the scene




  1. Third was Leg IK and two controls for ankle and toe



Fig 5: IK Leg with Two Extra Controls Result

Result:

  • Most predictable movement

  • Encompasses range of motion in reference

    • THIS IS THE ONE SELECTED


10/27: Gathering Models, Reference, and Tutorials


To begin this process, I needed to source a model and a video to reference. After watching a few overview tutorials covering Otis, it was clear that the model needed both a skeletal and a muscular form as well as the final "skin mesh".


This video on Adobe Stock was deemed a good reference, as it shows clear movement of the hind leg's skin and muscle deformations where it is unobscured by the watermark.


Possible Models:


Rigging Tutorial:


Otis Tutorial Series found on SideFX:


10/25: Defining the Scope


Given the time constraints of this project as well as my incredibly limited knowledge of muslce simulation, I chose to focus this process around simulating one limb within a Horse.


I wanted to focus on a quadroped since many muscle tutorials are centered arond bipeds (and specifically the arms of a person), and I wanted to branch out away from that. Furthermore, the upper part of the leg featured many more muscles than the lower part, which would help narrow the scope if many obstacles were encountered, but also allow me to expand if the process went smoothely.


GOALS:

  1. Create a functional hind leg rig and animate it

  2. Simulate muscle movement on that hind leg

  3. Texture/groom the limb if time allows


 
 
 

Comments


bottom of page