DepthScale is a value that can’t be set in the avatar editor. I tried doing some tests to determine from what it is based from, and found out it is based on the value of WidthScale.
I am trying to figure out the formula to calculate DepthScale.
But currently it doesn’t match up so well, so I wanted to ask for help.
The reason why I am looking to calculate DepthScale, is for character customization in-game and load them like Roblox would load a character. As example, the Avatar Catalog Editor game.
I tried formulas, such as:
(0.5 * (WidthScale)) + 0.5)
thhis one is close but not well enough, the issue here is with rounding, so that means the formula must look a bit different.
Here are sample values that you can get with the avatar editor on the Website:
WidthScale | DepthScale |
---|---|
1 | 1 |
0.95 | 0.98 |
0.9 | 0.95 |
0.85 | 0.92 |
0.8 | 0.9 |
0.75 | 0.88 |
0.7 | 0.85 |
However, I have more sample values. If you manually set the WidthScale, it will work, but you can’t go above 1 or below 0.7 but that’s fine.
Here’s the table of all the sample values, that I just got.
All Sample Values
WidthScale | DepthScale |
---|---|
1.0 | 1.00 |
0.99 | 1.00 |
0.98 | 0.99 |
0.97 | 0.98 |
0.96 | 0.98 |
0.95 | 0.98 |
0.94 | 0.97 |
0.93 | 0.96 |
0.92 | 0.96 |
0.91 | 0.96 |
0.90 | 0.95 |
0.89 | 0.94 |
0.88 | 0.94 |
0.87 | 0.94 |
0.86 | 0.93 |
0.85 | 0.92 |
0.84 | 0.92 |
0.83 | 0.92 |
0.82 | 0.91 |
0.81 | 0.90 |
0.80 | 0.90 |
0.79 | 0.90 |
0.78 | 0.89 |
0.77 | 0.88 |
0.76 | 0.88 |
0.75 | 0.88 |
0.74 | 0.87 |
0.73 | 0.86 |
0.72 | 0.86 |
0.71 | 0.86 |
0.7 | 0.85 |
Now I am just wondering on how to calculate DepthScale based from WidthScale. At the beginning it sort of looked like that it would take twice as long for DepthScale to get to the value of WidthScale, kinda. But maybe also it isn’t exactly like that, otherwise the other formula would of have worked.