Skip to content
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]: Add support for 3D Debug Text #53

Open
Stefotono opened this issue Aug 27, 2024 · 1 comment
Open

[Feature Request]: Add support for 3D Debug Text #53

Stefotono opened this issue Aug 27, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Stefotono
Copy link

Feature description

I find myself in a lot of scenarios where text over an object or spot would be helpful for a debug view.
for example I was creating a verlet integration system and rendering it with DebugDraw3D but kept forgetting
the indexes for points and so I needed to instantiate Label3Ds and position them.

But I think having the ability with just one line to do that would be nice enchantment
Just having a few new functions available along the lines of:

DebugDraw3D.draw_text_xf(transform, message, colour)
this one would be a plane which takes the transform

DebugDraw3D.draw_text(position, message, colour)
this one would be a billboard which face the camer located at the specified position

and for fancy people you could add like is_centred or bbcode enabled

that's all I`ve got to say.
Have a nice day.

Implementation Ideas

Under the hood it could just be instantiating Label3Ds and moving them about.
To optimize it a bit they could be pooled.

@Stefotono Stefotono added the enhancement New feature or request label Aug 27, 2024
@DmitriySalnikov
Copy link
Owner

Yep, 3D labels were in my plans.

Under the hood it could just be instantiating Label3Ds and moving them about.

Yes, that would be the easiest solution. And as far as I remember, it is impossible to draw text without nodes (a 2d text mesh is generated in the node itself).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants