Converting VRC BlendTrees to ChilloutVR: Difference between revisions

From VR Wiki
m (derp)
 
Line 42: Line 42:


== 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)
##X
##Y
##X
## Y
## Y
## X
#Center and bold the last four cells on that row.
## Y
#[[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:
# Center and bold the last four cells on that row.
#Select cell D3.
# [[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:
#Type in: <code>=B3/4</code> and press tab.
# Select cell D3.
#Type in: <code>=E3/4</code> and press enter.
# Type in: <code>=B3/4</code> and press tab.
#Select both cells.
# Type in: <code>=E3/4</code> and press enter.
#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 both cells.
#Select the cells you just created.
# 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.
#Styles > Accent 3.
# Select the cells you just created.
#Save your document.
# Styles > Accent 3.
# 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.

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.