Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • How to make a transparent element in model
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
trollworkout

How to make a transparent element in model

By trollworkout, October 18, 2016 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

trollworkout    4

trollworkout

trollworkout    4

  • Diamond Finder
  • trollworkout
  • Members
  • 4
  • 300 posts
Posted October 18, 2016

width=800 height=435http://picpaste.com/pics/Screen_Shot_2016-10-18_at_7.06.01_PM-aiK53Npp.1476832329.png[/img]

 

How to make the water in the vat transparent?

 

Also this json is not working for the SPOUT model

 

{
    "textures": {
        "#0": "blocks/stone"
    },
    "elements": [
        {
            "from": [ 6.5, 7.0, -1.0 ], 
            "to": [ 9.5, 9.0, 3.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 1.0, 1.0, 4.0, 3.0 ] },
                "east": { "texture": "#0", "uv": [ 1.0, 1.0, 5.0, 3.0 ] },
                "south": { "texture": "#0", "uv": [ 1.0, 1.0, 4.0, 3.0 ] },
                "west": { "texture": "#0", "uv": [ 1.0, 1.0, 5.0, 3.0 ] },
                "up": { "texture": "#0", "uv": [ 1.0, 1.0, 4.0, 5.0 ] },
                "down": { "texture": "#0", "uv": [ 1.0, 1.0, 4.0, 5.0 ] }
            }
        }
    ]
}

 

 

 

Yes is like the Witchery Silver Vat. Is intentionally done that way I'm making a mod  that borrows ideas and mechanics from older and abandoned mods that will never see 1.10 or over.  My mod is completely different tho. I'm not cloning older mods.

  • Quote

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

Share this post


Link to post
Share on other sites

Draco18s    2406

Draco18s

Draco18s    2406

  • Reality Controller
  • Draco18s
  • Members
  • 2406
  • 15936 posts
Posted October 18, 2016

You need to override:

 


@Override
@SideOnly(Side.CLIENT)
public BlockRenderLayer getBlockLayer() {
	return BlockRenderLayer.TRANSLUCENT;
}

  • Quote

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Share this post


Link to post
Share on other sites

trollworkout    4

trollworkout

trollworkout    4

  • Diamond Finder
  • trollworkout
  • Members
  • 4
  • 300 posts
Posted October 18, 2016

I made some progress. Now my water renders properly and animates like still water. The spout now renders as well.

 

When I break the block, however, is still showing transparent texture bits.

 

And I can see some weird glitches some transparent sides from elements are showing through the block. I need to make them completely invisible.

  • Quote

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

Share this post


Link to post
Share on other sites

Draco18s    2406

Draco18s

Draco18s    2406

  • Reality Controller
  • Draco18s
  • Members
  • 2406
  • 15936 posts
Posted October 18, 2016

Set your particle texture to a different texture.

 

As for the faces rendering wrong, there might not be a solution.

  • Quote

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Share this post


Link to post
Share on other sites

trollworkout    4

trollworkout

trollworkout    4

  • Diamond Finder
  • trollworkout
  • Members
  • 4
  • 300 posts
Posted October 18, 2016

Thanks for your help guys. Is getting better.

 

I had no particle texture set so I think that was the issue. Let's see if it works now.

 

Also I figured out I don't need to define faces that are hidden. I erased all faces that will never be seen. Seems to reduce the issue with transparent water + tinting a bit.

 

 

Tinting has some weird ass issues sometimes MC can't decide if water is in front or behind of the objects is tinting (or not tinting). Sometimes water would render on top of your blocks or items even the ones held in hand. Haha So random. But overall is wayyy better.

  • Quote

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

Share this post


Link to post
Share on other sites

trollworkout    4

trollworkout

trollworkout    4

  • Diamond Finder
  • trollworkout
  • Members
  • 4
  • 300 posts
Posted October 19, 2016

The block layer translucent works 100% but the problem is I think it confuses the game because I only have one element that is translucent  the rest of the object is solid. I guess there is no way to define only parts of the model as being translucent.

  • Quote

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

Share this post


Link to post
Share on other sites

Draco18s    2406

Draco18s

Draco18s    2406

  • Reality Controller
  • Draco18s
  • Members
  • 2406
  • 15936 posts
Posted October 19, 2016

I guess there is no way to define only parts of the model as being translucent.

 

Not that I am aware of

  • Quote

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Share this post


Link to post
Share on other sites

trollworkout    4

trollworkout

trollworkout    4

  • Diamond Finder
  • trollworkout
  • Members
  • 4
  • 300 posts
Posted October 19, 2016

I think the glitches MAY be caused by depth testing. My bounding box seems to be inside my multipart spout element so it confuses the tinting engine.

 

I'll play around with moving spout higher or other system.

 

Yep CONFIRMED.

 

Seems like the TRANSLUCENT uses block bounding box to calculate depth difference. So if you butt two things against one another MC considers them to be colliding meaning is both IN and OUT of the translucent object at the same time. To fix this you need to put the bits you want outside out of the collision box of the object.

 

