User Tools

Site Tools


weighted_joint

Description

Defines one of the joints in a skin binding. For now, the binding matrix for each node is assumed to be the identity matrix.

Parent Objects

Properties

Name Description Default Required
id A string representing the unique identifier for this object within the file scope. None yes
node A string representing the URI of the target node in the skeleton. None yes
node_weights A float_indexed_array representing the general weight map for this joint. N/A no*
scale_weights A float_indexed_array representing the scale weight map for this joint. N/A no*
local_weights A collection of x, y, and z float_indexed_array objects representing the local weights for the joint. N/A no*
bulge_weights A collection of x, y, and z bulge_binding objects representing the bulge binding weights for the joint. N/A no

Details

* At least one of node_weights, scale_weights, and/or local_weights must be present.

Example

{
    "id" : "rForeArm",
    "node" : "#rForeArm",
    "scale_weights" : {
        "count" : 101,
        "values" : [
            [ 111, 0.00218204 ],
            [ 122, 0.004913405 ],
            [ 123, 0.009918365 ],
            ...
            [ 292, 1.525902e-05 ],
            [ 314, 7.629511e-05 ],
            [ 315, 0.0001525902 ],
            [ 316, 9.155413e-05 ],
            [ 327, 3.051804e-05 ]
        ]
    },
    "local_weights" : {
        "y" : {
            "count" : 129,
            "values" : [
                [ 84, 0.0003051804 ],
                [ 85, 0.0002441444 ],
                [ 86, 0.0002288853 ],
                [ 87, 0.0002441444 ],
                ...
                [ 949, 0.001129168 ],
                [ 950, 0.0009918364 ],
                [ 983, 0.001327535 ],
                [ 984, 0.001205463 ],
                [ 1017, 0.0006561379 ],
                [ 1018, 0.0007782101 ]
            ]
        },
    },
    "bulge_weights" : {
        "y" : {
            "bulges" : [
                {
                    "id" : "positive-left",
                    "label" : "Y Bulge Positive Left",
                    "visible" : false,
                    "locked" : false,
                    "min" : -10000,
                    "max" : 10000,
                    "clamped" : false,
                    "display_as_percent" : false,
                    "step_size" : 0.01,
                    "value" : -10,
                    "auto_follow" : true
                },
                {
                    "id" : "positive-right",
                    "label" : "Y Bulge Positive Right",
                    "visible" : false,
                    "locked" : false,
                    "min" : -10000,
                    "max" : 10000,
                    "clamped" : false,
                    "display_as_percent" : false,
                    "step_size" : 0.01,
                    "value" : 6.99999,
                    "auto_follow" : true
                },
                {
                    "id" : "negative-left",
                    "label" : "Y Bulge Negative Left",
                    "visible" : false,
                    "locked" : false,
                    "min" : -10000,
                    "max" : 10000,
                    "clamped" : false,
                    "display_as_percent" : false,
                    "step_size" : 0.01,
                    "value" : 0,
                    "auto_follow" : true
                },
                {
                    "id" : "negative-right",
                    "label" : "Y Bulge Negative Right",
                    "visible" : false,
                    "locked" : false,
                    "min" : -10000,
                    "max" : 10000,
                    "clamped" : false,
                    "display_as_percent" : false,
                    "step_size" : 0.01,
                    "value" : -10,
                    "auto_follow" : true
                }
            ],
            "right_map" : {
                "count" : 347,
                "values" : [
                    [ 24, 0.01115435 ],
                    [ 25, 0.01074235 ],
                    [ 26, 0.01110857 ],
                    [ 27, 0.01213092 ],
                    [ 28, 0.01341268 ],
                    ...
                    [ 1013, 0.06436256 ],
                    [ 1014, 0.0669871 ],
                    [ 1015, 0.06668193 ],
                    [ 1016, 0.03700313 ],
                    [ 1017, 0.009948882 ]
                ]
            }
        }
    }
}