Transparent Object Clipping (Meshes)

How can I fix this “clipping” with overlayed transparent parts?

Only happens at certain angles. This doesn’t happen with the Glass material, but I don’t like how that material looks.

Turn them into 1 mesh object. Although might not be suitable for your project. Instead of having this hair just be the hair mesh (assuming you’re doing a character creator), have it be the hair + the head, and make the real head invisible.

1 Like

This unfortunately is not doable for my project, since players can insert any Hair ID they choose.

Short answer: you can’t

You would have to do what @ExercitusMortem mentioned or compromise and use the glass texture. From the video it looks like you put a smaller non-transparent version of the head inside another transparent head. You could also try inserting a slightly smaller non-transparent version of the hair like you’ve done with the head to minimize how much the clipping is shown, although it most likely still wont be perfect.

1 Like

You can’t. Depending on the angle of the camera, Roblox chooses 1 of the transparent parts to be overlayed on top of the other, as running the calculations to have them be overlayed perfectly would take up some computing power. 1 solution is to make one of the parts .05 studs closer to the camera every frame, so that that part is always rendered on top, and doesn’t make the Rendering system move between the 2 parts.

1 Like

Thank you. I managed to make this work by changing the Offset of the Mesh of the hair.

while mesh and mesh.Parent and handle and handle.Parent do
	task.wait()
	local offsetWorld = (camera.CFrame.Position - handle.Position).Unit * 0.25
	local offsetLocal = handle.CFrame:VectorToObjectSpace(offsetWorld)
	mesh.Offset = offsetLocal
end
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.