Making some bits transparent and some not creates a few weird ass issues like some sides may vanish or appear inside one another. There's no way to properly make a model made out of both translucent and opaque elements.

  • Quote

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

Share this post


Link to post
Share on other sites

Draco18s    2406

Draco18s

Draco18s    2406

  • Reality Controller
  • Draco18s
  • Members
  • 2406
  • 15936 posts
Posted October 19, 2016
There's no way to properly make a model made out of both translucent and opaque elements.

 

Has to do with depth sorting, yeah.  Opaque elements are drawn front to back, translucent back to front.

  • Quote

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Share this post


Link to post
Share on other sites

Choonster    1651

Choonster

Choonster    1651

  • Reality Controller
  • Choonster
  • Forge Modder
  • 1651
  • 5098 posts
Posted October 19, 2016

You can use the

forge:multi-layer

model to combine other models that are rendered in different layers. I explain this in more detail here.

  • Quote

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Share this post


Link to post
Share on other sites

trollworkout    4

trollworkout

trollworkout    4

  • Diamond Finder
  • trollworkout
  • Members
  • 4
  • 300 posts
Posted October 19, 2016

You can use the

forge:multi-layer

model to combine other models that are rendered in different layers. I explain this in more detail here.

 

Thank you. I will deff look into this . Right now it works okayish but with some glitches. Not too bad. After moving the spout 1 cubixel higher is much better

  • Quote

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

Share this post


Link to post
Share on other sites

trollworkout    4

trollworkout

trollworkout    4

  • Diamond Finder
  • trollworkout
  • Members
  • 4
  • 300 posts
Posted October 19, 2016

Choonster the only issue with this is that my blockstate is in fact multipart

 

because my Vat block connects to a nearby furnace it has a spout piece that depends on wether there is a Furnance next to it and in which direction.

 

Can I use  forge:multi-layer AND multipart at the same time?

  • Quote

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

Share this post


Link to post
Share on other sites

trollworkout    4

trollworkout

trollworkout    4

  • Diamond Finder
  • trollworkout
  • Members
  • 4
  • 300 posts
Posted October 19, 2016

There's no way to properly make a model made out of both translucent and opaque elements.

 

Has to do with depth sorting, yeah.  Opaque elements are drawn front to back, translucent back to front.

 

 

To fix the sorting issue you need to make an object with no insides. So in my model I deleted all faces that are never visible. Seems to alleviate some of the issues with making the block completely translucent . You can only see the issues when you get really close to it at eye level and even then is not that big of a deal just looks weird but not broken.

 

Also for the water I originally had one block inside my Vat with water tex on all sides but I erased it and only UP face is there now and is the only one with tintindex . So it works like 90% OK but is not perfect.

  • Quote

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

Share this post


Link to post
Share on other sites

Choonster    1651

Choonster

Choonster    1651

  • Reality Controller
  • Choonster
  • Forge Modder
  • 1651
  • 5098 posts
Posted October 19, 2016

Choonster the only issue with this is that my blockstate is in fact multipart

 

because my Vat block connects to a nearby furnace it has a spout piece that depends on wether there is a Furnance next to it and in which direction.

 

Can I use  forge:multi-layer AND multipart at the same time?

 

forge:multi-layer

requires you to use Forge's blockstates format to specify the models it should combine, but you can use submodels instead of multipart blockstates.

  • Quote

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Share this post


Link to post
Share on other sites

trollworkout    4

trollworkout

trollworkout    4

  • Diamond Finder
  • trollworkout
  • Members
  • 4
  • 300 posts
Posted October 19, 2016

Choonster the only issue with this is that my blockstate is in fact multipart

 

because my Vat block connects to a nearby furnace it has a spout piece that depends on wether there is a Furnance next to it and in which direction.

 

Can I use  forge:multi-layer AND multipart at the same time?

 

forge:multi-layer

requires you to use Forge's blockstates format to specify the models it should combine, but you can use submodels instead of multipart blockstates.

 

I'm pretty newb and I'm not that advanced. I m happy I got to working this way thus far. I will keep it this way as is more than I hoped for to achieve.

 

However, I will come back at one point and try to do it the proper way. Is deff worth looking into it.

  • Quote

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

Share this post


Link to post
Share on other sites

gurujive    34

gurujive

gurujive    34

  • Diamond Finder
  • gurujive
  • Forge Modder
  • 34
  • 375 posts
Posted October 21, 2016

You should be able to use mcrayfishs model creator to select different texture faces on the same element individually.

 

If you just re-texture the top element with water and then add both the image and mcmeta in your textures. The texture will render animated on the specified element, and the parts that aren't will be whatever you texture them as.

 

possible solution to possible z-fighting appearance:

replace the down north east south west parts of that element with the black part of either the black or white window pane png.

 

Works good with item models. The glass panes may render as black though on a block.

  • Quote

Share this post


Link to post
Share on other sites

trollworkout    4

trollworkout

trollworkout    4

  • Diamond Finder
  • trollworkout
  • Members
  • 4
  • 300 posts
Posted October 21, 2016

You should be able to use mcrayfishs model creator to select different texture faces on the same element individually.

 

If you just re-texture the top element with water and then add both the image and mcmeta in your textures. The texture will render animated on the specified element, and the parts that aren't will be whatever you texture them as.

 

possible solution to possible z-fighting appearance:

replace the down north east south west parts of that element with the black part of either the black or white window pane png.

 

Works good with item models. The glass panes may render as black though on a block.

 

in fact that's exactly what i use. and it does not support forge's blockstate no multi layer format.  you can't even set translucency to an element. i do all that in post.

  • Quote

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

Share this post


Link to post
Share on other sites

gurujive    34

gurujive

gurujive    34

  • Diamond Finder
  • gurujive
  • Forge Modder
  • 34
  • 375 posts
Posted October 21, 2016

Cool beans man I just didn't know if you knew you could add your own custom texture for the block.

Like where your lang and model folders are, you can add one says textures inside it make two folders named entity and block inside of it.

 

Then have your json get it.

{

"ambientocclusion": false,

    "textures": {

        "0": "guru:entity/air_orb",

        "1": "blocks/glass_pane_top_black"

    },

 

 

The mcmeta photos should render partially invisible naturally. like nether portal, water, and lava(ok, maybe not lava).

end_gateways being a multilayered imaged block.

 

anyways, keep it real man!

  • Quote

Share this post


Link to post
Share on other sites

trollworkout    4

trollworkout

trollworkout    4

  • Diamond Finder
  • trollworkout
  • Members
  • 4
  • 300 posts
Posted October 22, 2016

I recently switched it up to forge's own blockstate forge_marker 1 instead of multipart because you can do int properties not just boolean properties and seems much more configurable.

 

So ambientocculsion means simply a semi-transparent look?

  • Quote

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

Share this post


Link to post
Share on other sites

Draco18s    2406

Draco18s

Draco18s    2406

  • Reality Controller
  • Draco18s
  • Members
  • 2406
  • 15936 posts
Posted October 22, 2016

So ambientocculsion means simply a semi-transparent look?

 

That is most definitely not what that means.

  • Quote

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Share this post


Link to post
Share on other sites

trollworkout    4

trollworkout

trollworkout    4

  • Diamond Finder
  • trollworkout
  • Members
  • 4
  • 300 posts
Posted October 22, 2016

I read it means something to do with light distribution algorithm

  • Quote

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

Share this post


Link to post
Share on other sites

trollworkout    4

trollworkout

trollworkout    4

  • Diamond Finder
  • trollworkout
  • Members
  • 4
  • 300 posts
Posted December 13, 2016

sorry to resurrect this  but I just wanted to say I have tried this and at this time is not possible to do both multipart (using subblocks) and multi-layer at the same time. Translucent models get deleted by subblocks. When subblocks are not present then it works.

 

 

fMrxG47.gifv

 

 

  • Quote

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • diesieben07
      why is 3 in the middle of 7

      By diesieben07 · Posted 19 minutes ago

      1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • forgotendeath09
      why is 3 in the middle of 7

      By forgotendeath09 · Posted 39 minutes ago

      when you load up forge 1.12.2 the top is displayed as 0/7, once it gets to 3/7 the bar below is in the middle; this is very wrong please consider changing this it drives me crazy every time i launch a modded world.
    • F0RZera
      have an error when trying to connect to LAN server with mods

      By F0RZera · Posted 40 minutes ago

      Ok thanks
    • DeNub
      Cannot create a modded forge server for 1.16.4

      By DeNub · Posted 42 minutes ago

      Its working all well now. Thank you for the support and being patient with me.
    • BobbyLikesCake
      1.16.4 Modded not loading singleplayer worlds

      By BobbyLikesCake · Posted 1 hour ago

      Ok, Thanks I did modify quark slightly but I hope if I delete all of them I can just edit them once again
  • Topics

    • forgotendeath09
      1
      why is 3 in the middle of 7

      By forgotendeath09
      Started 39 minutes ago

    • F0RZera
      10
      have an error when trying to connect to LAN server with mods

      By F0RZera
      Started 6 hours ago

    • DeNub
      27
      Cannot create a modded forge server for 1.16.4

      By DeNub
      Started 12 hours ago

    • BobbyLikesCake
      13
      1.16.4 Modded not loading singleplayer worlds

      By BobbyLikesCake
      Started 4 hours ago

    • Dr.Nickenstein
      3
      Method to get the current durability?

      By Dr.Nickenstein
      Started 12 hours ago

  • Who's Online (See full list)

    • isaac25
    • P0SCH1T0
    • diesieben07
    • TheSharkGamer80
    • Ecpgamez
    • Tetron27
    • UnknownVoice
    • brockmoen
    • Nitrix
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • How to make a transparent element in model
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community