-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
VOXELFORMAT: GLTF: support exporting palette materials #402
Labels
Comments
mgerhardy
added a commit
that referenced
this issue
Mar 3, 2024
…magicavoxel interactions In order to support the new palette material features that are modelled after magicavoxel (see 1a9c676) we have to use some extensions to the gltf spec. * KHR_materials_emissive_strength * KHR_materials_ior * KHR_materials_pbrSpecularGlossiness * KHR_materials_specular there are also some new cvars that will control the gltf export extensions - when loading a model, we will try to load as many extensions as useful automatically. But for saving the user might have to choose between several options. Some of them can not be used together. see issue #402
two new cvars were added: |
mgerhardy
added a commit
that referenced
this issue
Mar 6, 2024
mgerhardy
added a commit
that referenced
this issue
Mar 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1a9c676 added material support to the palette (
palette::Palette
) - formats like gltf should now also export (and maybe even import if possible) these values into thepalette::Material
structure.This property is not yet handled, too: jpaver/opengametools#64
The test file was kindly provided by AbductedbyPixel and is available at
data/tests/test_material.vox
Links
TODO
palette::Material
propertiesMaterial mappings
This table is here to understand and map the mv material settings from ogt_vox to gltf
https://docs.google.com/spreadsheets/d/14cHbGMr7U-_N9mNNSdnb4XkuqvnvkcgCD9IKz_kglfg/edit#gid=2116874397
From MV changelog:
The text was updated successfully, but these errors were encountered: