Godot Engine – Multi-platform 2D and 3D game engine
Go to file
Arseny Kapoulkine 4e9e35b58a Fix AABB computation for position compression to not depend on vertex order
The previous computation was dependent on the vertex order in two ways:

- If the first vertex was on the AABB boundary, the AABB would be
  increased by the epsilon due to size clamping
- Every time the AABB would get expanded, we would recompute end from
  size and reconstruct size again, which resulted in slow floating point
  drift.

In isolation this may not seem like it matters, but it means that the
same mesh with a different vertex order may result in a slightly different
AABB. This can be a significant issue due to shadow meshes and their use in
depth prepass: shadow meshes reorder vertex data as part of the
deduplication process, as they append one unique position at a time and
as such remove the duplicate positions; this can result in a different
AABB which would result in a different reconstructed vertex position
during a depth pre-pass, causing mesh self-occlusion.
2024-07-03 23:53:24 -07:00
.github Update the github Android builds config 2024-06-26 12:44:15 -07:00
core Merge pull request #93564 from Calinou/project-user-dir-prevent-trailing-periods 2024-06-26 18:15:19 +02:00
doc Merge pull request #91920 from dmipeck/fix-hashing-context-example 2024-06-27 10:05:50 +02:00
drivers Move MIDI parsing up from ALSA driver to platform independent driver. 2024-06-25 16:46:30 +01:00
editor Merge pull request #93661 from passivestar/overview-label 2024-06-27 17:08:26 +02:00
main Update the splash screen logic for the Godot app template 2024-06-10 00:59:36 -07:00
misc Merge pull request #93511 from Repiteo/style/relocate-pretty-print 2024-06-25 10:02:02 +02:00
modules Fix support for environment blend modes on `WebXRInterface` 2024-06-26 22:02:20 -05:00
platform Fix web export state for remote debug 2024-06-26 08:37:56 -04:00
scene Merge pull request #93607 from kitbdev/fix-text-edit-move-lines 2024-06-27 17:08:23 +02:00
servers Fix AABB computation for position compression to not depend on vertex order 2024-07-03 23:53:24 -07:00
tests Merge pull request #93607 from kitbdev/fix-text-edit-move-lines 2024-06-27 17:08:23 +02:00
thirdparty Merge pull request #93378 from akien-mga/thorvg-0.13.8 2024-06-21 10:14:32 +02:00
.clang-format Style: Workaround clang-format 14 bug with `Inline` oneliner functions 2022-08-03 12:20:23 +02:00
.clang-tidy CI: Add pre-commit hook for `clang-tidy` 2024-06-17 11:27:18 -05:00
.editorconfig CI: Add `svgo` pre-commit hook 2024-06-23 08:14:54 -05:00
.git-blame-ignore-revs Template format commit to .git-blame-ignore-revs 2024-03-08 08:33:06 -06:00
.gitattributes Dotnet: Fix attributes for `sln`/`csproj` files 2024-05-03 12:21:51 -05:00
.gitignore Ignore Kate's build file 2024-06-05 12:54:33 -03:00
.mailmap Update AUTHORS and DONORS list 2024-05-01 13:17:11 +02:00
.pre-commit-config.yaml CI: Add `svgo` pre-commit hook 2024-06-23 08:14:54 -05:00
AUTHORS.md Update AUTHORS and DONORS list 2024-05-01 13:17:11 +02:00
CHANGELOG.md Add changelog for Godot 4.2 2023-11-29 18:08:07 +01:00
CONTRIBUTING.md Change suggestion in `CONTRIBUTING.md` to avoid spam 2024-06-22 15:20:33 +02:00
COPYRIGHT.txt vulkan: Update all components to Vulkan SDK 1.3.183.0 2024-06-03 10:25:46 +02:00
DONORS.md Update AUTHORS and DONORS list 2024-05-01 13:17:11 +02:00
LICENSE.txt One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
LOGO_LICENSE.txt Cleanup various repository documentation files 2023-10-10 13:58:13 +02:00
README.md Cleanup various repository documentation files 2023-10-10 13:58:13 +02:00
SConstruct Fix not using `encoding="utf-8"` when writing to files or reading from them 2024-06-19 23:35:03 +08:00
gles3_builders.py Update pre-commit hooks configuration to use `ruff` instead of `black` 2024-05-21 18:02:29 -05:00
glsl_builders.py Update pre-commit hooks configuration to use `ruff` instead of `black` 2024-05-21 18:02:29 -05:00
godot.manifest Windows: Implement `DisplayServer::dialog_show` and `DisplayServer::dialog_input_text` 2024-03-04 12:53:22 -08:00
icon.png Remove two very slightly displaced duplicate vertices on Gobot's face 2020-12-11 07:05:54 +01:00
icon.svg Style: Optimize `.svg` files with `svgo` 2024-06-23 08:15:19 -05:00
icon_outlined.png Add an outlined version of logo.png and icon.png and put it in README.md 2020-12-14 06:42:51 +01:00
icon_outlined.svg Style: Optimize `.svg` files with `svgo` 2024-06-23 08:15:19 -05:00
logo.png Remove two very slightly displaced duplicate vertices on Gobot's face 2020-12-11 07:05:54 +01:00
logo.svg Style: Optimize `.svg` files with `svgo` 2024-06-23 08:15:19 -05:00
logo_outlined.png Convert the logo's text outlines into paths 2023-04-07 17:51:56 +02:00
logo_outlined.svg Style: Optimize `.svg` files with `svgo` 2024-06-23 08:15:19 -05:00
methods.py Fix not using `encoding="utf-8"` when writing to files or reading from them 2024-06-19 23:35:03 +08:00
platform_methods.py Update pre-commit hooks configuration to use `ruff` instead of `black` 2024-05-21 18:02:29 -05:00
pyproject.toml CI: Migrate codespell logic to `pyproject.toml` 2024-06-03 10:19:58 -05:00
scu_builders.py Update pre-commit hooks configuration to use `ruff` instead of `black` 2024-05-21 18:02:29 -05:00
version.py Bump version to 4.3-beta 2024-05-13 17:37:07 +02:00

