Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

implemented filesize compression for jSkin and gSkin #28

Merged
merged 6 commits into from Mar 8, 2019
Merged

implemented filesize compression for jSkin and gSkin #28

merged 6 commits into from Mar 8, 2019

Commits on Feb 28, 2019

  1. mgear_core: callback manager: UserTimeChangedManager change condition…

    … state to playingBackAuto Closes #26
    
    (cherry picked from commit 06c510e)
    miquelcampos committed Feb 28, 2019
    Copy the full SHA
    bd7a2ee View commit details
    Browse the repository at this point in the history
  2. mgear_core: attribute: moveChannel doesn't support float attr fixes #27

    (cherry picked from commit a862604887a9b18878db9ce043e63bdb8b359343)
    miquelcampos committed Feb 28, 2019
    Copy the full SHA
    2ff6413 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2019

  1. implemented compression for jSkin and gSkin

    Instead of a list of weights, it is now a dictionary of weights, with the vertex number as key. This can reduce the file size to 3% of the size.
    chris-lesage committed Mar 1, 2019
    Copy the full SHA
    0b824e3 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2019

  1. Fixes some poly vs. nurbs issues

    1. Don't prune unless it is a polygon mesh. It is possible to prune on nurbs, but it needs more bug-testing. For example, on nurbs, you can't just specify the transform node. It will fail.
    
    2. Don't use polyEvaluate on nurbsSurfaces or nurbsCurves. Count the CVs instead. By making this change, you can now export and import skinning on nurbs or polygons.
    
    3. It now counts all the CVs or vtxs on multiple shape nodes. But the file format does NOT support multiple shape nodes yet! Each individual shape node under a transform would get a separate skinCluster.
    chris-lesage committed Mar 2, 2019
    Copy the full SHA
    3957359 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2019

  1. The json keys are unicode and I was testing str

    Test for basestring instead of str. Skin weights are working fine because it uses dict.get(str(vtx))
    chris-lesage committed Mar 8, 2019
    Copy the full SHA
    96acf27 View commit details
    Browse the repository at this point in the history
  2. blendWeight. No need to check type. Just cast int.

    I was checking the type of the key for binary vs. json. There is no need. Just cast the key as an int.
    chris-lesage committed Mar 8, 2019
    Copy the full SHA
    f7ab566 View commit details
    Browse the repository at this point in the history