Texture Sampler Clamp Error

Yo @bghgary i am having an issue with CLAMP vs REPEAT settings in texture.

I have a Cube.glb…

Cube.glb.zip (24.0 KB)

Only one single texture in the gltf samplers section

Screen Shot 2022-06-29 at 9.13.22 AM

But in sandbox, the camp u and v are not set

Can you please check this out

1 Like

WrapS to wrapS :slight_smile:

https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#_sampler_wraps

glTF validator:

      {
        "code": "UNEXPECTED_PROPERTY",
        "message": "Unexpected property.",
        "severity": 1,
        "pointer": "/samplers/0/WrapS"
      },
      {
        "code": "UNEXPECTED_PROPERTY",
        "message": "Unexpected property.",
        "severity": 1,
        "pointer": "/samplers/0/WrapT"
      },
2 Likes

Well shit… is a bug in KHRONOS GLTF Sampler.cs

Screen Shot 2022-06-29 at 9.24.27 AM

Its is using Capital W for WrapS and WrapT

Thanks Gary… You Da Man :slight_smile:

Where?

For me was in the GLTF project… Schema/Sampler.cs Serialize function

Screen Shot 2022-06-29 at 9.24.27 AM

was fixed in a later version of the project

1 Like