Jump to content

[1.10] Draw lines in GUI like in thaumcraft


Recommended Posts


I would like to know how one would recreate lines such as the one present in the thaumonomicon of Thaumcraft (https://gyazo.com/0b6f5cf9effcbd822d9974251a541480). Theses are not straight lines and I honestly don't know where to start. In addition, I did a bit of research to find if there was a pre-made function that would draw a straight line between 2 points. I found nothing except drawHorizontalLine and drawVerticalLine, which is not really what I'm interested in.


I'm a beginer with OpenGL, so I assume I would have to define 2 vertices and draw a line in between them, but how would I define the thickness of the line ? I tried a few things but noithing would really render. I would be very grateful if someone could provide an example.




Link to comment
Share on other sites

They're either bezier curves or splines.


You'd likely have to write the math for them yourself

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.


Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.


DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.