-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: Provide an option to always draw debug geometry on top of everything else #7
Comments
Do you mean to draw all the geometry on top of everything else? Or only certain If the first option, then it's not difficult to add (just change the material parameter), but if the second one, then I can use the idea from #3, like: DebugDraw.set_depth_test(false)
DebugDraw.draw_box(...) # draw box on top of everything else
DebugDraw.set_depth_test(true)
DebugDraw.draw_sphere(...) # normal draw And somewhere on DebugDraw.default_depth_test = true or expose it in And I suppose this is necessary for Godot 3 and 4? |
Hey there, Regarding your proposed first solution, I think I still might be missing something. Can you assign a material to a debug draw call? Or do you mean I should set no_dept_test on the object I want to draw on, because if I do that, it does not seem to work. Cheers |
This would be really helpful to be able to do in godot 4. Sometimes my points get hidden behind my objects and it'd be helpful to have them always appear on top. |
I would also like this feature. |
This would be great! |
Since my gizmo is drawn with separate lines and arrows, disabling the depth test leads to incorrect sorting of objects. godot.windows.editor.dev.x86_64.mono_yUdellm4Ro.1.1.mp4But using wireframes it is not noticeable :) godot.windows.editor.dev.x86_64.mono_nBVttz9eZK.mp4 |
implemented in da6f672 |
Feature description
Hey there!
First of all, thanks for the great plugin. Having convenient debug drawing capabilities in godot with your plugin really makes life easier.
I have a question/feature request: Is it possible to draw the debug geometry always on top of everything else. So e.g. if I would draw a line visuallizing a raycast, would it be possible to still see the line once it enters a mesh? I would also find this convenient e.g. when I am calculating some positions in a mesh and want to make sure I actually calculated the position correctly by displaying them with debug draws. Hope this makes sense.
Maybe this is already possible, but if not it would be great to have this option as well.
Cheers,
Florentin
Solution approach
Provide an option to always draw debug geometry on top of everything else.
The text was updated successfully, but these errors were encountered: