hyper1423 Posted July 13, 2019 Posted July 13, 2019 (edited) I made a GUI of a fluid handling TileEntity, but in the tank GUI, it is a bit strange. (Don't mind the texts, I will remove that) It is not animated, nor scaled. It seems GUI does not read .mcmeta files, then how do I make fluids render correctly? p.s. What is TextureAtlasSprite? When do I use it? Git repository: here Thanks in advance. Edited July 13, 2019 by hyper1423 Quote
hyper1423 Posted July 13, 2019 Author Posted July 13, 2019 I understand the concept of TextureMap and TextureAtlasSprite, but what is Tessellator and BufferBuilder? Quote
hyper1423 Posted July 13, 2019 Author Posted July 13, 2019 (edited) I did things what you said, but fluids in the tanks are invisible. (I updated GitHub repo) Edited July 13, 2019 by hyper1423 Quote
hyper1423 Posted July 14, 2019 Author Posted July 14, 2019 9 hours ago, diesieben07 said: I don't see a way to get fluid into those tanks. What should I do then? Quote
hyper1423 Posted July 14, 2019 Author Posted July 14, 2019 It still does not draw fluids except lava. Lava in the gui is like this: Spoiler and when I fill a tank, others fill too. Quote
hyper1423 Posted July 15, 2019 Author Posted July 15, 2019 (edited) 19 hours ago, diesieben07 said: What I mean is I don't know how to debug this because I don't know how to make your GUI even display fluids (aka. how do I get fluids into the machine). Right-click the machine with a bucket. Edited July 15, 2019 by hyper1423 Quote
hyper1423 Posted July 15, 2019 Author Posted July 15, 2019 (edited) I fixed it. I changed b.pos(x, y + height, z).tex(u, maxV).endVertex(); b.pos(x + width, y + height, z).tex(u, maxV).endVertex(); b.pos(x + width, y, z).tex(u, maxV).endVertex(); b.pos(x, y, z).tex(u, maxV).endVertex(); to b.pos(x, y + height, z).tex(u, maxV).endVertex(); b.pos(x + width, y + height, z).tex(maxU, maxV).endVertex(); b.pos(x + width, y, z).tex(maxU, v).endVertex(); b.pos(x, y, z).tex(u, v).endVertex(); . But I have another problem: (I can't find button to insert spoiler in editing mode, sorry) Another textures are also drawn. Edited July 15, 2019 by hyper1423 Quote
hyper1423 Posted July 18, 2019 Author Posted July 18, 2019 Those textures are only drawn in the excess area. Quote
Recommended Posts
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.