summaryrefslogtreecommitdiffstats
path: root/modules/gltf/gltf_document.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #69083 from fire/abstract_gltf_materialRémi Verschelde2022-11-241-181/+189
|\ \ | | | | | | | | | Cache materials in gltf as the abstract class of Material in GLTFDocument
| * | Cache materials in gltf as the abstract class of MaterialK. S. Ernest (iFire) Lee2022-11-241-181/+189
| | | | | | | | | | | | Use the abstract material class instead of BaseMaterial3D. This allows inserting ShaderMaterials into gltf. Like in VRM.
* | | Add unregister for GLTFDocumentExtensionRedMser2022-11-221-0/+6
|/ /
* | Add three new methods to GLTFDocumentExtensionAaron Franke2022-11-211-20/+53
| |
* | Change the way GLTFDocumentExtension classes are registeredAaron Franke2022-11-091-44/+31
|/ | | | Also move GLTFDocumentExtension into the extensions folder
* Replace Quaternion Euler constructor with `from_euler` methodAaron Franke2022-11-011-1/+1
|
* Make some Image methods statickobewi2022-10-141-4/+2
|
* SCons: Re-enable treating `#warning` as error with `werror`Rémi Verschelde2022-10-101-4/+1
| | | | | | | | Replace all TODO uses of `#warning` by proper TODO comments, and will open matching bug reports to keep track of them. We don't have a great track record fixing TODOs, but I'd wager we're even worse for fixing these "TODO #warning" so we should prohibit this usage.
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-48/+47
| | | | change warnings=all to use /W4.
* GLTF imports & exports material texture filtersThe Tophat Demon2022-10-031-5/+133
|
* Add a way to get the GLTF extensions supported by GLTFDocumentExtensionAaron Franke2022-09-191-4/+19
|
* Make used extensions stored in GLTFStateAaron Franke2022-09-191-10/+17
| | | | This allows GLTFDocumentExtension classes to add to the used extensions array.
* Minor enhancements to the GLTF module (lights and docs)Aaron Franke2022-09-181-26/+27
|
* Fix gltf 8 bone weights condition to check for the second joint arraySarfraz2022-09-101-1/+1
| | | | size.
* Rename TileMap/GridMap.`world_to_map` and opposite to `local_to_map`Micky2022-09-051-1/+1
| | | | | | | | | | | For both TileMap and GridMap: - `world_to_map` -> `local_to_map` - `map_to_world` -> `map_to_local` Also changes any mention of "world" in this context to "local" to avoid future confusion. Finally, updates the docs of both methods for consistency. In particular, adding a note on how to convert the returned values from local to global coordinates and vice versa.
* Merge pull request #65170 from KoBeWi/your_argument_is_TypedArrayRémi Verschelde2022-09-021-1/+1
|\
| * Change Array arguments to TypedArraykobewi2022-09-011-1/+1
| |
* | Add `is_zero_approx` methods to `Vector2`, `3`, and `4`Jonathan Nicholl2022-09-021-1/+1
|/
* Merge pull request #65066 from aaronfranke/str-path-joinRémi Verschelde2022-08-301-4/+4
|\
| * Rename String `plus_file` to `path_join`Aaron Franke2022-08-291-4/+4
| |
* | Move GLTF camera conversion code into GLTFCameraAaron Franke2022-08-281-68/+4
| |
* | Move GLTF light conversion code into GLTFLightAaron Franke2022-08-281-114/+6
|/
* Rename `str2var` to `str_to_var` and similarMicky2022-08-261-4/+4
| | | | | | | | | | | | | | | | | | Affects the Math class, a good chunk of the audio code, and a lot of other miscellaneous classes, too. - `var2str` -> `var_to_str` - `str2var` -> `str_to_var` - `bytes2var` -> `bytes_to_var` - `bytes2var_with_objects` -> `bytes_to_var_with_objects` - `var2bytes` -> `var_to_bytes` - `var2bytes_with_objects` -> `var_to_bytes_with_objects` - `linear2db` -> `linear_to_db` - `db2linear` -> `db_to_linear` - `deg2rad` -> `deg_to_rad` - `rad2deg` -> `rad_to_deg` - `dict2inst` -> `dict_to_inst` - `inst2dict` -> `inst_to_dict`
* Merge pull request #64400 from aaronfranke/gltf-fix-cameraRémi Verschelde2022-08-221-46/+41
|\
| * GLTF: Fix orthographic cameras, internally store data in GLTF's formatAaron Franke2022-08-141-46/+41
| |
* | Expose Basis `set_orthogonal_index` method as a GridMap functionrafallus2022-08-201-1/+1
|/
* Prevent AnimationPlayer from being added on GLTF import if the option is ↵Hakim2022-08-101-1/+1
| | | | unchecked. Fixes #63954
* Merge pull request #55943 from jvanmourik/masterRémi Verschelde2022-07-311-1/+2
|\ | | | | glTF animation parsing: Changed the 'loop' and 'cycle' animation name keywords to be case-insensitive
| * glTF animation parsing: Changed the 'loop' and 'cycle' animation name ↵jvanmourik2021-12-151-1/+2
| | | | | | | | keywords to be case-insensitive
* | Merge pull request #63219 from reduz/implement-vector4-projectionRémi Verschelde2022-07-251-1/+1
|\ \
| * | Implement Vector4, Vector4i, Projectionreduz2022-07-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement built-in classes Vector4, Vector4i and Projection. * Two versions of Vector4 (float and integer). * A Projection class, which is a 4x4 matrix specialized in projection types. These types have been requested for a long time, but given they were very corner case they were not added before. Because in Godot 4, reimplementing parts of the rendering engine is now possible, access to these types (heavily used by the rendering code) becomes a necessity. **Q**: Why Projection and not Matrix4? **A**: Godot does not use Matrix2, Matrix3, Matrix4x3, etc. naming convention because, within the engine, these types always have a *purpose*. As such, Godot names them: Transform2D, Transform3D or Basis. In this case, this 4x4 matrix is _always_ used as a _Projection_, hence the naming.
* | | GLTF: Organize structures into a subfolderAaron Franke2022-07-241-1/+1
| | |
* | | Merge pull request #63409 from V-Sekai/gltf-exportRémi Verschelde2022-07-251-10/+0
|\ \ \
| * | | Mend duplicate nodes in the gltf export.K. S. Ernest (iFire) Lee2022-07-241-10/+0
| | | |
* | | | GLTF: Move shared defines into a separate gltf_defines.h fileAaron Franke2022-07-241-35/+26
|/ / / | | | | | | | | | Also move GLTFDocument's template conversion functions into gltf_template_convert.h
* / / GLTF: Only list used extensions when they're actually usedAaron Franke2022-07-231-38/+54
|/ /
* | Add static methods for creating Image and ImageTexturekobewi2022-07-081-15/+5
| |
* | Fix light intensity and attenuation import from GLTFPZerua2022-07-051-9/+4
| |
* | glTF: Fix a couple typos in warnings on image parsingRémi Verschelde2022-07-031-2/+2
| |
* | Improve gltf extension GLTFDocument api.K. S. Ernest (iFire) Lee2022-05-201-31/+85
| |
* | Replace most uses of Map by HashMapreduz2022-05-161-24/+24
| | | | | | | | | | | | | | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* | Rename Basis get_axis to get_column, remove redundant methodsAaron Franke2022-05-031-15/+15
| |
* | Discard images from gltf import for the animation library.K. S. Ernest (iFire) Lee2022-04-231-30/+38
| | | | | | | | This is an optimization.
* | Color: Rename `to_srgb`/`to_linear` to include base color spaceRémi Verschelde2022-04-131-9/+9
| | | | | | | | | | This helps reduce confusion around sRGB <> Linear conversions by making both input and output color spaces explicit.
* | Merge pull request #59980 from reduz/animation-librariesRémi Verschelde2022-04-111-1/+8
|\ \
| * | Implement Animation Librariesreduz2022-04-111-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Instead of containing single animations, AnimationPlayer now contains libraries. * Libraries, in turn, contain the animations. This paves the way for implementing the possibility of importing scenes as animation libraries, finally allowing to import animations separate from the 3D models. Missing (will be done on separate PRs): * Make it possible to import scenes (dae/fbx/gltf) as animation libraries. * Make it possible for AnimationTree to import animation libraries on its own, so it does not rely on AnimationPlayer for everything.
* | | Make FileAccess and DirAccess classes reference counted.bruvzg2022-04-111-24/+19
|/ /
* | Add support for importing .blend filesK. S. Ernest (iFire) Lee2022-03-291-7/+9
| | | | | | | | | | | | | | | | | | | | Lets you drag or place .blend files in the project folder and it will import the files. Checks for Blender 3.0's gltf2 `export_keep_originals` option. Add basepath support to GLTFDocument append_from_file. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* | Remove last editor code dependencies in template buildRémi Verschelde2022-03-281-7/+9
| | | | | | | | | | | | SConstruct change also makes it possible to outright delete the `editor` folder in a `tools=no` build, which we use in CI to ensure no invalid cross-dependencies are added.
* | Add GLTF, DAE and FBX importers enforcement for blend shape mask arrayAdam Scott2022-03-241-0/+7
| |