【问题标题】:what unit of angle in the file glTF?文件glTF中的角度单位是什么?
【发布时间】:2020-01-28 13:11:47
【问题描述】:

我正在尝试理解glTF的格式,请告诉我文件中的角度单位是什么?

"nodes":[
{"name":"Bone2","rotation":[-0.6466940641403198,0,1.4359492797940017e-16,0.7627494931221008]},

【问题讨论】:

    标签: gltf


    【解决方案1】:

    Quaternion,看起来像。

    specification/2.0/schema/node.schema.json:

    "rotation": {
        "type": "array",
        "description": "The node's unit quaternion rotation in the order (x, y, z, w), where w is the scalar.",
        "items": {
            "type": "number",
            "minimum": -1.0,
            "maximum": 1.0
        },
        "minItems": 4,
        "maxItems": 4,
        "default": [ 0.0, 0.0, 0.0, 1.0 ]
    },
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-03-31
      • 2014-07-31
      • 2020-05-25
      • 2016-10-27
      • 2016-08-23
      • 2017-12-16
      • 2020-02-26
      相关资源
      最近更新 更多