Commit Graph
100 Commits
Author SHA1 Message Date
Hugo LocurcioandMax Hilbrunner e402984a8a Document rand_weighted() in Random number generation (#10283)
* Document `rand_weighted()` in Random number generation

---------

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2024-11-18 20:20:10 +01:00
338c19ca9d Document converting CSG nodes to MeshInstance3D and related lightmapping workflow (#10229)
* Document converting CSG nodes to MeshInstance3D and related lightmapping workflow

---------

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
Co-authored-by: tetrapod <145553014+tetrapod00@users.noreply.github.com>
2024-11-17 11:15:16 +01:00
703d0cdba2 Improve grammar and writing in Pipeline compilations page (#10257)
* Improve grammar and writing in Pipeline compilations page

- Mention example of off-screen rendering using ColorRect to hide
  the root viewport's 3D rendering or a SubViewport node.
- Split into more paragraphs to improve readability.
- Link to class reference pages when relevant.
- Wrap source file to 80 characters like other pages.

---------

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
Co-authored-by: tetrapod <145553014+tetrapod00@users.noreply.github.com>
2024-11-15 16:05:02 +01:00
Hugo Locurcio 2d9aeb9740 Update Random number generation for Godot 4.2+ (#9822)
- Document `Array.pick_random()` as a shorthand.
- Use global scope random methods as they are all available in global scope now.
- Remove calls to `randomize()` that are not needed for code samples
  to be functional, as the engine now calls `randomize()` on startup
  once automatically.
2024-11-13 13:59:04 +01:00
Hugo LocurcioandShawn Hardern 4c3020b775 Document @export_custom and additional range hints in GDScript exports
This also adds a hint suffix example to C# exports.

Co-authored-by: Shawn Hardern <126725649+ShawnHardern@users.noreply.github.com>
2024-11-11 17:22:44 +01:00
Hugo Locurcio bebd5b86c4 Add color constants reference to BBCode in RichTextLabel
This reference is already present in the Color class reference,
but this embeds it directly in the page to save users a click.
2024-11-11 16:27:14 +01:00
Hugo Locurcio 40d16134a5 Document exporting as progressive web app in Exporting for the web
- Document no-threads web export and its limitations.
- Document sample-based audio playback and its limitations.
- Mention that threading issues can be worked around by exporting
  as a progressive web app.
2024-11-08 23:30:41 +01:00
Hugo Locurcio c9ec2428bc Tweak SSRL performance cost in 3D antialiasing comparison table
The screen-space roughness limiter's performance cost is very low
compared to other antialiasing methods (typically in the same
ballpark as FXAA).
2024-11-07 16:58:50 +01:00
Hugo Locurcio 8d21f6f7ec Fix link to Windows platform port in Custom platform ports
- Fix link to Linux Vulkan context code.
- Add references to Direct3D 12.
2024-11-05 08:20:03 +01:00
Hugo Locurcio e954194991 Apply suggestion from Spring arm camera pull request 2024-11-04 20:11:48 +01:00
Hugo Locurcio 47eda9fe60 Mention a way to get development snapshots' source code in Getting the source 2024-11-03 23:39:39 +01:00
Hugo Locurcio 4679999c4d Tweak constant example in Shading language to avoid referring to reserved PI 2024-10-29 15:15:43 +01:00
Hugo Locurcio 0d3ccb1f6f Mention callback argument count in The JavaScript bridge singleton 2024-10-29 15:06:53 +01:00
Hugo Locurcio 748775370a Use negative index for get_child() in Singletons (Autoload) 2024-10-27 22:24:28 +01:00
Hugo Locurcio a35d441cd7 Update URL to Microsoft codesigning guide in Exporting for Windows 2024-10-22 16:55:29 +02:00
Hugo Locurcio cbf61b3f02 Document Variant not being nullable 2024-10-17 15:28:24 +02:00
Hugo Locurcio 594a1d6cbc Mention documentation comments in GDScript basics 2024-10-17 15:12:35 +02:00
Hugo Locurcio 30eebc4bb7 Document filename requirements in C# global classes
- Flesh out the introduction.
2024-10-17 10:45:46 +02:00
Hugo Locurcio 346af99154 Document physics spiral of death performance issue in Troubleshooting physics issues 2024-10-16 22:45:16 +02:00
Hugo Locurcio 4ab397cd5e Document generate_bundle=yes SCons option in Compiling for macOS and iOS
- Reorder instructions to mention ARM64 builds first in macOS,
  as this is the primary architecture in use now (with all new Macs
  since 2023 being sold with Apple Silicon only). The `lipo` command still
  works as before, as it infers the architecture from the input files.
- Remove the manual bundle generation steps to make the page shorter
  (similar to Compiling for Android).
- Remove references to the master branch (this was only relevant when
  4.0 was still in development).
2024-10-16 17:51:52 +02:00
Hugo Locurcio a878406e8d Clarify restrictions on nested array types in Static typing in GDScript 2024-10-16 16:23:32 +02:00
Hugo Locurcio 1bc440b2db Update Default editor shortcuts for Godot 4.3+ 2024-10-05 01:47:20 +02:00
Hugo Locurcio 36bb7e5ac5 Document expression evaluator in Debugger panel 2024-10-05 00:35:05 +02:00
Hugo LocurcioandMax Hilbrunner 8af700e841 Fix incorrect notice about XDG paths working on all platforms in Data paths (#10009)
* Fix incorrect notice about XDG paths working on all platforms in Data paths

They are only effective on Linux/*BSD. (For reference, in most other apps,
it's rare for XDG environment variables to have an effect on other platforms.)

---------

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2024-10-04 03:26:32 +02:00
Hugo Locurcio a9a2cd1a20 Tweak note about making Physics Material unique in Creating instances 2024-10-02 16:39:21 +02:00
Hugo Locurcio fd241c74cb Clarify "authority" in High-level multiplayer 2024-09-30 22:01:18 +02:00
Hugo Locurcio 960125f576 Fix Code order section saying it's the first section in GDScript style guide
It's not the first section of the page anymore.
2024-09-23 23:58:39 +02:00
Hugo Locurcio 7a13592c9c Link to Exporting projects in Finishing up page of Your first 2D game
After finishing your first game, you may want to share it for others
to try it out without needing to install Godot.
2024-09-19 01:44:06 +02:00
Hugo Locurcio 89508cdc98 Fix outdated reference to register_class function in GDExtension C++ example
This was replaced by the `GDREGISTER_CLASS` macro in Godot 4.0.
2024-09-19 01:33:41 +02:00
Hugo Locurcio be34108636 Document profiler autostart functionality 2024-09-16 23:33:41 +02:00
Hugo Locurcio 802f5b49c2 Fix outdated get_data() JSON method usage in Saving games
Direct member access is now used in Godot 4.
2024-09-16 23:30:13 +02:00
Hugo Locurcio 3acbf06937 Fix animation name in Your first 2D game 2024-09-15 17:56:30 +02:00
Hugo Locurcio 93261ab5d7 Harmonize Bash command syntax for easier line selection and copy-pasting
- Remove prompt or `$` sign which makes triple-click based selection
  more difficult and time-consuming.
- Use `platform` instead of `p` alias in all SCons examples.
2024-09-15 16:27:34 +02:00
Hugo Locurcio 8f320d5e54 Fix incorrect statement in node_type being case-insensitive in Creating script templates
On case-sensitive filesystems, the case must match the actual node name,
so the folder will most likely need to use uppercase characters in its name
(e.g. `MeshInstance3D`).
2024-09-15 16:00:05 +02:00
Hugo Locurcio fe80ff22df Fix ADD_PROPERTY() calls in GDExtension C++ example to use correct syntax
This matches how properties are declared in core Godot.
2024-09-06 22:25:59 +02:00
Hugo Locurcio c504fc34d1 Fix sprite position in code sample in Optimization using servers 2024-09-05 03:43:31 +02:00
Hugo Locurcio 5c4342caa4 Fix keywords for Vector in GDScript syntax highlighting
- Add Vector4 and Vector4i to syntax highlighting.
- Removed nonexistent PackedVector2iArray and PackedVector3iArray.
2024-09-04 20:34:16 -04:00
Hugo Locurcio da9e6ea5c3 Document file path String methods in File paths in Godot projects 2024-09-05 02:28:35 +02:00
Hugo Locurcio b95f46f078 Fix incorrect setup instructions in The profiler 2024-09-05 02:19:27 +02:00
Hugo Locurcio 4726e131db Document PackedVector4Array
This type was added in Godot 4.3.
2024-09-02 22:21:50 +02:00
Hugo Locurcio f54bb92faa Fix decals demo link in Using decals 2024-08-31 03:31:23 +02:00
Hugo Locurcio 1cb5f0a0b6 Document physics interpolation not being supported in 2D particles yet 2024-08-25 00:51:02 +02:00
Hugo Locurcio 49a432d066 Fix Visual Studio Code gdb pretty print script path to match the Godot repository 2024-08-17 20:31:26 +02:00
Hugo Locurcio 48df572ab9 Add cubemap template images to Importing images
Images were generated using
<https://github.com/Calinou/godot-cubemap-generator>.
2024-08-08 19:34:33 +02:00
Hugo Locurcio fdf310da93 Recommend unshaded render mode for quad in Advanced post-processing
This prevents the quad from being affected by lighting, while also
improving performance.
2024-08-01 03:37:28 +02:00
Hugo Locurcio 709fe6aab2 Add variable font weight table to Using fonts 2024-08-01 03:17:07 +02:00
Hugo Locurcio 4e0bc31f58 Document baking lightmaps on Android/web editor is not supported
This also removes a duplicated heading.
2024-07-15 00:44:06 +02:00
Hugo Locurcio f039df956c Link to class reference BBCode syntax subset in BBCode in RichTextLabel 2024-07-14 21:15:43 +02:00
Hugo Locurcio 71a606fce9 Update Cross-compiling for iOS on Linux
- Update link to Xcode download. Mention that it requires being
  logged into an Apple ID for the page to be visible.
- Remove DMG method as Xcode has been distributed in XIP archives
  since 2016.
2024-07-13 06:31:57 +02:00
Hugo Locurcio 601eb7799b Clarify notice about feature tags being immutable
- Update the recommendation to check for the project running on
  a mobile web browser.
2024-07-08 22:05:10 +02:00
Hugo Locurcio d23fe7bd8e Mention that signals are first-class types since Godot 4.0 in Using signals 2024-07-03 17:41:25 +02:00
Hugo Locurcio e7fdb120c7 Fix dead links in the documentation
Command used:

    lychee **/*.rst --github-token="..." --accept="100..=103,200..=299,429"

429 error codes were allowed due to a high number of false positives,
even with a GitHub token specified.
2024-07-01 18:55:30 +02:00
Hugo Locurcio 823a85d186 Recommend using NVIDIA app to resolve replay indicator issue in Troubleshooting 2024-07-01 17:55:27 +02:00
Hugo Locurcio 23c0ee2833 Document caveats related to GPUParticles3D collision
- Remove incorrect notice about GPUParticles2D not supporting
  collision. This is supported using LightOccluder2D with SDF
  generation enabled.
2024-06-27 01:53:36 +02:00
Hugo Locurcio 8bbf8563ff Link to more up-to-date FuncGodot plugin in CSG Tools, add Cyclops Level Builder
Qodot is now in maintenance mode and has been superseded by FuncGodot.
2024-06-14 21:44:44 +02:00
Hugo Locurcio 06bd5b3ccb Fix false positives in codespell CI and fix reported typos
- Don't install codespell when building offline docs
  as it's not needed in that workflow.
2024-05-31 10:58:12 +02:00
Hugo Locurcio 8e6067d143 Improve OpenGL documentation in Internal rendering architecture
- Mention that OpenGL ES can be run directly on desktop platforms
  with a command line argument.
- Remove notice about some OpenGL features being unimplemented,
  as the Compatibility rendering is pretty much feature-complete
  as of 4.3.
- Update URL for the Vulkan rendering driver to follow RenderingDeviceDriver
  changes.
- Fix incorrect notice about the D3D12 rendering driver transpiling
  GLSL to HLSL (it transpiles SPIR-V to DXIL instead).
2024-05-31 10:20:48 +02:00
Hugo Locurcio 71cdbdd055 Tweak guidelines on dictionary and enum formatting in GDScript style guide
- Recommend writing each enum item on its own line, similar to C++.
- Recommend using spaces around inline dictionary declarations
  to make them easier to distinguish from arrays (due to similar-looking
  `[]` and `{}` characters in most fonts). This is commonly found
  in Python or JavaScript style guides.
2024-05-29 17:52:29 +02:00
Hugo Locurcio 27f9076302 Update dependencies in Compiling for Linux/*BSD
- List Wayland dependency and packages on most distributions.
- Use `sudo` on distributions that are set up to use it by default.
- Use unattended install-friendly commands (e.g. `-y` switch).
- Mention required commands to run before installing, such as
  `apt-get update`.
- Fix install commands on some distributions:
  - Alpine no longer packages libexecinfo since 3.17, so it was removed
    from the list.
  - Solus requires `-c` for `system.devel`.
- Reorder distributions so they're in alphabetical order.
2024-05-11 00:05:57 +02:00
Hugo Locurcio 5d6dfe147d Mention documentation comment support in Shading language
This also updates the shaders style guide accordingly.
2024-04-29 20:08:37 +02:00
Hugo Locurcio 8fdd378fa3 Update asset library demo URLs to point to Godot 4.x demos 2024-04-18 03:34:54 +02:00
Hugo Locurcio 331484e9f6 Document decal sorting behavior in Using decals 2024-04-04 22:21:07 +02:00
Hugo Locurcio 7e7182ba2b Mention how to improve font rendering quality in 3D text 2024-03-27 22:36:37 +01:00
Hugo Locurcio 3e3bbde35b Add support for embedding videos in documentation pages
This is more efficient than GIFs, animated PNGs or WebPs, while also
providing controls and audio playback if needed.
2024-03-27 19:58:27 +01:00
Hugo Locurcio 8acfc9fa52 Update SSL/TLS certificates page for Godot 4.x
- Recommend CA certificates as the first option, as they're trusted
  by other applications and require less configuration. Let's Encrypt
  has made CA certificates available for free for a while now.
- Link to mkcert as an alternative for self-signed certificates
  (for local development purposes).
2024-03-27 19:17:47 +01:00
Hugo Locurcio 8673215b5c Update C# version recommendation in C# style guide
.NET 6.0 supports C# 10.0.
2024-03-25 18:51:26 +01:00
Hugo Locurcio 7a7f815b81 Mention per-vertex shading is currently unimplemented in Standard Material 3D
This also removes an outdated mention of Oren-Nayar diffuse mode,
which no longer exists since 4.0.
2024-03-23 18:16:09 +01:00
Hugo Locurcio 680d3a7a71 Fix autoplay icon link in Your first 3D game - Adding animations 2024-03-13 01:57:13 +01:00
Hugo Locurcio a5649f0a4b Clarify production=yes SCons option in Compiling for Linux/*BSD 2024-03-05 19:37:08 +01:00
Hugo Locurcio 16c34b2971 Mention buffer size and Windows 11 mouse polling in Fixing jitter, stutter and input lag
This also documents command line arguments that may be of interest when
running Godot projects.
2024-03-05 19:04:47 +01:00
Hugo Locurcio 4503812d6b Document some glow properties being unavailable with Compatibility 2024-03-01 20:02:35 +01:00
Hugo Locurcio 53984b5b84 Document roughness impacting refraction behavior in Standard Material 3D 2024-03-01 19:39:32 +01:00
Hugo Locurcio dafb890834 Update hiDPI support documentation in Multiple resolutions 2024-03-01 17:06:45 +01:00
Hugo Locurcio ce68812599 Document disabling NVIDIA ShadowPlay overlay in Troubleshooting 2024-02-28 23:00:02 +01:00
Hugo Locurcio 474c9b8339 Use Montserrat font for headings to match godotengine.org
This provides a visual look closer to the website and helps headings
stand out more thanks to their bolder weight.
2024-02-24 20:12:39 +01:00
Hugo Locurcio 8307505c29 Fix missing texture mipmap bias formula in Resolution scaling 2024-02-02 22:07:52 +01:00
Hugo Locurcio 27b85f7e9d Disallow page comments on System requirements
Like other pages in the About section, user notes can't be posted.
2024-01-29 23:09:58 +01:00
Hugo Locurcio b4cc1899d2 Update recommended MSVC version in Compiling for Windows
- Mention that official Godot binaries are compiled using MinGW
  (and describe why).
2024-01-29 19:37:51 +01:00
Hugo Locurcio 1f8046d7e8 Document accessing web one-click deploy from remote devices 2024-01-27 19:17:14 +01:00
Hugo Locurcio 1924aa4ca2 Fix table caption text color on dark theme 2024-01-26 22:31:28 +01:00
Hugo Locurcio 307650e682 Update Internal rendering architecture for Godot 4.2 2024-01-17 00:54:00 +01:00
7bfebadbff Document Windows limitation to 4 controllers in Controllers, gamepads and joysticks (#8594)
* Document Windows limitation to 4 controllers in Controllers, gamepads and joysticks

---------

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
Co-authored-by: Matthew <matthewehr@hotmail.com>
2024-01-14 00:23:56 +01:00
Hugo Locurcio 95fb178429 Add support for user-provided comments with Giscus
This allows users to leave comments on pages that don't have
`:allow_comments: False` somewhere in the page's source.
Both manual and class reference pages can receive comments.
Index pages cannot have comments, as discussion should occur on "leaf" pages.

GitHub Discussions is used as a backend on the same repository. This means
that Discussions *must* be enabled on godotengine/godot-docs before this
commit is merged to `master`. Users can choose to use the "Custom" watch
mode if they don't want to get notifications for discussion updates,
but still get notifications for issue and pull request updates.

User comments are intended to be used for the following purposes:

- Add a clarification or correct something in the documentation,
  without having to open a pull request. Contributors are encouraged to
  take a look at discussions from time to time, and see if there's information
  worth incorporating in the pages themselves. Don't forget to reply to
  the comment when doing so :)
- Mention a workaround for a common issue.
- Link to useful third-party resources that are relevant to the current page,
  such as tutorials or add-ons.

User comments should *not* be used for technical support. Other community
platforms should be used for that.

Page-to-discussion matching is done using the `pagename` Sphinx variable,
which is independent of the Godot version and documentation language.
Being independent of the Godot version allows keeping old comments
when the Godot version changes, while also allowing users from `/stable`
and `/4.1` to "see" each other in discussions.

See https://giscus.app for more information.
2024-01-11 17:51:53 +01:00
Hugo Locurcio e93fc9b1f2 Document importing SVG images with text
- Mention editor plugins and custom node icons should use the appropriate
  import options.
2024-01-11 00:18:50 +01:00
Hugo Locurcio 09078cffb5 Document limit of VoxelGI and LightmapGI instances that can be rendered 2023-12-17 23:06:07 +01:00
Hugo Locurcio 59842e9c35 Fix per-instance shader parameter classref link in Shading language 2023-12-16 22:08:28 +01:00
Hugo Locurcio 9804b8abed Mention potential banding issues in fog and volumetric fog documentation 2023-12-11 18:08:32 +01:00
Hugo Locurcio 06060434ed Document Fullscreen vs Exclusive Fullscreen window mode for integer scaling 2023-12-09 14:10:12 +01:00
Hugo Locurcio 9e78f105d3 Add a page on Godot system requirements 2023-12-04 20:43:32 +01:00
Hugo Locurcio 04020f1c08 Fix / keyboard shortcut to allow typing / within the search field
- Select all existing text in the field when pressing the shortcut.
- Remove broken Algolia integration (unused since 4.0) and move
  the shortcut code to the main `custom.js` file.
2023-12-04 15:45:04 +01:00
Hugo Locurcio 8a52cac55b Update documentation changelog for 4.2 2023-12-03 18:15:15 +01:00
Hugo Locurcio 8373007666 Document AMD FidelityFX Super Resolution 2.2 support
This documents its use both as an upscaling method and an antialiasing
method.
2023-11-24 21:55:31 +01:00
Hugo Locurcio 2633dedf71 Add section on optimizing distribution size in Optimizing a build for size
This isn't strictly related to compiling custom export templates,
but it's a neat trick to reduce the final distribution size that works
regardless of the export template binary used.
2023-11-24 21:54:01 +01:00
Hugo Locurcio 7fb4080299 Document limitations of local RenderingDevices in Using compute shaders 2023-11-24 20:38:21 +01:00
Hugo Locurcio 59cfbbbd82 Add notice about GDExtension being experimental in What is GDExtension? 2023-11-17 15:28:45 +01:00
Hugo Locurcio d07baf3836 Document alpha antialiasing in Standard Material 3D
- Fix a typo in 3D rendering limitations.
2023-11-15 20:16:03 +01:00
Hugo Locurcio 48596bc9ed Document using EditorScript in Running code in the editor
EditorScript is useful for one-off operations such as:

- Use as a playground for GDScript or C# scripting without
  having to run a project.
- Scale all light nodes in the currently edited scene.
- Replace nodes that were copy-pasted with scene instances.
2023-11-14 12:03:11 +01:00
Hugo Locurcio f9817954c7 Remove unused images
This reduces the size of ZIP downloads for offline reading.

Unused images were found by running `_tools/list-unused-images.sh`.
These images were used in Godot 2.x and 3.x documentation,
but have been replaced by remade images with different names since.
2023-11-13 21:57:19 +01:00
Hugo Locurcio 49f1f01b41 Update list-unused-images.sh script for recent changes
- Exclude all images in the top-level `img/` folder.
- Take WebP images into account.
- Fix shellcheck warnings.
- Mark the script as executable so it can be run more easily.
2023-11-13 21:51:44 +01:00
Hugo Locurcio fc911e7433 Mark Android system font loading as unreliable in Using fonts 2023-11-10 12:08:43 +01:00