Skip to content

[Question]: Unable to draw lines in 2D #14

@dogboydog

Description

@dogboydog

Godot version

v3.5.2.stable.mono.official [170ba337a]

DebugDraw3D version

1.0.2

On which operating systems the error occurs

Windows

Using which renderers the error occurs

GLES3

Issue description

Hello, I'm quite interested to try this plugin for my project as it seems really cool.

In earlier messages you asked to confirm the plugin is installed by searching the help for DebugDraw I believe. In my project and my test repro for this issue, I can't see that in the help.

image

image

I'm also kind of unclear about how to use this for 2D, is it possible? The arguments are Vector3, but not sure if these will display in a 2D view. I would ideally like to draw lines with with global position /world space position of 2D nodes and have them display over everything.

Steps to reproduce

Open this zip project and run the main scene

The text is showing but the lines are not drawing

		public override void _Process(float delta)
		{
        DebugDrawCS.Freeze3dRender = true;
        DebugDrawCS.ForceUseCameraFromScene = true;
        DebugDrawCS.DebugEnabled = true;
        DebugDrawCS.VisibleInstanceBounds = true;
        DebugDrawCS.DrawLine(new Vector3(0, 0, 0), new Vector3(200,200,0), Colors.Red, 1f);
        DebugDrawCS.DrawLine(new Vector3(0, 0, 3), new Vector3(1,1,3), Colors.Green, 1f);
        DebugDrawCS.DrawLine(new Vector3(0, 0, 8), new Vector3(8,8,8), Colors.Blue, 1f);
        DebugDrawCS.SetText("Test", "4");
        DebugDrawCS.SetText("Test2", "444");
        DebugDrawCS.GeometryRenderLayers = 6;
		}

Minimal reproduction project

DebugDrawTest.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions