Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Likely a bug in trimesh.visual.gloss.specular_to_pbr #2195

Open
FrozenBurning opened this issue Mar 27, 2024 · 0 comments
Open

Likely a bug in trimesh.visual.gloss.specular_to_pbr #2195

FrozenBurning opened this issue Mar 27, 2024 · 0 comments

Comments

@FrozenBurning
Copy link

According to the GLTF 2.0 specification, the metallicRoughnessTexture is stored as "green channel contains roughness values and its blue channel contains metalness values"
image
(https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#metallic-roughness-material).

However, in the conversion of specular_to_pbr (shown as below), the current implementation puts the metallic value to the R channel, which seems to be a bug.

[metallic, 1.0 - glossiness, np.zeros_like(metallic)], axis=-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant