I'm using the Copy Type of VRC Avatar Parameter Driver with Convert Range with Source from 0 to 255 & Destination 0 to 1.
You would think with the convert range:
  • When Source is 0 to 127 the Destination will be 0
  • When Source is 128 to 255 the Destination will be 1
But this isn't the case, instead:
  • When Source is 0 to 254 the Destination will be 0
  • When Source is 255 the Destination will be 1
I imagine what is happening is the value is being divided then rounded down to calculate the Destination. If this is the case it makes sense why the following works. So to fix this what I did was set the Convert Range Source from 0 to 256 & Destination 0 to 2. The max value the Source can be is 255, therefore the Destination will never come a 2. Therefore what I get is:
  • When Source is 0 to 127 the Destination will be 0
  • When Source is 128 to 255 the Destination will be 1
  • When Source is 256 the Destination will be 2
Is this intended?