Debug Draw 3D (4.x)

An asset by DmitriySalnikov
The page banner background of a mountain and forest
Debug Draw 3D (4.x) thumbnail image
Debug Draw 3D (4.x) thumbnail image
Debug Draw 3D (4.x) hero image

Quick Information

0 ratings
Debug Draw 3D (4.x) icon image
DmitriySalnikov
Debug Draw 3D (4.x)

This is an add-on for debug drawing in 3D and for some 2D overlays, which is written in C++ and can be used with GDScript.= Features =3D Primitives:* Arrow* Billboard opaque square* Box* Camera Frustum* Cylinder* Gizmo* Grid* Line* Line Path* Line with Arrow* Points* Position 3D (3 crossing axes)* SphereOverlay:* Text (with grouping and coloring)* FPS Graph* Custom GraphsPrecompiled for:* Windows* Linux* macOS* Android= Examples and documentation =The sample code can be viewed by clicking on the "View code" button, or optionally, during installation, you can unpack the "examples_dd3d" folder and examine its contents.A list of all functions is available in the documentation inside the editor.Restart the editor after installation!

Supported Engine Version
4.0
Version String
1.0.0
License Version
MIT
Support Level
community
Modified Date
8 months ago
Git URL
Issue URL

README icon

Debug drawing utility for Godot

This is an add-on for debug drawing in 3D and for some 2D overlays, which is written in C++ and can be used with GDScript.

Based on my previous addon, which was developed only for C# https://github.com/DmitriySalnikov/godot_debug_draw_cs, and which was inspired by Zylann's GDScript addon https://github.com/Zylann/godot_debug_draw

Godot 3 version

Support me

Your support adds motivation to develop my public projects.

README ko-fi

README paypal

qiwi

Features

3D Primitives:

  • Arrow
  • Billboard opaque square
  • Box
  • Camera Frustum
  • Cylinder
  • Gizmo
  • Grid
  • Line
  • Line Path
  • Line with Arrow
  • Points
  • Position 3D (3 crossing axes)
  • Sphere

Overlay:

  • Text (with grouping and coloring)
  • FPS Graph
  • Custom Graphs

Precompiled for:

  • Windows
  • Linux
  • macOS
  • Android

Download

To download, use the Godot Asset Library or download the archive by clicking the button at the top of the main repository page: Code -> Download ZIP, then unzip it to your project folder. Or use one of the stable versions from the GitHub Releases page (just download one of the "Source Codes" in assets).

Usage

  1. Copy addons/debug_draw_3d to your addons folder, create it if the folder doesn't exist
  2. Restart the editor

    README screenshot_1

    API

    A list of all functions is available in the documentation inside the editor. README screenshot_4

    Besides DebugDraw, you can also use Dbg3.

        DebugDraw.draw_box_xf(Transform3D(), Color.GREEN)
        Dbg3.draw_box_xf(Transform3D(), Color.GREEN)
    

    But unfortunately at the moment GDExtension does not support adding documentation.

    Known issues and limitations

    Enabling occlusion culing can lower fps instead of increasing it. At the moment I do not know how to speed up the calculation of the visibility of objects.

    The text in the keys and values of a text group cannot contain multi-line strings.

    The entire text overlay can only be placed in one corner, unlike DataGraphs.

    Frustum of Camera3D does not take into account the window size from ProjectSettings.

    The C# binding is not ready yet.

    More screenshots

    DebugDrawDemoScene.tscn in editor README screenshot_2

    DebugDrawDemoScene.tscn in play mode README screenshot_3

This is an add-on for debug drawing in 3D and for some 2D overlays, which is written in C++ and can be used with GDScript.

= Features =
3D Primitives:
* Arrow
* Billboard opaque square
* Box
* Camera Frustum
* Cylinder
* Gizmo
* Grid
* Line
* Line Path
* Line with Arrow
* Points
* Position 3D (3 crossing axes)
* Sphere

Overlay:
* Text (with grouping and coloring)
* FPS Graph
* Custom Graphs

Precompiled for:
* Windows
* Linux
* macOS
* Android

= Examples and documentation =
The sample code can be viewed by clicking on the "View code" button, or optionally, during installation, you can unpack the "examples_dd3d" folder and examine its contents.

A list of all functions is available in the documentation inside the editor.

Restart the editor after installation!

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Debug Draw 3D (4.x) icon image
DmitriySalnikov
Debug Draw 3D (4.x)

This is an add-on for debug drawing in 3D and for some 2D overlays, which is written in C++ and can be used with GDScript.= Features =3D Primitives:* Arrow* Billboard opaque square* Box* Camera Frustum* Cylinder* Gizmo* Grid* Line* Line Path* Line with Arrow* Points* Position 3D (3 crossing axes)* SphereOverlay:* Text (with grouping and coloring)* FPS Graph* Custom GraphsPrecompiled for:* Windows* Linux* macOS* Android= Examples and documentation =The sample code can be viewed by clicking on the "View code" button, or optionally, during installation, you can unpack the "examples_dd3d" folder and examine its contents.A list of all functions is available in the documentation inside the editor.Restart the editor after installation!

Supported Engine Version
4.0
Version String
1.0.0
License Version
MIT
Support Level
community
Modified Date
8 months ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers