Skip to content

StainedGlassLamp sample transmission-clearcoat conflict #271

@Tiberius-KG

Description

@Tiberius-KG

The StainedGlassLamp sample as found in the glTF folder uses the StainedGlassLamp_glass_transmission-clearcoat.png image for both transmission and clearcoat. However, the specification requires that both these textures use the red channel. Quote from the description text:
"The two textures for transmissionTexture and clearcoatTexture have been packed together into a single bitmap StainedGlassLamp_glass_transmission-clearcoat using the red and green channels to optimize memory use."
It is not even clearly stated which of them has been placed into the green channel, but it seems to be the clearcoat. Blender loads both transmission and clearcoat textures from the red channel; both channels happen to be very similar, so the issue can easily go unobserved.

Since conforming loaders will load these textures from the red channel, I think that there should be two separate images instead of the mentioned one: StainedGlassLamp_glass_transmission.png and StainedGlassLamp_glass_clearcoat.png, and the gltf file should be edited so it uses these images. The BasisU version probably has the same issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions