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

DRACOLoader, DRACOExporter: Convert vertex colors to/from Linear-sRGB #25390

Conversation

donmccurdy
Copy link
Collaborator

Related issue:

While .drc files do not specify colorspace, the only 'official' tooling is the Draco library's PLY and OBJ converters, which use sRGB. We'll assume sRGB is expected for .drc files, but note that Draco buffers embedded in glTF files will be Linear-sRGB instead. This change ensures that when using the .load() or .parse() methods of DRACOLoader, we use the appropriate color spaces for .drc files. GLTFLoader uses an internal API instead and will not be affected.

@donmccurdy donmccurdy changed the title DRACOLoder, DRACOExporter: Assign color space to vertex colors. DRACOLoader, DRACOExporter: Assign color space to vertex colors. Jan 31, 2023
@donmccurdy donmccurdy force-pushed the hotfix/dracoloader-dracoexporter-vertex-colorspace branch from f644165 to 81b27db Compare January 31, 2023 18:31
@mrdoob mrdoob merged commit d5456c9 into mrdoob:dev Jan 31, 2023
@mrdoob mrdoob added this to the r150 milestone Jan 31, 2023
@donmccurdy donmccurdy deleted the hotfix/dracoloader-dracoexporter-vertex-colorspace branch January 31, 2023 21:25
@donmccurdy donmccurdy changed the title DRACOLoader, DRACOExporter: Assign color space to vertex colors. DRACOLoader, DRACOExporter: Convert vertex colors to Linear-sRGB Jan 31, 2023
@donmccurdy donmccurdy changed the title DRACOLoader, DRACOExporter: Convert vertex colors to Linear-sRGB DRACOLoader, DRACOExporter: Convert vertex colors to/from Linear-sRGB Jan 31, 2023
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

Successfully merging this pull request may close these issues.

2 participants