Skip to content

Import and Export using threejs #813

@seed93

Description

@seed93

When I use threejs to decode the gltf model and export as normal model, the output model has some invalid values. I checked this model through validator and get the following messages. How can I export a normal model?

{
    "code": "VALUE_MULTIPLE_OF",
    "message": "Value 6 is not a multiple of 4.",
    "severity": 0,
    "pointer": "/bufferViews/0/byteStride"
},
{
    "code": "VALUE_NOT_IN_RANGE",
    "message": "Value 3 is out of range.",
    "severity": 0,
    "pointer": "/bufferViews/1/byteStride"
},
{
    "code": "UNEXPECTED_PROPERTY",
    "message": "Unexpected property.",
    "severity": 1,
    "pointer": "/materials/0/pbrMetallicRoughness/metallicRoughnessTexture/channel"
},
{
    "code": "MESH_PRIMITIVE_ACCESSOR_UNALIGNED",
    "message": "Vertex attribute data must be aligned to 4-byte boundaries.",
    "severity": 0,
    "pointer": "/meshes/0/primitives/0/attributes/NORMAL"
},
{
    "code": "MESH_PRIMITIVE_GENERATED_TANGENT_SPACE",
    "message": "Material requires a tangent space but the mesh primitive does not provide it. Runtime-generated tangent space may be non-portable across implementations.",
    "severity": 1,
    "pointer": "/meshes/0/primitives/0/material"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions