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

idea: let draw_shape can use players sight local coordinate, so that it can be used to create HUD easilier. #1854

Draft
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

17183248569
Copy link
Contributor

@17183248569 17183248569 commented Jan 5, 2024

https://discord.com/channels/882822986795716608/894946828980723762/1192811784445374525

this is to add a optional flag,
with this, you can draw some thing as usual, in [-1,1]^3, and add this optional flag, it will be drawn before users sight.
which is helpful to create some HUD like things. for example, to display some info on users screen.

screenhud.2.mp4

and i think that it can fix #1927 too.....

@17183248569 17183248569 changed the title idea: let draw_shape can use clip coordinate, so that it can be used to create HUD easilier. idea: let draw_shape can use players sight local coordinate, so that it can be used to create HUD easilier. Feb 28, 2024
@17183248569 17183248569 changed the title idea: let draw_shape can use players sight local coordinate, so that it can be used to create HUD easilier. idea: let draw_shape can use players sight local coordinate, so that it can be used to create HUD easilier. and fixed #1927 Jul 9, 2024
@17183248569 17183248569 changed the title idea: let draw_shape can use players sight local coordinate, so that it can be used to create HUD easilier. and fixed #1927 idea: let draw_shape can use players sight local coordinate, so that it can be used to create HUD easilier. Jul 12, 2024
@17183248569 17183248569 marked this pull request as draft September 13, 2024 23:12
@@ -53,10 +55,13 @@

public class ShapesRenderer
{
private static final Matrix4f ORTHOMAT = new Matrix4f().m22(-1);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if this line of code is written correctly

@gnembon
Copy link
Owner

gnembon commented Nov 13, 2024

this looks very useful. Is that still WIP?

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

Successfully merging this pull request may close these issues.

v1.4.141 ai_tracker labels not showing up
2 participants