Converting VRC BlendTrees to ChilloutVR
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.
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.
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
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.
- Download LibreOffice. (You can also do this in Excel but with different steps.)
- Create a new spreadsheet.
- First row:
- (Blank)
- VRC
- (Blank)
- CVR
- (Blank)
- Select, merge and center , then bold ranges B1:C1 and D1:E1.
- Second Row:
- (Blank)
- X
- Y
- X
- Y
- Center and bold the last four cells on that row.
- For the next rows, enter in the highlighted section from your blendtree into the corresponding VRC cells:
- Select cell D3.
- Type in:
=B3/4
and press tab. - Type in:
=E3/4
and press enter. - Select both cells.
- 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.
- Select the cells you just created.
- Styles > Accent 3.
- Save your document.
You should now have something that looks like this:
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.