Melonslise Posted March 9, 2019 Posted March 9, 2019 (edited) I have an overlay model for my custom door which flickers like so: https://streamable.com/h99ck Here's how one of the (4) models looks like: Spoiler { "ambientocclusion": false, "textures": { "particle": "#bottom" }, "elements": [ { "from": [0, 0, 0], "to": [ 3, 3, 16], "shade": false, "faces": { "west": { "texture": "#base", "tintindex": 0, "cullface": "west" }, "east": { "texture": "#base", "tintindex": 0} } }, { "from": [0, 3, 0], "to": [ 3, 16, 3], "shade": false, "faces": { "west": { "texture": "#base", "tintindex": 0, "cullface": "west" }, "east": { "texture": "#base", "tintindex": 0} } }, { "from": [0, 3, 13], "to": [ 3, 16, 16], "shade": false, "faces": { "west": { "texture": "#base", "tintindex": 0, "cullface": "west" }, "east": { "texture": "#base", "tintindex": 0} } }, { "from": [ 0, 0, 0 ], "to": [ 3, 16, 16 ], "faces": { "down": { "uv": [ 13, 0, 16, 16 ], "texture": "#bottom", "cullface": "down" }, "north": { "uv": [ 3, 0, 0, 16 ], "texture": "#bottom", "cullface": "north" }, "south": { "uv": [ 0, 0, 3, 16 ], "texture": "#bottom", "cullface": "south" }, "west": { "uv": [ 0, 0, 16, 16 ], "texture": "#bottom", "cullface": "west" }, "east": { "uv": [ 16, 0, 0, 16 ], "texture": "#bottom" } } } ] } and here is the blockstate: Spoiler { "forge_marker": 1, "defaults": { "textures": { "base": "hexcraft:blocks/glow" } }, "variants": { "facing=east,half=lower,hinge=left,open=false,reinforced=false": { "model": "hexcraft:door_overlay_bottom", "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=south,half=lower,hinge=left,open=false,reinforced=false": { "model": "hexcraft:door_overlay_bottom", "y": 90, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=west,half=lower,hinge=left,open=false,reinforced=false": { "model": "hexcraft:door_overlay_bottom", "y": 180, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=north,half=lower,hinge=left,open=false,reinforced=false": { "model": "hexcraft:door_overlay_bottom", "y": 270, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=east,half=lower,hinge=right,open=false,reinforced=false": { "model": "hexcraft:door_overlay_bottom_flipped", "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=south,half=lower,hinge=right,open=false,reinforced=false": { "model": "hexcraft:door_overlay_bottom_flipped", "y": 90, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=west,half=lower,hinge=right,open=false,reinforced=false": { "model": "hexcraft:door_overlay_bottom_flipped", "y": 180, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=north,half=lower,hinge=right,open=false,reinforced=false": { "model": "hexcraft:door_overlay_bottom_flipped", "y": 270, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=east,half=lower,hinge=left,open=true,reinforced=false": { "model": "hexcraft:door_overlay_bottom_flipped", "y": 90, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=south,half=lower,hinge=left,open=true,reinforced=false": { "model": "hexcraft:door_overlay_bottom_flipped", "y": 180, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=west,half=lower,hinge=left,open=true,reinforced=false": { "model": "hexcraft:door_overlay_bottom_flipped", "y": 270, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=north,half=lower,hinge=left,open=true,reinforced=false": { "model": "hexcraft:door_overlay_bottom_flipped", "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=east,half=lower,hinge=right,open=true,reinforced=false": { "model": "hexcraft:door_overlay_bottom", "y": 270, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=south,half=lower,hinge=right,open=true,reinforced=false": { "model": "hexcraft:door_overlay_bottom", "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=west,half=lower,hinge=right,open=true,reinforced=false": { "model": "hexcraft:door_overlay_bottom", "y": 90, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=north,half=lower,hinge=right,open=true,reinforced=false": { "model": "hexcraft:door_overlay_bottom", "y": 180, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=east,half=upper,hinge=left,open=false,reinforced=false": { "model": "hexcraft:door_overlay_top", "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=south,half=upper,hinge=left,open=false,reinforced=false": { "model": "hexcraft:door_overlay_top", "y": 90, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=west,half=upper,hinge=left,open=false,reinforced=false": { "model": "hexcraft:door_overlay_top", "y": 180, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=north,half=upper,hinge=left,open=false,reinforced=false": { "model": "hexcraft:door_overlay_top", "y": 270, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=east,half=upper,hinge=right,open=false,reinforced=false": { "model": "hexcraft:door_overlay_top_flipped", "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=south,half=upper,hinge=right,open=false,reinforced=false": { "model": "hexcraft:door_overlay_top_flipped", "y": 90, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=west,half=upper,hinge=right,open=false,reinforced=false": { "model": "hexcraft:door_overlay_top_flipped", "y": 180, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=north,half=upper,hinge=right,open=false,reinforced=false": { "model": "hexcraft:door_overlay_top_flipped", "y": 270, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=east,half=upper,hinge=left,open=true,reinforced=false": { "model": "hexcraft:door_overlay_top_flipped", "y": 90, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=south,half=upper,hinge=left,open=true,reinforced=false": { "model": "hexcraft:door_overlay_top_flipped", "y": 180, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=west,half=upper,hinge=left,open=true,reinforced=false": { "model": "hexcraft:door_overlay_top_flipped", "y": 270, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=north,half=upper,hinge=left,open=true,reinforced=false": { "model": "hexcraft:door_overlay_top_flipped", "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=east,half=upper,hinge=right,open=true,reinforced=false": { "model": "hexcraft:door_overlay_top", "y": 270, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=south,half=upper,hinge=right,open=true,reinforced=false": { "model": "hexcraft:door_overlay_top", "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "top": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=west,half=upper,hinge=right,open=true,reinforced=false": { "model": "hexcraft:door_overlay_top", "y": 90, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=north,half=upper,hinge=right,open=true,reinforced=false": { "model": "hexcraft:door_overlay_top", "y": 180, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom" } }, "facing=east,half=lower,hinge=left,open=false,reinforced=true": { "model": "hexcraft:door_overlay_bottom", "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=south,half=lower,hinge=left,open=false,reinforced=true": { "model": "hexcraft:door_overlay_bottom", "y": 90, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=west,half=lower,hinge=left,open=false,reinforced=true": { "model": "hexcraft:door_overlay_bottom", "y": 180, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=north,half=lower,hinge=left,open=false,reinforced=true": { "model": "hexcraft:door_overlay_bottom", "y": 270, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=east,half=lower,hinge=right,open=false,reinforced=true": { "model": "hexcraft:door_overlay_bottom_flipped", "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=south,half=lower,hinge=right,open=false,reinforced=true": { "model": "hexcraft:door_overlay_bottom_flipped", "y": 90, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=west,half=lower,hinge=right,open=false,reinforced=true": { "model": "hexcraft:door_overlay_bottom_flipped", "y": 180, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=north,half=lower,hinge=right,open=false,reinforced=true": { "model": "hexcraft:door_overlay_bottom_flipped", "y": 270, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=east,half=lower,hinge=left,open=true,reinforced=true": { "model": "hexcraft:door_overlay_bottom_flipped", "y": 90, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=south,half=lower,hinge=left,open=true,reinforced=true": { "model": "hexcraft:door_overlay_bottom_flipped", "y": 180, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=west,half=lower,hinge=left,open=true,reinforced=true": { "model": "hexcraft:door_overlay_bottom_flipped", "y": 270, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=north,half=lower,hinge=left,open=true,reinforced=true": { "model": "hexcraft:door_overlay_bottom_flipped", "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=east,half=lower,hinge=right,open=true,reinforced=true": { "model": "hexcraft:door_overlay_bottom", "y": 270, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=south,half=lower,hinge=right,open=true,reinforced=true": { "model": "hexcraft:door_overlay_bottom", "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=west,half=lower,hinge=right,open=true,reinforced=true": { "model": "hexcraft:door_overlay_bottom", "y": 90, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=north,half=lower,hinge=right,open=true,reinforced=true": { "model": "hexcraft:door_overlay_bottom", "y": 180, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=east,half=upper,hinge=left,open=false,reinforced=true": { "model": "hexcraft:door_overlay_top", "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=south,half=upper,hinge=left,open=false,reinforced=true": { "model": "hexcraft:door_overlay_top", "y": 90, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=west,half=upper,hinge=left,open=false,reinforced=true": { "model": "hexcraft:door_overlay_top", "y": 180, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=north,half=upper,hinge=left,open=false,reinforced=true": { "model": "hexcraft:door_overlay_top", "y": 270, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=east,half=upper,hinge=right,open=false,reinforced=true": { "model": "hexcraft:door_overlay_top_flipped", "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=south,half=upper,hinge=right,open=false,reinforced=true": { "model": "hexcraft:door_overlay_top_flipped", "y": 90, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=west,half=upper,hinge=right,open=false,reinforced=true": { "model": "hexcraft:door_overlay_top_flipped", "y": 180, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=north,half=upper,hinge=right,open=false,reinforced=true": { "model": "hexcraft:door_overlay_top_flipped", "y": 270, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=east,half=upper,hinge=left,open=true,reinforced=true": { "model": "hexcraft:door_overlay_top_flipped", "y": 90, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=south,half=upper,hinge=left,open=true,reinforced=true": { "model": "hexcraft:door_overlay_top_flipped", "y": 180, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=west,half=upper,hinge=left,open=true,reinforced=true": { "model": "hexcraft:door_overlay_top_flipped", "y": 270, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=north,half=upper,hinge=left,open=true,reinforced=true": { "model": "hexcraft:door_overlay_top_flipped", "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=east,half=upper,hinge=right,open=true,reinforced=true": { "model": "hexcraft:door_overlay_top", "y": 270, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=south,half=upper,hinge=right,open=true,reinforced=true": { "model": "hexcraft:door_overlay_top", "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "top": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=west,half=upper,hinge=right,open=true,reinforced=true": { "model": "hexcraft:door_overlay_top", "y": 90, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "facing=north,half=upper,hinge=right,open=true,reinforced=true": { "model": "hexcraft:door_overlay_top", "y": 180, "textures": { "top": "hexcraft:blocks/hexorium_door/hexorium_door_top_reinforced", "bottom": "hexcraft:blocks/hexorium_door/hexorium_door_bottom_reinforced" } }, "inventory": [{}] } } As you can see, I have defined the flickering parts before the outer layer meaning they should always appear on the bottom, but for some reason they keep flickering. I have a similar overlay model for a full cube and it works just fine. Thanks Relevant classes: https://pastebin.com/NVUhE7f9 https://pastebin.com/Dk3s3BzQ Edited March 10, 2019 by Melonslise Quote
Draco18s Posted March 9, 2019 Posted March 9, 2019 That's not z-fighting. That's a transparency sorting problem, where the game isn't sure which one needs to be rendered first in order to multiply the alpha values correctly. Z-fighting is when the two planes "blend" into each other in very strange ways and shimmer even with subtle camera movement (or none at all) caused by the limited precision of floating point numbers. 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.
Melonslise Posted March 10, 2019 Author Posted March 10, 2019 10 hours ago, Draco18s said: That's not z-fighting. That's a transparency sorting problem, where the game isn't sure which one needs to be rendered first in order to multiply the alpha values correctly. Z-fighting is when the two planes "blend" into each other in very strange ways and shimmer even with subtle camera movement (or none at all) caused by the limited precision of floating point numbers. Fair enough. How do I fix this sorting issue though? Quote
Cadiboo Posted March 10, 2019 Posted March 10, 2019 You can't AFAIK. I'm pretty sure this is being fixed in 1.14. If you actually need translucent models, you're out of luck, but if you don't you should be able to just use the CUTOUT or CUTOUT_MIPPED render layer. Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Melonslise Posted March 10, 2019 Author Posted March 10, 2019 (edited) 36 minutes ago, Cadiboo said: You can't AFAIK. I'm pretty sure this is being fixed in 1.14. If you actually need translucent models, you're out of luck, but if you don't you should be able to just use the CUTOUT or CUTOUT_MIPPED render layer. Chaning to either cutout layer made things even worse: Spoiler But I do need translucency. It's clearly a different issue because you can see I used the same overlay technique on the translucent layer for those full cubes behind the door and it worked just fine. Edited March 10, 2019 by Melonslise Quote
Cadiboo Posted March 10, 2019 Posted March 10, 2019 (edited) Now that looks like a z-fighting issue. Make sure that your model elements aren't in exactly the same place. Transparency (what you use with CUTOUT) isn't a problem. Translucency (what you use with TRANSLUCENT) is a problem. Your mod looks amazing btw! Edited March 10, 2019 by Cadiboo Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Melonslise Posted March 10, 2019 Author Posted March 10, 2019 1 minute ago, Cadiboo said: Now that looks like a z-fighting issue. Make sure that your model elements aren't in exactly the same place. Transparency (what you use with CUTOUT) isn't a problem. Translucency (what you use with TRANSLUCENT) is a problem. Let me say this again: some of those blocks you see behind the door are rendered on the TRANSLUCENT layer and their model elements are 2 identical cubes. Yet they do not have the same issue. How come my door model in particular has this issue? Vanilla grass does overlay in the same way: it has overlapping model elements. Quote
Melonslise Posted March 10, 2019 Author Posted March 10, 2019 Here are the relevant classes: https://pastebin.com/NVUhE7f9 https://pastebin.com/Dk3s3BzQ 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.