Skip to content

Radient: GLTF Loader ignores primitive topology #264

Description

@TheMostDiligent

PlannedPrimitive stores only:

Uint32 VertexDataIndex;
Uint32 IndexDataIndex;
int    MaterialId;

ScanMesh() never reads the primitive's mode, and RadientMeshLoader::LoadMesh() creates every Radient primitive without any topology information.

glTF supports points, lines, line loops, line strips, triangles, triangle strips, and triangle fans. Only TRIANGLES is the default.

As a result, a valid triangle strip such as:

indices: 0, 1, 2, 3
mode: TRIANGLE_STRIP

is passed downstream as the same four indices without the information required to interpret them. Depending on the renderer, it will either be rejected or interpreted as an invalid triangle list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions