Jump to content

Alpha/Faded texture in blocks


KritX01

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

 

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