Converting VRC BlendTrees to ChilloutVR

From VR Wiki
Revision as of 00:05, 1 September 2022 by N3X15 (talk | contribs) (→‎Spreadsheets FTW)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Unity Blendtrees are used to determine how animations are blended for locomotion. They can be an absolute asspain to transfer from VRChat to ChilloutVR due to differing implementations.

Here's a quick and dirty guide.

Background

VRChat feeds VelocityX and VelocityZ to blendtrees.

VRC Animator Parameters
Name Type Scale Notes
VelocityX float (-4,4) Side to side motion in meters per second. -Left, +Right
VelocityZ float (-4,4) Forward to back motion in meters per second. -Back, +Forward

Unfortunately, VRC and CVR do not agree with regard to their name, purpose, and units when it comes to animator parameters.

CVR Animator Parameters
Name Type Scale Notes
MotionX float (-1,1) Side to side motion in arbitrary units. -Left, +Right
MotionY float (-1,1) Forward to back motion in arbitrary units. -Back, +Forward

Spreadsheets FTW

If you already know what you're doing, use this.

For those that don't know how to use Excel or Calc, we're going to quickly throw together a spreadsheet that can automatically generate the correct values for your CVR blendtree from your VRC blendtree.

  1. Download LibreOffice. (You can also do this in Excel but with different steps.)
  2. Create a new spreadsheet.
  3. First row:
    1. (Blank)
    2. VRC
    3. (Blank)
    4. CVR
    5. (Blank)
  4. Select, merge and center , then bold ranges B1:C1 and D1:E1.
  5. Second Row:
    1. (Blank)
    2. X
    3. Y
    4. X
    5. Y
  6. Center and bold the last four cells on that row.
  7. Copy this section into your spreadsheet
    For the next rows, enter in the highlighted section from your blendtree into the corresponding VRC cells:
  8. Select cell D3.
  9. Type in: =B3/4 and press tab.
  10. Type in: =E3/4 and press enter.
  11. Select both cells.
  12. In the lower-left corner of the selection box you'll see a small square bulge. Drag it down until all the cells to the right of your VRChat data are filled, then release.
  13. Select the cells you just created.
  14. Styles > Accent 3.
  15. Save your document.

You should now have something that looks like this:

All done.

Manipulating the values on the left should automatically update the calculated values on the right.

If you need more rows, remember to drag-copy the equations on the right down.