-
Notifications
You must be signed in to change notification settings - Fork 43
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
Folder and File Structure standards? #39
Comments
Rethinking this sentence:
I think reducing file size for the repo is an important consideration, and JPEG compression should be recommended for asset in the main \glTF folder. Should we include a \Source-Assets folder, including the DCC-native model source format, and uncompressed textures in PNG format? |
Only for color textures and only if compression artifacts are not visible. |
Thanks Alexey. Updated: Folder and File StructureFolder and file names must be consistent as this helps with tooling and automation.
|
Inconsistent spelling here. Should be either
Consider suggesting hi-res images in this case. Should there be a standard name for meshopt-compressed assets? |
Also, is there any particular reason why all sample models for EXT_meshopt_compression were removed for this repository? I use them in my testing CI, and these removals are currently keeping me from switching. |
It's good that this issue was "bumped", because ... it's still open, and there are some open questions. The information from the updated "Folder and File Structure" list above could be inserted somewhere near https://github.com/KhronosGroup/glTF-Sample-Assets/blob/main/SubmittingModels.md#requirement-details (Beyond that: IIRC, when I submitted the last model, it wasn't perfectly clear for me which parts of the metadata JSON have to be provided in which form, but maybe that can be clarified in a PR that addresses this issue as well) |
I think we could use some standardization for folders and files.
There are a few of the unwritten rules I learned from other contributors a few years ago, when I started submitting assets to these repos.
I think these rules should be codified into the SubmittingModels.md documentation, but I would like feedback from other contributors before we add this additional section. There are also a few typos in the md, but those shouldn't require discussion.
I propose to add this section to SubmittingModels.md :
Folder and File Structure
Folder and file names must be consistent as this helps with tooling and automation.
.gltf
file in the/glTF
subfolder.Models/ABeautifulGame
matchesModels/ABeautifulGame/glTF/ABeautifulGame.gltf
metadata.json
file containing the asset metadata (see below).README.body.md
file containing the asset description (see below)./glTF
subfolder is mandatory, it should contain the asset with JSON .gltf, .bin, and all individual resources (such as textures)./glTF-JPG
subfolder (see below)./screenshot
subfolder is mandatory, it should contain the screenshot plus any other resources used in the README.md./glTF-Binary
subfolder is optional, if a variant is included for a binary .glb./glTF-Draco
subfolder is optional, if a variant is included with compressed geometry using the extension KHR_draco_mesh_compression./glTF-Embedded
subfolder is optional, if a variant is included for an embedded .gltf./glTF-IBL
subfolder is optional, if a variant is included using custom image-based lighting; for example with the extension EXT_lights_image_based./glTF-JPG
subfolder is optional, if a variant is included using resources in compressed .jpeg format./glTF-KTX-BasisU
subfolder is optional, if a variant is included with compressed textures using the extension KHR_texture_basisu./glTF-Quantized
subfolder is optional, if a variant is included with compressed geometry using the extension KHR_mesh_quantization.The text was updated successfully, but these errors were encountered: