Jump to content

[1.12.2] Transparency sorting issue on json model


Melonslise

Recommended Posts

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 by Melonslise
Link to comment
Share on other sites

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.

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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. 

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.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)

Link to comment
Share on other sites

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

2019-03-10_12_02_04.png.f707f2ee3ba7f619e57eed500fd0a019.png

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 by Melonslise
Link to comment
Share on other sites

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 by Cadiboo

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.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)

Link to comment
Share on other sites

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.

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hello, Hi and I am making a forge 1.12.2 mod and also trying to get a custom model helmet item (I made a joker mask) and exported it to .json format and put it in the ~/namespace/models/item folder. Though, I'm struggling to get the item to render what I want it to be rendered like as I've positioned it in the 'head' window view in blockbench. How did you render out your model? I checked your code and it looks like no references to the actual model are being made. I'm new to this forge modding stuff (was a fabric modder) and I desperately need some help. Is there a way to standardly render out armor models made using blockbench? any methods that one can use? My model in JSON: ```json { "credit": "Made with Blockbench", "texture_size": [160, 160], "textures": { "0": "ydyrn:items/joker_mask_texture", "particle": "ydyrn:items/joker_mask_texture" }, "elements": [ { "from": [0, 0, 0], "to": [16, 16, 1], "faces": { "north": {"uv": [0, 1.7, 16, 14.2], "texture": "#0"}, "east": {"uv": [0, 4, 0.9, 5.6], "texture": "#0"}, "south": {"uv": [0, 5.8, 1.6, 7.4], "texture": "#0"}, "west": {"uv": [0, 1.9, 1.3, 3.5], "texture": "#0"}, "up": {"uv": [0, 3.4, 1.6, 4.2], "texture": "#0"}, "down": {"uv": [0, 9, 1.6, 9.7], "texture": "#0"} } }, { "from": [15.8, 11, 0.5], "to": [16.2, 13, 15], "faces": { "north": {"uv": [7.9, 7.9, 7.94, 8.1], "texture": "#0"}, "east": {"uv": [7.9, 7.9, 9.35, 8.1], "texture": "#0"}, "south": {"uv": [7.9, 7.9, 7.94, 8.1], "texture": "#0"}, "west": {"uv": [7.9, 7.9, 9.35, 8.1], "texture": "#0"}, "up": {"uv": [7.9, 7.9, 7.94, 9.35], "texture": "#0"}, "down": {"uv": [7.9, 7.9, 7.94, 9.35], "texture": "#0"} } }, { "from": [0.2, 11, 14.6], "to": [15.8, 13, 15], "faces": { "north": {"uv": [7.9, 7.9, 9.46, 8.1], "texture": "#0"}, "east": {"uv": [7.9, 7.9, 7.94, 8.1], "texture": "#0"}, "south": {"uv": [7.9, 7.9, 9.46, 8.1], "texture": "#0"}, "west": {"uv": [7.9, 7.9, 7.94, 8.1], "texture": "#0"}, "up": {"uv": [7.9, 7.9, 9.46, 7.94], "texture": "#0"}, "down": {"uv": [7.9, 7.9, 9.46, 7.94], "texture": "#0"} } }, { "from": [-0.2, 11, 0.5], "to": [0.2, 13, 15], "faces": { "north": {"uv": [7.9, 7.9, 7.94, 8.1], "texture": "#0"}, "east": {"uv": [7.9, 7.9, 9.35, 8.1], "texture": "#0"}, "south": {"uv": [7.9, 7.9, 7.94, 8.1], "texture": "#0"}, "west": {"uv": [7.9, 7.9, 9.35, 8.1], "texture": "#0"}, "up": {"uv": [7.9, 7.9, 7.94, 9.35], "texture": "#0"}, "down": {"uv": [7.9, 7.9, 7.94, 9.35], "texture": "#0"} } } ], "display": { "thirdperson_righthand": { "translation": [-0.25, -2.75, 0], "scale": [0.3, 0.3, 0.3] }, "thirdperson_lefthand": { "translation": [-0.25, -2.75, 0], "scale": [0.3, 0.3, 0.3] }, "firstperson_righthand": { "rotation": [-9, 115, 15], "translation": [0, 1.25, -1.75], "scale": [0.5, 0.5, 0.5] }, "firstperson_lefthand": { "rotation": [-9, 115, 15], "translation": [0, 1.25, -1.75], "scale": [0.5, 0.5, 0.5] }, "ground": { "rotation": [40, 0, 0], "translation": [0, -2.5, 0], "scale": [0.5, 0.5, 0.5] }, "gui": { "rotation": [0, 180, 0] }, "head": { "translation": [0, 0, 0.25], "scale": [0.82773, 0.73594, 0.9] }, "fixed": { "translation": [0, 0, 8.75] } }, "groups": [ 0, { "name": "straps", "origin": [0, 0, 0], "color": 0, "children": [1, 2, 3] } ] } ```
    • Add the crash-report or latest.log (logs-folder) with sites like https://paste.ee/ and paste the link to it here  
    • In your config folder, delete the sophisticatedcore-common.toml file and test it again
    • Add the crash-report or latest.log (logs-folder) with sites like https://paste.ee/ and paste the link to it here  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.