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

[Suggestion] Add line 3d and floating text 3d widgets #101

Open
hohserg1 opened this issue Jan 14, 2021 · 5 comments
Open

[Suggestion] Add line 3d and floating text 3d widgets #101

hohserg1 opened this issue Jan 14, 2021 · 5 comments

Comments

@hohserg1
Copy link
Contributor

Such widgets exists In OpengGlasses1. Can you add it to openGlasses2 also?
https://minecraft.bymarcin.com/OpenGlasses/doku.php?id=lineworld
https://minecraft.bymarcin.com/OpenGlasses/doku.php?id=floatingtextworld

@ben-mkiv
Copy link
Collaborator

Floating Text was replaced by https://github.com/Starchasers/OCGlasses/wiki/Widget_Text3D
and line got dropped in favor of https://github.com/Starchasers/OCGlasses/wiki/Widget_Custom3D (which can be used to archive a line by writing a lua wrapper which adds the necessary vertices)

@hohserg1
Copy link
Contributor Author

Ok, but Custom3D#setGLMODE support TRIANGLES and TRIANGLE_STRIP only, how to draw regular lines?

@ben-mkiv
Copy link
Collaborator

by creating a cube from point a to point b
for a 3D line segment you would draw 6 faces where each face has 2 triangles, best bet is to wrap it in a lua function, feel free to share it and i'll add it to the wiki

@hohserg1
Copy link
Contributor Author

Uh, it so unoptimized. Large amount of triangles may reduce fps and too many of triangles may give extreme lags. I tested it

@ben-mkiv
Copy link
Collaborator

@hohserg1 sorry for necro post, but is this feature request obsolete with your addition of the Wavefront OBJ line support?

#102

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

No branches or pull requests

2 participants