1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00
Commit Graph

10699 Commits

Author SHA1 Message Date
Lane Barnes
2e8c941812 Fix example code snippet in AudioStreamGenerator.xml
I was playing around with C# code snippet but I kept hearing a clipping sound. I think this is because the phase variable is being set to 0 in the wrong spot.

The phase at the end of the FillBuffer() method is some non zero number. When FillBuffer is called again, the phase is suddenly changed back to zero. This causes the end of one sin wave segment to be out of sync with the next sin wave segment. The sin wave needs to be continuous between FillBuffer calls so no clipping sound occurs.

Moving the phase variable out of FillBuffer and putting it in a scope above makes it retain its value between FillBuffer calls, making the sin wave continuous, and the clipping sound is gone.

For further proof, the demo project "Audio Generator Demo" has the phase variable be one scope above FillBuffer and it does not set phase=0 inside of FillBuffer. If anything, I'm fixing this documentation to match the working demo
2024-11-23 15:36:03 -07:00
Bastiaan Olij
1bffefb346 Adding ability to include build-in include files (precursor to custom shader templates) 2024-11-24 08:47:45 +11:00
arkology
6c38824d03 Document radial_center_offset bounds 2024-11-23 20:40:00 +03:00
Pāvels Nadtočajevs
e9b57fce82 Convert line breaks to \n and strip line break from the end of string returned by OS::read_string_from_stdin/OS::get_stdin_string. 2024-11-23 15:11:50 +02:00
Thaddeus Crews
7faad0cc7a Merge pull request #97388 from tetrapod00/visualshader-linear-srgb
VisualShader: Add LinearToSRGB and SRGBToLinear to ColorFunc node
2024-11-22 14:54:47 -06:00
Thaddeus Crews
ea3154a0d4 Merge pull request #99424 from dalexeev/core-fix-builtin-enum-const-binds
Core: Fix built-in enum constant bindings
2024-11-22 14:54:31 -06:00
Thaddeus Crews
37305e40bc Merge pull request #95711 from TokageItLab/warn-oneshot-prop
Add hint for oneshot property & warning when it will be updated continuously by Force Continuous in `AnimationMixer`
2024-11-22 14:54:30 -06:00
Thaddeus Crews
a0211b0f2e Merge pull request #99533 from crei0/look_at_modifier3d_documentation_data_typos
Fix wording in `LookAtModifier3D` docs
2024-11-22 14:54:27 -06:00
Thaddeus Crews
fe1c044c73 Merge pull request #99394 from TokageItLab/root-local
Add `root_motion_local` option to AnimationMixer to pre-multiply root motion rotation accumulator before blending
2024-11-22 14:54:24 -06:00
Thaddeus Crews
336eeda6f8 Merge pull request #99521 from mechalynx/update-packedarray-class-descriptions
Correct PackedInt64Array comparison in description
2024-11-22 14:54:23 -06:00
Thaddeus Crews
c35e4c41d2 Merge pull request #97716 from pafuent/add_half_precision_floating_point_to_stream_peer
Add half precision floating point support to `StreamPeer` and `FileAccess`
2024-11-22 14:54:19 -06:00
Thaddeus Crews
47f3e95308 Merge pull request #99352 from Mickeon/documentation-aabb-coords-are-complicated
Fix incorrect Z direction for AABB's position
2024-11-22 14:54:12 -06:00
Thaddeus Crews
0430b977b6 Merge pull request #99348 from TokageItLab/explicit_elapse
Add `explicit_elapse` option to AnimationNodeTimeSeek to handle some processes
2024-11-22 14:54:11 -06:00
Micky
e0b13004a0 Fix incorrect Z direction for AABB's position 2024-11-22 20:25:50 +01:00
vPumpking
0542bccee0 Improve space management for EditorFileDialog
Move buttons related to the file view on the container above so that they take less horizontal space and make search bar similar to the one in FileDialog
2024-11-22 18:59:03 +01:00
André Guedes
e1fa489f77 Fix wording in LookAtModifier3D docs 2024-11-22 13:15:55 +01:00
Danil Alexeev
03b05cf9ac Core: Fix built-in enum constant bindings 2024-11-22 14:03:21 +03:00
mechalynx
acf351fa6a Update PackedVector4Array description to include explanation shared by PackedArray classes 2024-11-22 07:12:56 +02:00
mechalynx
133cf62d26 Correct PackedInt64Array comparison in description
All Packed classes that have the same paragraph will compare the currently viewed Packed array type with the equivalent typed Array but here the comparison was with the Int32 version instead of the Int64 version
2024-11-22 06:23:06 +02:00
Thaddeus Crews
f952bfe998 Merge pull request #98972 from dbnicholson/standardize-add-defaults
Expose `TranslationServer::standardize_locale` `add_default` param publicly
2024-11-21 17:57:01 -06:00
Thaddeus Crews
0d8352bd96 Merge pull request #99511 from Mickeon/documentation-audio-stream-typo
Fix typo in AudioStream's documentation
2024-11-21 17:57:00 -06:00
Thaddeus Crews
d967befc42 Merge pull request #99465 from aaronfranke/arch-bit-has-feature
Suggest using OS.has_feature instead of the engine architecture name for bitness
2024-11-21 17:56:49 -06:00
Thaddeus Crews
0eca686191 Merge pull request #99270 from Sauermann/fix-svc-drop-config
Introduce a `SubViewportContainer` config for drag-and-drop target locations
2024-11-21 17:56:48 -06:00
Thaddeus Crews
1117d91704 Merge pull request #99200 from KingTheFifth/master
Document `AudioStreamPlayer.get_playback_position()` intentionally aways returning `0.0` when using `AudioStreamInteractive`
2024-11-21 17:56:43 -06:00
Dan Nicholson
6f4fadf65d Expose standardize_locale add_default param publicly
Comparing locales can have surprising outcomes since it standardizes
locales with defaults. For example, zh and zh_CN result in an exact
match since the defaults change them both to zh_Hans_CN. Expose the
add_default parameter publicly with a default of false so the fully
standardized locale can be inspected.
2024-11-21 16:50:31 -07:00
Micky
429ea1c8e3 Fix typo in AudioStream's documentation 2024-11-21 21:33:55 +01:00
Aaron Franke
f4c1f89add Suggest using OS.has_feature instead of the engine architecture name for bitness 2024-11-20 06:33:28 -08:00
Silc Lizard (Tokage) Renew
9ab94df772 Add explicit_elapse option to NodeSeek to handle some processes 2024-11-20 22:51:27 +09:00
Hugo Locurcio
0cf99cf95d Add a Viewport method to get automatically computed 2D stretch transform
`Viewport.get_stretch_transform()` returns the automatically computed
2D stretch transform. Combined with `Transform2D.get_scale()`, this is
useful when using the `canvas_items` stretch mode in a project.

There are many situations where knowing this factor is useful:

- Divide Camera2D zoom to keep the size of the 2D game world identical
  regardless of the 2D scale factor (so that UI elements can still be scaled).
- Make certain controls always drawn at 1:1 scale
  (e.g. for the crosshair in a FPS). This is done by dividing the Control
  node's scale by the scale factor.
2024-11-19 23:11:13 +01:00
Markus Sauermann
117158d271 Introduce a SubViewportContainer config for drag-and-drop targets
With the drag-and-drop rewrite, `SubViewportContainer` nodes were no
longer available as drop-locations.

This PR introduces a configuration option, that allows
`SubViewportContainer` to be considered as drop-location, but disables the
`Control` nodes inside its `SubViewport` children as drop-location.
2024-11-19 23:06:41 +01:00
Johannes Kung
3ab88c2e6a Document AudioStreamPlayer.get_playback_position() intentionally always returning 0.0 when using AudioStreamInteractive 2024-11-19 22:21:30 +01:00
Thaddeus Crews
e4dbba94d9 Merge pull request #99324 from TokageItLab/fix-fpe-spinner
Fix spinner in AnimationTrackEdit in FPS mode
2024-11-19 15:20:10 -06:00
ntlblpm
086d1ea2ac Update FileAccess.xml 2024-11-19 03:45:03 -05:00
Silc Lizard (Tokage) Renew
755bcf4737 Add root_motion_local option to AnimationMixer 2024-11-19 08:25:31 +09:00
Thaddeus Crews
fd4c29a189 Merge pull request #98683 from clayjohn/wireframe
Ensure shadow material and mesh are not used with wireframe mode
2024-11-18 09:23:54 -06:00
Thaddeus Crews
cf541f0997 Merge pull request #97656 from kitbdev/doc-textedit-improve
Improve TextEdit and CodeEdit documentation
2024-11-18 09:23:53 -06:00
Thaddeus Crews
0a50cef751 Merge pull request #98788 from Bonkahe/master
Add `multimesh_get_buffer_rd_rid` method to `RenderingServer`.
2024-11-18 09:23:46 -06:00
Thaddeus Crews
8e324c4589 Merge pull request #86195 from GreenCrowDev/curve3d_close
Add `closed` property to `Curve3D`
2024-11-18 09:23:38 -06:00
Thaddeus Crews
d72112ba0a Merge pull request #98816 from arkology/to-infinity-and-beyond
Improve `TextureProgressBar.set_radial_initial_angle()` by removing loops
2024-11-18 09:23:28 -06:00
Silc Lizard (Tokage) Renew
f5b49af99f Add RetargetModifier3D for realtime retarget to keep original rest 2024-11-18 22:44:55 +09:00
kobewi
ce512d3eea Clarify Button's text clipping 2024-11-17 23:04:52 +01:00
clayjohn
90b4b48b5a Ensure shadow material and mesh are not used with wireframe mode
And in the Compatibility renderer actually use the wireframe render mode
2024-11-16 22:25:00 -08:00
Silc Lizard (Tokage) Renew
e283fdfb59 Fix spinner in AnimationTrackEdit in FPS mode 2024-11-17 01:54:06 +09:00
matricola787
790efbb783 Implement closed path for Curve3d 2024-11-16 12:59:08 +01:00
Thaddeus Crews
e9ce3932b3 Merge pull request #98099 from dalexeev/pot-gen-add-comment-support
POT Generator: Add support for `TRANSLATORS:` and `NO_TRANSLATE` comments
2024-11-15 10:42:45 -06:00
Thaddeus Crews
1d5c589e71 Merge pull request #99212 from CW-Jesse/patch-1
Describe edge cases for `DisplayServer.get_screen_from_rect()`
2024-11-15 10:42:40 -06:00
Hugo Locurcio
d683ea4772 Update Z Index property location in Node2D class reference
The Z Index property is in CanvasItem since Godot 4.0, so it's shared among
Node2D and Control.
2024-11-15 15:02:10 +01:00
Jesse
121097db0a [DisplayServer] [docs] Improve readability of get_screen_from_rect()
Co-authored-by: Micky <66727710+Mickeon@users.noreply.github.com>
2024-11-14 16:28:51 -08:00
kit
d467b3acb5 Improve TextEdit and CodeEdit documentation 2024-11-14 17:09:00 -05:00
David House
6e9d31f602 Implemented multimesh_get_buffer_rd_rid function into RenderingServer.
Fixed style error.

Updated dummy mesh_storage to move from cpp to h the return of a blank Rid on _multimesh_get_buffer_rd_rid.
2024-11-14 15:52:08 -06:00