Converting VRC BlendTrees to ChilloutVR: Difference between revisions
Created page with "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. {| class="wikitable" |+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..." |
|||
(One intermediate revision by the same user not shown) | |||
Line 33: | Line 33: | ||
|float | |float | ||
|(-1,1) | |(-1,1) | ||
|Side to side motion in | |Side to side motion in arbitrary units. -Left, +Right | ||
|- | |- | ||
|MotionY | |MotionY | ||
|float | |float | ||
|(-1,1) | |(-1,1) | ||
|Forward to back motion in | |Forward to back motion in arbitrary units. -Back, +Forward | ||
|} | |} | ||
== Spreadsheets FTW == | == Spreadsheets FTW == | ||
[[File:VRC2CVR Blendtree Spreadsheets for the Impatient.png|none|frame|If you already know what you're doing, use this.]] | |||
# Download LibreOffice. (You can also do this in Excel.) | 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. | ||
# Create a new spreadsheet. | #Download [https://www.libreoffice.org/download/download-libreoffice/ LibreOffice]. (You can also do this in Excel but with different steps.) | ||
# First row: | #Create a new spreadsheet. | ||
## (Blank) | #First row: | ||
## VRC | ##(Blank) | ||
## (Blank) | ##VRC | ||
## CVR | ##(Blank) | ||
## (Blank) | ##CVR | ||
# Select, merge and center , then bold ranges B1:C1 and D1:E1. | ##(Blank) | ||
# Second Row: | #Select, merge and center , then bold ranges B1:C1 and D1:E1. | ||
## (Blank) | #Second Row: | ||
## X | ##(Blank) | ||
## Y | ##X | ||
## X | ##Y | ||
##X | |||
## Y | ## Y | ||
# Center and bold the last four cells on that row. | #Center and bold the last four cells on that row. | ||
# [[File:VRC2CVR BlendTree Datagrab.png|thumb|Copy this section into your spreadsheet]]For the next rows, enter in the highlighted section from '''your blendtree''' into the corresponding VRC cells: | #[[File:VRC2CVR BlendTree Datagrab.png|thumb|Copy this section into your spreadsheet]]For the next rows, enter in the highlighted section from '''your blendtree''' into the corresponding VRC cells: | ||
# Select cell D3. | #Select cell D3. | ||
# Type in: <code>=B3/4</code> and press tab. | #Type in: <code>=B3/4</code> and press tab. | ||
# Type in: <code>=E3/4</code> and press enter. | #Type in: <code>=E3/4</code> and press enter. | ||
# Select both cells. | #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. | #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. | #Select the cells you just created. | ||
# Styles > Accent 3. | #Styles > Accent 3. | ||
# Save your document. | #Save your document. | ||
You should now have something that looks like this: | You should now have something that looks like this: |
Latest revision as of 00:05, 1 September 2022
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.