Posted July 9, 201411 yr Hello, I would like to know if anyone knows how to do the alpha/faded texture in blocks like the stained glass from tinkers contruct or these jars from thaumcraft in the img bellow. I guess it's some kind of custom render... http://i.imgur.com/niYwZ.png Thanks a lot. If you like minecraft and you LP's and random stuff make sure to subscribe to my channel https://www.youtube.com/KritX01
July 10, 201411 yr Hi If you know OpenGL already, try ISimpleBlockRenderingHandler, or alternatively a Pass 1 render. Some more information here http://greyminecraftcoder.blogspot.com.au/p/list-of-topics.html especially http://greyminecraftcoder.blogspot.com.au/2013/07/block-rendering.html and http://greyminecraftcoder.blogspot.com/2013/07/rendering-transparent-blocks.html -TGG
July 10, 201411 yr Author But how can i do it with a tessellator? BTW thanks, thats good for normal blocks! If you like minecraft and you LP's and random stuff make sure to subscribe to my channel https://www.youtube.com/KritX01
July 11, 201411 yr Hi Some info on the tessellator here http://greyminecraftcoder.blogspot.com.au/2013/08/the-tessellator.html Alpha blending in minecraft is usually done using GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); Your image will need to have alpha channels, or optionally you can set its alpha using eg GL11.glColor4f(red, green, blue, alpha); -TGG
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.