summaryrefslogtreecommitdiffstats
path: root/modules/gltf/gltf_document.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use image index instead of texture index for source_imagesLyuma2023-08-051-1/+2
|
* Set base_path and filename during exportAaron Franke2023-08-031-23/+26
|
* Merge pull request #79623 from aaronfranke/gltf-export-preserializeRémi Verschelde2023-08-031-0/+6
|\ | | | | | | Add `export_preserialize` to the GLTF export process
| * Add export_preserialize to the GLTF export processAaron Franke2023-07-181-0/+6
| |
* | GLTF: Preserve the original bytes when importing a textureAaron Franke2023-08-031-8/+22
| |
* | More cosmetic improvements in the GLTF codeAaron Franke2023-08-031-55/+55
| |
* | Merge pull request #79801 from aaronfranke/gltf-scene-export-logicRémi Verschelde2023-08-021-35/+30
|\ \ | | | | | | | | | Improve GLTF export logic for scene root nodes
| * | Improve GLTF export logic for scene root nodesAaron Franke2023-07-221-35/+30
| |/
* | Merge pull request #79775 from aaronfranke/gltf-node-gen-cosmeticRémi Verschelde2023-08-021-34/+34
|\ \ | | | | | | | | | Cosmetic changes in GLTF node generation code
| * | Cosmetic changes in GLTF node generation codeAaron Franke2023-07-301-34/+34
| |/
* | Merge pull request #79267 from aaronfranke/gltf-copyrightRémi Verschelde2023-08-021-17/+24
|\ \ | |/ |/| | | Add copyright to GLTFState
| * Add copyright to GLTFStateAaron Franke2023-07-101-17/+24
| |
* | Extract and reorganize texture resource classesHendrik Brucker2023-07-141-0/+2
| |
* | Merge pull request #79421 from wojtekpil/gltf_emission_strength_exportYuri Sizov2023-07-141-0/+6
|\ \ | | | | | | | | | Add `KHR_materials_emissive_strength` extension support for exporting GLTFs
| * | Add KHR_materials_emissive_strength extension support for exporting gltfswojtekpil2023-07-131-0/+6
| | |
* | | GLTF: Internal renames in material parsing codeAaron Franke2023-07-121-27/+27
|/ /
* / Add support for KHR_materials_emissive_strengthRevoluPowered2023-06-231-0/+8
|/ | | | | | | | | | This reads the multiplier for the emission strength from GLTF files. This is fairly universal and is required for blender's emission value to be imported. The value is a simple universal multiplier and is unitless. Sponsored by The Mirror.
* Fix exporting MeshInstances without a Skeleton in the GLTF moduleAaron Franke2023-05-271-18/+10
|
* Add support for extending GLTF with more texture formats & support WebPAaron Franke2023-05-221-184/+193
|
* Merge pull request #72288 from MewPurPur/use-string-repeatClay John2023-05-051-3/+3
|\ | | | | Use `String.repeat()` to optimize several String methods
| * Use String.repeat() in more placesVolTer2023-05-011-3/+3
| |
* | Merge pull request #73656 from TokageItLab/expose-3d-tracksRémi Verschelde2023-04-251-6/+6
|\ \ | | | | | | | | | Expose interpolation methods for 3D track in `Animation` class
| * | Expose interpolation methods for 3D track in Animation classSilc Renew2023-04-251-6/+6
| | |
* | | Merge pull request #69266 from aaronfranke/gltf-physicsRémi Verschelde2023-04-251-1/+1
|\ \ \ | |/ / |/| | | | | Implement physics support in the GLTF module
| * | Implement physics support in the GLTF moduleAaron Franke2023-03-091-1/+1
| | |
* | | Fix blend_shape (shapekey) empty name import.Martin Capitanio2023-04-121-1/+7
|/ / | | | | | | | | Corresponds to the Blender glTF-Importer PR https://github.com/KhronosGroup/glTF-Blender-IO/pull/1902
* | Get the unlit / unshaded extension when importing GLTF and set it when exportingHakim2023-03-051-0/+14
| |
* | For basisu avoid inserting to the image array twice.K. S. Ernest (iFire) Lee2023-02-141-1/+0
| | | | | | Basisu images were getting referenced incorrectly like set black or set as not transparent.
* | Fixes for gltf export.K. S. Ernest (iFire) Lee2023-02-071-93/+275
| | | | | | | | | | * Fix null crashes. * Bake tracks * Add some error messages.
* | Use reimport_append api for importing embedded gltf imagesLyuma2023-02-061-38/+25
| | | | | | | | Co-authored-by: K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com>
* | gltf: Add GLTFHandleBinary::HANDLE_BINARY_EMBED_AS_UNCOMPRESSEDLyuma2023-02-011-23/+58
| | | | | | | | | | | | | | | | This option allows for a safe fallback for embedded gltf textures in cases where VRAM compression is not needed. Add an is_editor_hint guard around GLTFHandleBinary::HANDLE_BINARY_EXTRACT_TEXTURES, to use EMBED_AS_UNCOMPRESSED by default at runtime. This provides an option for pixel art to be stored losslessly. Additionally, respect project importer defaults for texture import settings. Avoid writing and reimporting extracted textures identical to version on disk.
* | Merge pull request #72201 from fire/gltf-extract-imgRémi Verschelde2023-01-311-4/+13
|\ \ | | | | | | | | | Restore gltf embedded scenes due to problems with textures.
| * | gltf: Avoid using base64 hash as an image filenameK. S. Ernest (iFire) Lee2023-01-311-4/+13
| | | | | | | | | | | | Consistently use the images.name property with deduplication, or else the image index.
* | | Add remove immutable tracks option to glTF importerSilc Renew2023-01-301-30/+35
|/ / | | | | | | Co-authored-by: Lyuma <xn.lyuma@gmail.com>
* | Merge pull request #62499 from fire/gltf-binary-img-compressionRémi Verschelde2023-01-271-11/+90
|\ \ | | | | | | | | | Handle gltf binary images
| * | Handle gltf binaryK. S. Ernest (iFire) Lee2023-01-271-11/+90
| |/ | | | | | | | | | | | | | | | | | | | | | | [ Ignore and Warn | Extract Textures (default) | Optimize Loading Embedded as Basisu ] Enable compressed mip maps from Basis Universal for faster compressions. Increase the quality of Basis to avoid corruption. To keep compatibility use the first mip of the previous internal Godot format. Because texture names may have invalid filename characters, adds String::validate_filename to sanitize filenames for import pipeline use.
* | Merge pull request #72162 from lyuma/skeleton_renameRémi Verschelde2023-01-271-3/+4
|\ \ | | | | | | | | | Make BoneAttachment3D and Skeleton3D names consistent.
| * | Make BoneAttachment3D and Skeleton3D names consistent.Lyuma2023-01-261-3/+4
| |/ | | | | | | | | | | | | | | BoneAttachment3D nodes are now named as their bone name. Resolves cases where BoneAttachment3D nodes will have arbitrary names like BoneAttachment3D6 Reserve the name "Skeleton3D" and use this name for all generated Skeleton3D nodes. This change will break existing imported scenes with more than one skeleton and/or bone attachments.
* / Avoid nested skeletons, and handle skinned meshes with children.Lyuma2023-01-261-23/+58
|/ | | | | | | | | | | Recursively adds child nodes into each skeleton. This should prevent nested skeletons and avoid bone attachments for leaf bones. In cases where a skinned mesh has children, creates two scene nodes with the same name, which both will represent this single gltf node. Because blend shape animations must target the mesh, adds a separate mapping for ImporterMeshInstance3D node references. This change will break existing imported scenes with bone attachments and more than one skeleton. Co-authored-by: K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com>
* Adds missing method call to set blendshape tracks as 'imported' when ↵SaracenOne2023-01-231-0/+1
| | | | importing from a GLTF.
* Fixes cases where the runtime ResourceLoader cannot load gltf images.K. S. Ernest (iFire) Lee2023-01-191-1/+2
|
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* glTF: Fix export crash with a ShaderMaterial (fixes #70159)Quentin Guidée2022-12-171-155/+161
|
* Pass GLTFState to the export_preflight methodAaron Franke2022-12-111-1/+1
|
* Consistently use `p_` for parameters in GLTFDocumentAaron Franke2022-12-101-1022/+1022
|
* Merge pull request #69372 from aaronfranke/gltf-cleanupRémi Verschelde2022-12-101-13/+5
|\ | | | | GLTF module: Clean up lots of includes
| * GLTF: Clean up lots of includesAaron Franke2022-11-291-13/+5
| |
* | Use system fonts as fallback and improve system font handling.bruvzg2022-12-041-2/+2
|/ | | | | | | Add support for font weight and stretch selection when using system fonts. Add function to get system fallback font from a font name, style, text, and language code. Implement system font support for Android. Use system fonts as a last resort fallback.
* Merge pull request #68665 from TokageItLab/cut-unkeyed-gltf-animRémi Verschelde2022-11-291-45/+65
|\ | | | | | | Add "Trimming" option to cut un-keyed timeline before first key in glTF animation
| * Add trimming option to cut un-keyed timeline before first key in gltfSilc Renew2022-11-291-45/+65
| |