Jump to content

Recommended Posts

Posted

In my power lines mod, I want arced lines representing wire to be drawn connecting the different power lines together, like Immersive Engineering's connectors and their wire. I'm looking at the GL11 API but I don't know what to use or how to use it, or if that's even the right thing to be looking at.

I like trains.

Posted

Rendering of the fishing line and bobber is done in

RenderFish

.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

Okay I think I see what I need in the end of the doRender(EntityFishHook, double, double, double, float, float) method, that stuff with the tessellator. I don't quite understand what's going on but I think I can figure it out.

I like trains.

Posted

Okay so I sort of understand how it all works and I've come up with this: https://gist.github.com/UntouchedWagons/377d2b6a26fb143b9031 however I never see a line 4 blocks above my tile entity. Initially I didn't understand what the x, y and z arguments of renderTileEntityAt were for so I used those and the line did render and move with my player as I moved around, but since changing it to te.*Coord, I get nothing. What obvious thing am I missing?

I like trains.

Posted

I don't think I understand what you're saying: https://gist.github.com/UntouchedWagons/377d2b6a26fb143b9031 Am I supposed to subtract the xCoord of the TE from the xCoord of the player? That seems strange, but this is minecraft after all.

 

[Edit] In RenderFish's doRender method near the end, some math is done with the player's coordinates, but all the math loses me kinda quick

 

[Edit #2] I think I understand what you're saying.

I like trains.

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

Announcements



×
×
  • Create New...

Important Information

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