Skip to content

Problem with Draco and unnormalized vertex colors #6561

Closed
@lilleyse

Description

@lilleyse

Draco encoded attributes whose accessors set normalized : true are not being normalized correctly during rendering, leading to overblown colors in the second image.

The decoder checks for attribute.normalize(), but maybe it should use the accessor's normalized property instead. Right now it doesn't seem possible in the Draco API to set whether an attribute is normalized, so attribute.normalize() will always be false.

A separate problem is the second gltf only works if dequantizeInShader is false.

vertex_colors.gltf.txt
vertex_colors_draco.gltf.txt
colors_cesium
colors_cesium_wrong

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions