Skip to content

Commit

Permalink
Added compatibility with 4.1.3 and Update Docs
Browse files Browse the repository at this point in the history
[CI] ↗️ Updated Binaries: 2c8e46e
  • Loading branch information
github-actions-auto-updater[bot] authored and DmitriySalnikov committed Jan 2, 2024
1 parent f96700b commit 2da328d
Show file tree
Hide file tree
Showing 39 changed files with 139 additions and 80 deletions.
2 changes: 1 addition & 1 deletion .github/actions/compile_gdextension/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ inputs:
description: Secrets token
telemetry_version:
description: Telemetry version
default: 2fcd3ec9e528d1cd26978d0d27e9c6a3b2006270
default: 2ed8ace3201d466c0bac4f0d40f05d2ec85a6bd3
runs:
using: composite
steps:
Expand Down
2 changes: 1 addition & 1 deletion addons/debug_draw_3d/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Precompiled for:

Thanks to Nick Maltbie ([nicholas-maltbie](https://github.com/nicholas-maltbie)) ([#24](https://github.com/DmitriySalnikov/godot_debug_draw_3d/pull/24))

> **Warning**
> [!WARNING]
>
> * Firefox most likely can't run this demo
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified addons/debug_draw_3d/libs/libdd3d.linux.editor.x86_64.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified addons/debug_draw_3d/libs/libdd3d.macos.editor.universal.dylib
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified addons/debug_draw_3d/libs/libdd3d.windows.editor.x86_64.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions dd3d_web_build/project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ config/no_csharp_support=true
[audio]

buses/default_bus_layout="res://examples_dd3d/VisualizerAudioBus.tres"
driver/output_latency=50

[dotnet]

Expand Down
4 changes: 2 additions & 2 deletions docs/Examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ C# bindings work using ClassDB, which greatly decreases its performance and it c
If you don't want to write `DebugDraw3D`/`DebugDraw2D` every time, so you can use aliases for these singletons.

```python
var _s = Dbg3.new_scope_config().set_thickness(0.025).set_center_brightness(0.7)
var _s = Dbg3.new_scoped_config().set_thickness(0.025).set_center_brightness(0.7)
Dbg3.draw_grid_xf(%Grid.global_transform, Vector2i(10,10), Color.LIGHT_GRAY)
Dbg2.set_text("Frametime", delta)
```
Expand All @@ -59,7 +59,7 @@ There is more information in the description of DebugDrawManager.

## Scope configs

When using DebugDraw3D, you will probably want to use the scope configurations DebugDraw3DScopeConfig. With this class you will be able to change the thickness of the geometry, the brightness of the volumetric shapes, the density of the sphere mesh and possibly other parameters in the future.
When using DebugDraw3D, you will probably want to use the scoped configurations DebugDraw3DScopeConfig. With this class you will be able to change the thickness of the geometry, the brightness of the volumetric shapes, the density of the sphere mesh and possibly other parameters in the future.

![](images/classes/LineThickness.webp)

Expand Down
30 changes: 15 additions & 15 deletions docs/image_generator/preview_generator.gd
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func _process(delta):
%AnimationPlayer.advance(delta)

# Default 3D
var _s_def = DebugDraw3D.new_scope_config().set_thickness(0.05)
var _s_def = DebugDraw3D.new_scoped_config().set_thickness(0.05)

# Default 2D
DebugDraw2D.custom_canvas = $Control/PanelContainer
Expand All @@ -276,7 +276,7 @@ func _process(delta):

# Grid
if true:
var _s = DebugDraw3D.new_scope_config().set_thickness(0.025).set_center_brightness(0.7)
var _s = DebugDraw3D.new_scoped_config().set_thickness(0.025).set_center_brightness(0.7)
DebugDraw3D.draw_grid_xf(%Grid.global_transform, Vector2i(10,10), Color.LIGHT_GRAY)

var up_vec = $OriginUpVector.global_position - $OriginUpVector/Up.global_position
Expand All @@ -288,36 +288,36 @@ func _process(delta):

match preview_case:
PreviewCase.LineThickness:
var _s = DebugDraw3D.new_scope_config().set_thickness(anim_value_1)
var _s = DebugDraw3D.new_scoped_config().set_thickness(anim_value_1)
DebugDraw3D.draw_line(%OriginLine/A.global_position, %OriginLine/B.global_position, Color.DARK_SLATE_BLUE)
PreviewCase.LineCenterBrightness:
var _s = DebugDraw3D.new_scope_config().set_center_brightness(anim_value_1).set_thickness(0.2)
var _s = DebugDraw3D.new_scoped_config().set_center_brightness(anim_value_1).set_thickness(0.2)
DebugDraw3D.draw_line(%OriginLine/A.global_position, %OriginLine/B.global_position, Color.DARK_SLATE_BLUE)
PreviewCase.LineBevel:
var _s = DebugDraw3D.new_scope_config().set_center_brightness(0.7).set_thickness(0.2)
var _s = DebugDraw3D.new_scoped_config().set_center_brightness(0.7).set_thickness(0.2)
DebugDraw3D.draw_line(%OriginLine/A.global_position, %OriginLine/B.global_position, Color.FIREBRICK)
PreviewCase.SphereDensity:
var _s = DebugDraw3D.new_scope_config().set_thickness(0.02).set_hd_sphere(anim_value_1 == 1)
var _s = DebugDraw3D.new_scoped_config().set_thickness(0.02).set_hd_sphere(anim_value_1 == 1)
DebugDraw3D.draw_sphere_xf(%OriginInstances.global_transform, Color.INDIAN_RED)
PreviewCase.IcoSphere:
var _s = DebugDraw3D.new_scope_config().set_thickness(0.02)
var _s = DebugDraw3D.new_scoped_config().set_thickness(0.02)
DebugDraw3D.draw_sphere_xf(%OriginInstances.global_transform, Color.INDIAN_RED)
PreviewCase.PlaneSize:
var _s = DebugDraw3D.new_scope_config().set_plane_size(anim_value_1)
var _s = DebugDraw3D.new_scoped_config().set_plane_size(anim_value_1)
DebugDraw3D.draw_plane(plane, Color.SEA_GREEN * Color(1,1,1,0.6), pxf.origin)

PreviewCase.Line:
var _s = DebugDraw3D.new_scope_config().set_center_brightness(0.7).set_thickness(0.2)
var _s = DebugDraw3D.new_scoped_config().set_center_brightness(0.7).set_thickness(0.2)
DebugDraw3D.draw_line(%OriginLine/A.global_position, %OriginLine/B.global_position, Color.FIREBRICK)
PreviewCase.Arrow:
var _s = DebugDraw3D.new_scope_config().set_center_brightness(0.7).set_thickness(0.05)
var _s = DebugDraw3D.new_scoped_config().set_center_brightness(0.7).set_thickness(0.05)
DebugDraw3D.draw_arrow(%OriginInstances/A.global_position, %OriginInstances/B.global_position, Color.FIREBRICK, 0.2)

PreviewCase.DrawSphere:
var _s = DebugDraw3D.new_scope_config().set_thickness(0.03)
var _s = DebugDraw3D.new_scoped_config().set_thickness(0.03)
DebugDraw3D.draw_sphere_xf(%OriginInstances.global_transform.scaled_local(Vector3.ONE * 1.1), Color.INDIAN_RED)
PreviewCase.DrawSphereXf:
var _s = DebugDraw3D.new_scope_config().set_thickness(0.03)
var _s = DebugDraw3D.new_scoped_config().set_thickness(0.03)
DebugDraw3D.draw_sphere_xf(%OriginInstances.global_transform.scaled_local(Vector3(0.8, 1.1, 0.8)))
PreviewCase.DrawCylinder:
DebugDraw3D.draw_cylinder(%OriginInstances.global_transform.scaled_local(Vector3(0.5, 1, 0.5)), Color.LIGHT_SALMON)
Expand Down Expand Up @@ -347,7 +347,7 @@ func _process(delta):
PreviewCase.DrawPointsPath:
DebugDraw3D.draw_point_path(path, DebugDraw3D.POINT_TYPE_SQUARE, 0.15, Color.SLATE_BLUE)
PreviewCase.DrawPointsPathSpheres:
var _s = DebugDraw3D.new_scope_config().set_thickness(0.015)
var _s = DebugDraw3D.new_scoped_config().set_thickness(0.015)
DebugDraw3D.draw_point_path(path, DebugDraw3D.POINT_TYPE_SPHERE, 0.15, Color.SLATE_BLUE)
PreviewCase.DrawPoints:
DebugDraw3D.draw_points(path, DebugDraw3D.POINT_TYPE_SQUARE, 0.15, Color.SLATE_BLUE)
Expand All @@ -362,10 +362,10 @@ func _process(delta):
var xf: Transform3D = %OriginInstances.global_transform
DebugDraw3D.draw_grid(xf.origin, xf.basis.x.rotated(xf.basis.z.normalized(), deg_to_rad(45)), xf.basis.y.rotated(xf.basis.z.normalized(), deg_to_rad(45)), Vector2i(2,2), Color.YELLOW_GREEN, true)
PreviewCase.DrawFrustum:
var _s = DebugDraw3D.new_scope_config().set_thickness(0.015)
var _s = DebugDraw3D.new_scoped_config().set_thickness(0.015)
DebugDraw3D.draw_camera_frustum($OriginCameraFrustum/Camera3D, Color.CORAL)
PreviewCase.DrawPlane:
var _s = DebugDraw3D.new_scope_config().set_plane_size(1)
var _s = DebugDraw3D.new_scoped_config().set_plane_size(1)
DebugDraw3D.draw_plane(plane, Color.SEA_GREEN * Color(1,1,1,0.6), pxf.origin)


Expand Down
21 changes: 11 additions & 10 deletions examples_dd3d/DebugDrawDemoScene.gd
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ var timer_2 := 0.0
var timer_3 := 0.0
var timer_text := 0.0

# TODO remove after moving to 4.2
var is_4_2_and_higher = Engine.get_version_info()["major"] >= 4 && Engine.get_version_info()["minor"] >= 2


Expand Down Expand Up @@ -75,10 +76,10 @@ func main_update(delta: float) -> void:

DebugDraw3D.scoped_config().set_thickness(debug_thickness).set_center_brightness(debug_center_brightness)
if false: #test
var _s11 = DebugDraw3D.new_scope_config().set_thickness(1)
var _s11 = DebugDraw3D.new_scoped_config().set_thickness(1)
if true:
pass
var _s13 = DebugDraw3D.new_scope_config()
var _s13 = DebugDraw3D.new_scoped_config()
_s13.set_thickness(3)

_update_keys_just_press()
Expand Down Expand Up @@ -146,13 +147,13 @@ func main_update(delta: float) -> void:
# Spheres
DebugDraw3D.draw_sphere_xf($Spheres/SphereTransform.global_transform, Color.CRIMSON)
if true:
var _shd = DebugDraw3D.new_scope_config().set_hd_sphere(true)
var _shd = DebugDraw3D.new_scoped_config().set_hd_sphere(true)
DebugDraw3D.draw_sphere_xf($Spheres/SphereHDTransform.global_transform, Color.ORANGE_RED)

# Delayed spheres
if timer_1 < 0:
DebugDraw3D.draw_sphere($Spheres/SpherePosition.global_position, 2.0, Color.BLUE_VIOLET, 2.0)
var _shd = DebugDraw3D.new_scope_config().set_hd_sphere(true)
var _shd = DebugDraw3D.new_scoped_config().set_hd_sphere(true)
DebugDraw3D.draw_sphere($Spheres/SpherePosition.global_position + Vector3.FORWARD * 4, 2.0, Color.CORNFLOWER_BLUE, 2.0)
timer_1 = 2

Expand Down Expand Up @@ -225,17 +226,17 @@ func main_update(delta: float) -> void:
DebugDraw3D.draw_point_path(points_below2, DebugDraw3D.POINT_TYPE_SQUARE, 0.25, Color.BLUE, Color.TOMATO)
DebugDraw3D.draw_arrow_path(points_below3, Color.GOLD, 0.5)
if true:
var _sl = DebugDraw3D.new_scope_config().set_thickness(0.05)
var _sl = DebugDraw3D.new_scoped_config().set_thickness(0.05)
DebugDraw3D.draw_point_path(points_below4, DebugDraw3D.POINT_TYPE_SPHERE, 0.25, Color.MEDIUM_SEA_GREEN, Color.MEDIUM_VIOLET_RED)

# Misc
if true:
#for i in 1000:
var _a11 = DebugDraw3D.new_scope_config().set_thickness(0)
var _a11 = DebugDraw3D.new_scoped_config().set_thickness(0)
DebugDraw3D.draw_camera_frustum($Camera, Color.DARK_ORANGE)

if true:
var _s123 = DebugDraw3D.new_scope_config().set_center_brightness(0.1)
var _s123 = DebugDraw3D.new_scoped_config().set_center_brightness(0.1)
DebugDraw3D.draw_arrowhead($Misc/Arrow.global_transform, Color.YELLOW_GREEN)

DebugDraw3D.draw_square($Misc/Billboard.global_position, 0.5, Color.GREEN)
Expand All @@ -245,7 +246,7 @@ func main_update(delta: float) -> void:
DebugDraw3D.draw_gizmo($Misc/GizmoTransform.global_transform, DebugDraw3D.empty_color, true)
DebugDraw3D.draw_gizmo($Misc/GizmoOneColor.global_transform, Color.BROWN, true)
if true:
var _s123 = DebugDraw3D.new_scope_config().set_center_brightness(0.5)
var _s123 = DebugDraw3D.new_scoped_config().set_center_brightness(0.5)
DebugDraw3D.draw_gizmo($Misc/GizmoNormal.global_transform.orthonormalized(), DebugDraw3D.empty_color, false)

var tg : Transform3D = $Grids/Grid.global_transform
Expand Down Expand Up @@ -375,12 +376,12 @@ func _draw_rays_casts():
func _more_tests():
# Delayed line render
if true:
var _a12 = DebugDraw3D.new_scope_config().set_thickness(0.035)
var _a12 = DebugDraw3D.new_scoped_config().set_thickness(0.035)
DebugDraw3D.draw_line($LagTest.global_position + Vector3.UP, $LagTest.global_position + Vector3(0,3,sin(Time.get_ticks_msec() / 50.0)), DebugDraw3D.empty_color, 0.5)

# Draw plane
if true:
var _s11 = DebugDraw3D.new_scope_config().set_thickness(0.02).set_plane_size(10)
var _s11 = DebugDraw3D.new_scoped_config().set_thickness(0.02).set_plane_size(10)

var pl_node: Node3D = $PlaneOrigin
var xf: Transform3D = pl_node.global_transform
Expand Down
5 changes: 2 additions & 3 deletions examples_dd3d/DebugDrawDemoScene.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ colors = SubResource("Gradient_tup4c")
[node name="OpenFile" type="Button" parent="MusicVisualizer"]
layout_mode = 2
size_flags_horizontal = 0
text = "OPEN FILE"
text = "Open music"

[node name="RESET" type="AnimationPlayer" parent="MusicVisualizer"]
root_node = NodePath("../OpenFile")
Expand All @@ -608,7 +608,7 @@ libraries = {
[node name="MusicPlayer" type="AudioStreamPlayer" parent="MusicVisualizer"]
unique_name_in_owner = true
autoplay = true
bus = &"MusicVisualizer"
bus = &"MusicAnalyzer"

[node name="VBox" type="VBoxContainer" parent="MusicVisualizer"]
layout_mode = 2
Expand Down Expand Up @@ -820,7 +820,6 @@ text = "Switch to C#"

[connection signal="pressed" from="MusicVisualizer/OpenFile" to="MusicVisualizer" method="_pressed"]
[connection signal="value_changed" from="MusicVisualizer/VBox/HBoxContainer/VolumeSlider" to="MusicVisualizer" method="_on_volume_slider_value_changed"]
[connection signal="value_changed" from="MusicVisualizer/VBox/HBoxContainer/VolumeSlider" to="MusicVisualizer/OpenFile" method="_on_volume_slider_value_changed"]
[connection signal="toggled" from="MusicVisualizer/VBox/HBoxContainer/MuteMaster" to="MusicVisualizer" method="_on_mute_master_toggled"]
[connection signal="value_changed" from="Settings/HBox/PanelContainer/VBox/HBox3/ThicknessSlider" to="Settings" method="_on_thickness_slider_value_changed"]
[connection signal="toggled" from="Settings/HBox/PanelContainer/VBox/UpdateInPhysics" to="Settings" method="_on_update_in_physics_toggled"]
Expand Down
41 changes: 25 additions & 16 deletions examples_dd3d/DebugDrawDemoSceneCS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public partial class DebugDrawDemoSceneCS : Node3D
double timer_3 = 0.0;
double timer_text = 0.0;

// TODO remove after moving to 4.2
bool is_4_2_and_higher = ((int)Engine.GetVersionInfo()["major"]) >= 4 && ((int)Engine.GetVersionInfo()["minor"]) >= 2;

Node3D dHitTest;
CsgBox3D dLagTest;
PanelContainer dPanel;
Expand Down Expand Up @@ -243,8 +246,8 @@ void MainUpdate(double delta)
#pragma warning disable CS0162 // Unreachable code detected
if (false) // #test
{
using var s11 = DebugDraw3D.NewScopeConfig().SetThickness(1);
using var s13 = DebugDraw3D.NewScopeConfig();
using var s11 = DebugDraw3D.NewScopedConfig().SetThickness(1);
using var s13 = DebugDraw3D.NewScopedConfig();
s13.SetThickness(3);
}
#pragma warning restore CS0162 // Unreachable code detected
Expand Down Expand Up @@ -327,14 +330,14 @@ void MainUpdate(double delta)

// Spheres
DebugDraw3D.DrawSphereXf(dSphereTransform.GlobalTransform, Colors.Crimson);
using (var _s1 = DebugDraw3D.NewScopeConfig().SetHdSphere(true))
using (var _s1 = DebugDraw3D.NewScopedConfig().SetHdSphere(true))
DebugDraw3D.DrawSphereXf(dSphereHDTransform.GlobalTransform, Colors.OrangeRed);

// Delayed spheres
if (timer_1 <= 0)
{
DebugDraw3D.DrawSphere(dSpherePosition.GlobalPosition, 2.0f, Colors.BlueViolet, 2.0f);
using (var _s1 = DebugDraw3D.NewScopeConfig().SetHdSphere(true))
using (var _s1 = DebugDraw3D.NewScopedConfig().SetHdSphere(true))
DebugDraw3D.DrawSphere(dSpherePosition.GlobalPosition + Vector3.Forward * 4, 2.0f, Colors.CornflowerBlue, 2.0f);
timer_1 = 2;
}
Expand Down Expand Up @@ -420,16 +423,16 @@ void MainUpdate(double delta)
DebugDraw3D.DrawPoints(points_below.ToArray(), DebugDraw3D.PointType.TypeSquare, 0.2f, Colors.DarkGreen);
DebugDraw3D.DrawPointPath(points_below2.ToArray(), DebugDraw3D.PointType.TypeSquare, 0.25f, Colors.Blue, Colors.Tomato);
DebugDraw3D.DrawArrowPath(points_below3.ToArray(), Colors.Gold, 0.5f);
using (var _sl = DebugDraw3D.NewScopeConfig().SetThickness(0.05f))
using (var _sl = DebugDraw3D.NewScopedConfig().SetThickness(0.05f))
DebugDraw3D.DrawPointPath(points_below4.ToArray(), DebugDraw3D.PointType.TypeSphere, 0.25f, Colors.MediumSeaGreen, Colors.MediumVioletRed);

// Misc
using (var s = DebugDraw3D.NewScopeConfig().SetThickness(0))
using (var s = DebugDraw3D.NewScopedConfig().SetThickness(0))
{
DebugDraw3D.DrawCameraFrustum(dCamera, Colors.DarkOrange);
}

using (var s = DebugDraw3D.NewScopeConfig().SetCenterBrightness(0.1f))
using (var s = DebugDraw3D.NewScopedConfig().SetCenterBrightness(0.1f))
{
DebugDraw3D.DrawArrowhead(dMisc_Arrow.GlobalTransform, Colors.YellowGreen);
}
Expand All @@ -440,7 +443,7 @@ void MainUpdate(double delta)

DebugDraw3D.DrawGizmo(dMisc_GizmoTransform.GlobalTransform, null, true);
DebugDraw3D.DrawGizmo(dMisc_GizmoOneColor.GlobalTransform, Colors.Brown, true);
using (var s = DebugDraw3D.NewScopeConfig().SetCenterBrightness(0.5f))
using (var s = DebugDraw3D.NewScopedConfig().SetCenterBrightness(0.5f))
{
DebugDraw3D.DrawGizmo(dMisc_GizmoNormal.GlobalTransform.Orthonormalized(), null, false);
}
Expand Down Expand Up @@ -619,23 +622,26 @@ void _draw_rays_casts()
void _more_tests()
{
// Delayed line render
using (var s = DebugDraw3D.NewScopeConfig().SetThickness(0.035f))
using (var s = DebugDraw3D.NewScopedConfig().SetThickness(0.035f))
{
DebugDraw3D.DrawLine(dLagTest.GlobalPosition + Vector3.Up, dLagTest.GlobalPosition + new Vector3(0, 3, Mathf.Sin(Time.GetTicksMsec() / 50.0f)), null, 0.5f);
}

// Draw plane
using (var _s11 = DebugDraw3D.NewScopeConfig().SetThickness(0.02f).SetPlaneSize(10))
using (var _s11 = DebugDraw3D.NewScopedConfig().SetThickness(0.02f).SetPlaneSize(10))
{
var pl_node = GetNode<Node3D>("PlaneOrigin");
var xf = pl_node.GlobalTransform;
var normal = xf.Basis.Y.Normalized();
var plane = new Plane(normal, xf.Origin.Dot(normal));

var vp = GetViewport();
if (Engine.IsEditorHint() && EditorInterface.Singleton.GetEditorViewport3D(0) != null)
if (is_4_2_and_higher)
{
vp = EditorInterface.Singleton.GetEditorViewport3D(0);
if (Engine.IsEditorHint() && (Viewport)Engine.GetSingleton("EditorInterface").Call("get_editor_viewport_3d", 0) != null)
{
vp = (Viewport)Engine.GetSingleton("EditorInterface").Call("get_editor_viewport_3d", 0);
}
}

var cam = vp.GetCamera3D();
Expand All @@ -645,11 +651,14 @@ void _more_tests()
Vector3? intersect = plane.IntersectsRay(cam.GlobalPosition, dir);

DebugDraw3D.DrawPlane(plane, Colors.Coral * new Color(1, 1, 1, 0.4f), pl_node.GlobalPosition);
if (intersect.HasValue && intersect.Value.DistanceTo(pl_node.GlobalPosition) < _s11.GetPlaneSize() * 0.5f)
if (is_4_2_and_higher)
{
// Need to test different colors on both sides of the plane
var col = plane.IsPointOver(cam.GlobalPosition) ? Colors.Firebrick : Colors.Aquamarine;
DebugDraw3D.DrawSphere(intersect.Value, 0.3f, col);
if (intersect.HasValue && intersect.Value.DistanceTo(pl_node.GlobalPosition) < _s11.GetPlaneSize() * 0.5f)
{
// Need to test different colors on both sides of the plane
var col = plane.IsPointOver(cam.GlobalPosition) ? Colors.Firebrick : Colors.Aquamarine;
DebugDraw3D.DrawSphere(intersect.Value, 0.3f, col);
}
}
}
}
Expand Down
7 changes: 4 additions & 3 deletions examples_dd3d/VisualizerAudioBus.tres
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
[gd_resource type="AudioBusLayout" load_steps=2 format=3 uid="uid://7sy4h4ibftrk"]

[sub_resource type="AudioEffectSpectrumAnalyzer" id="AudioEffectSpectrumAnalyzer_6qkbc"]
[sub_resource type="AudioEffectSpectrumAnalyzer" id="AudioEffectSpectrumAnalyzer_odciy"]
resource_name = "SpectrumAnalyzer"
fft_size = 3

[resource]
bus/0/mute = true
bus/0/volume_db = -20.0
bus/1/name = &"MusicVisualizer"
bus/1/name = &"MusicAnalyzer"
bus/1/solo = false
bus/1/mute = false
bus/1/bypass_fx = false
bus/1/volume_db = 0.0
bus/1/send = &"Master"
bus/1/effect/0/effect = SubResource("AudioEffectSpectrumAnalyzer_6qkbc")
bus/1/effect/0/effect = SubResource("AudioEffectSpectrumAnalyzer_odciy")
bus/1/effect/0/enabled = true
2 changes: 1 addition & 1 deletion examples_dd3d/addon_icon.gd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
extends Node3D

func _process(delta: float) -> void:
var a = DebugDraw3D.new_scope_config().set_thickness(0.015)
var a = DebugDraw3D.new_scoped_config().set_thickness(0.015)
DebugDraw3D.draw_box_xf($box.global_transform, Color.GREEN)
DebugDraw3D.draw_gizmo($gizmo.global_transform)
DebugDraw3D.draw_grid_xf($gizmo/grid.global_transform, Vector2i(2,2), DebugDraw3D.empty_color, false)
Expand Down
Loading

0 comments on commit 2da328d

Please sign in to comment.