Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/06/19 in all areas

  1. Hi. In my mod, I am rendering custom first-person arms when certain items are held. I managed to do this and it works and looks quite well. However, there is one major issue - the arms and the held item can clip through blocks, mobs, etc.. So I looked at how Minecraft renders its arms, and figured out, that it "disables depth" ( using GlStateManager.disableDepth() ) so the arms are rendered on top of everything else + it also enables culling ( GlStateManager.enableCull() ). I call these before rendering the arms (and also their "opposite functions" after rendering the arms), and it works - the arms are rendered as the vanilla ones. However, it doesn't work with complex items. It seems that this disables the "depth check" even between vertices that are part of the item, so the faces that are hidden and face the camera are rendered on top. My code: https://pastebin.com/qR8kJJDF EDIT: The problem almost surely is not with my models, as I tested it with vanilla items, and the same glitch occurred, though since Minecraft items are flat it is not this much visible.
    1 point
  2. Soo i've been having this problem ever since I factory restarted my computer, every time I launch the game with forge I get this pop op . I can launch stuff from technicLaunch but not twitch. Idk if this helps but I had it instaled before I reset my computer. Sorry for bad grammer i'm danish.
    1 point
  3. hey Cambience, was wondering if you ever found a fix for your crashing problem?
    1 point
  4. what is posX, posY, posZ? I'm not very good at "this" but I think you need "this".
    0 points
×
×
  • Create New...

Important Information

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