README.md

Godot Engine

Godot Engine logo

2D and 3D cross-platform game engine

Godot Engine is a feature-packed, cross-platform game engine to create 2D and 3D games from a unified interface. It provides a comprehensive set of common tools, so that users can focus on making games without having to reinvent the wheel. Games can be exported with one click to a number of platforms, including the major desktop platforms (Linux, macOS, Windows), mobile platforms (Android, iOS), as well as Web-based platforms and consoles.

Free, open source and community-driven

Godot is completely free and open source under the very permissive MIT license. No strings attached, no royalties, nothing. The users' games are theirs, down to the last line of engine code. Godot's development is fully independent and community-driven, empowering users to help shape their engine to match their expectations. It is supported by the Godot Foundation not-for-profit.

Before being open sourced in February 2014, Godot had been developed by Juan Linietsky and Ariel Manzur (both still maintaining the project) for several years as an in-house engine, used to publish several work-for-hire titles.

Screenshot of a 3D scene in the Godot Engine editor

Getting the engine

Binary downloads

Official binaries for the Godot editor and the export templates can be found on the Godot website.

Compiling from source

See the official docs for compilation instructions for every supported platform.

Community and contributing

Godot is not only an engine but an ever-growing community of users and engine developers. The main community channels are listed on the homepage.

The best way to get in touch with the core engine developers is to join the Godot Contributors Chat.

To get started contributing to the project, see the contributing guide. This document also includes guidelines for reporting bugs.

Documentation and demos

The official documentation is hosted on Read the Docs. It is maintained by the Godot community in its own GitHub repository.

The class reference is also accessible from the Godot editor.

We also maintain official demos in their own GitHub repository as well as a list of awesome Godot community resources.

There are also a number of other learning resources provided by the community, such as text and video tutorials, demos, etc. Consult the community channels for more information.

Code Triagers Badge Translate on Weblate TODOs