Jump to content

[1.7.10] Fluid opacity


M4thG33k

Recommended Posts

This is probably a dumb question, but how do I make a custom fluid translucent? I have a custom fluid that is functional and is taking the texture I give it, but is not taking into account the opacity of the .png file. What simple thing have I overlooked this time?  :-\ Thanks in advance!

Able to differentiate the difference of a sum and an integral.

Link to comment
Share on other sites

Pardon my ignorance here, since graphics are definitely not my strong suit, but I don't see how extending the class will help with the opacity. I haven't seen a method in the FluidBlockClassic class that I could override that would cause the desired effect and I'm pretty sure I can't write my own method to do it either.

Able to differentiate the difference of a sum and an integral.

Link to comment
Share on other sites

Sorry, I misunderstood your post; What do you mean by 'not taking into account the opacity of the .png file'?

Does it ignore alpha channel?

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Link to comment
Share on other sites

Correct. The fluid is functioning as desired, the only issue is with the graphics. I have my .png with an opacity/alpha of 100/255 (using paint.net to do graphics), but the fluid is rendering as a solid block.

Able to differentiate the difference of a sum and an integral.

Link to comment
Share on other sites

Wait, what is the opacity value? I think there is only RGB + Alpha data on png file.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Link to comment
Share on other sites

Well, I re-opened my .png and it appears the opacity/alpha didn't save correctly... I've found the cause for that and now everything works perfectly! This was embarrassing...

Able to differentiate the difference of a sum and an integral.

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.