Jump to content

[1.10.2] [unsolved] How do i make a static line between 2 points?


YesImAHuman
 Share

Recommended Posts

Some conversion needs to be done to update this to 1.10 (Tessellator got renamed and some of the methods refactored, but I was able to update those in another place fairly easily; this code never got ported), but here's how I drew a line between two blocks

 

https://github.com/Draco18s/HarderStuff/blob/master/src/main/java/com/draco18s/hazards/client/HazardsClientEventHandler.java#L371

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

4 hours ago, Draco18s said:

Some conversion needs to be done to update this to 1.10 (Tessellator got renamed and some of the methods refactored, but I was able to update those in another place fairly easily; this code never got ported), but here's how I drew a line between two blocks

 

https://github.com/Draco18s/HarderStuff/blob/master/src/main/java/com/draco18s/hazards/client/HazardsClientEventHandler.java#L371

i tried using it and fixing the errors, but ive never tried anything with OpenGL, so it created some errors

This is what the code it now: https://pastebin.com/ayFFV06m
and it gives an error at line 10: tess.begin(7, new VertexFormat());
and i think it would probably make some more errors with the code using the Tessellator

Link to comment
Share on other sites

I believe that got replaces with something like .startDrawingQuads(), though I can't remember what I was even working on that I had to update some tessellator code. 

Find some other examples (eg vanilla usage) and see what they do.

Edited by Draco18s

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.

Guest
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.

 Share



×
×
  • Create New...

Important Information

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