Git Product home page Git Product logo

ext_skin_humanoid's Introduction

EXT_skin_humanoid

Contributors

Status

Draft

Dependencies

Written against the glTF 2.0 spec

Overview

This EXT_skin_humanoid extension allows skin to indicate that it has predefined standard humanoid bone set and to specify the map from predefined humanoid bone names to the humanoid bones (joint nodes).

This extension helps applications to find a certain predefined humanoid bone and to apply a consistent skinning animation regardless of 3D models if they define this extension.

This extension also allows animation.channel.target to specify a target node with a predefined bone name. It enables for example to make humanoid animation library (eg. Walk, Run, Jump) that can be applied to any glTF assets having skin that defines this extension.

Skin

T.B.D.

"skins": [
    {
        "joints": [ 0, 1, 2, ... ],
        "extensions": {
            "EXT_skin_humanoid": {
                "humanoidBones": {
                    "neck": 0,
                    "leftHand": 1,
                    "rightHand": 2,
                    ...
                },
            },
        },
    },
],

Humanoid bones

T.B.D.

Based on VRM humanoid bone set.

└─ hips
   ├─ spine
   │  └─ chest
   │     └─ upperChest
   │        ├─ neck
   │        │  └─ head
   │        └─ [left|right]Shoulder
   │           └─ [left|right]UpperArm
   │              └─ [left|right]LowerArm
   │                 └─ [left|right]Hand
   │                    ├─ [left|right]ThumbMetacarpal
   │                    |  └─ [left|right]ThumbProximal
   │                    |     └─ [left|right]ThumbDistal
   │                    └─ [left|right][Index|Middle|Ring|Little]Proximal
   │                       └─ [left|right][Index|Middle|Ring|Little]Intermediate
   │                          └─ [left|right][Index|Middle|Ring|Little]Distal
   └─ [left|right]UpperLeg
      └─ [left|right]LowerLeg
         └─ [left|right]Foot
            └─ [left|right]Toes

body

hand

TODO: Add bone names into the images.

Schema: skin.EXT_skin_humanoid.schema.json

Default pose

T-Pose?

Animation

T.B.D.

"animations": [
    {
        "channels": [
            {
                "sampler": 0,
                "target": {
                    "path": "rotation",
                    "extensions": {
                        "EXT_skin_humanoid": {
                            "humanoidBoneName": "neck",
                        },
                    },
                }
            },
            {
                "sampler": 1,
                "target": {
                    "path": "rotation"
                    "extensions": {
                        "EXT_skin_humanoid": {
                            "humanoidBoneName": "leftHand",
                        },
                    },
                }
            },
            {
                "sampler": 2,
                "target": {
                    "path": "rotation"
                    "extensions": {
                        "EXT_skin_humanoid": {
                            "humanoidBoneName": "rightHand",
                        },
                    },
                }
            },
            ...
        ],
    },
],

TODO: Allow only rotation?

Schema: animation.channel.target.EXT_skin_humanoid.schema.json

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.