I cannot make the title a summery of my question, sorry.
The story is I want to draw the 3d debug line. Godot doesn't support it like Unity does. So I project the 3d world point to 2d Control
screen. But as you can see in this picture:
My debug line draw over a box; since it is debug line, I should just ignore it. But when I work with it for a while, I start become headache. So I want my line draw under the boxes.
Are there any strategy to do this? I don't mind shader script or such, but I don't know how to do it.
How do I draw line under object?
Hi,
You can try using ImmediateGeometry
node for that.
Then you can draw debug shapes in 3D space, so they should be properly displayed when hidden behind some objects.
Ah, yes
I complete forgot about Mesh.PRIMITIVE_LINE*
as I usually only do triangles when I do pseudo mesh generator.
2 years later
Megalomaniak added the Godot Help tag .