Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-3-7-sonnet-20250219-thinking-32k· AnthropicHugging Face LMArena Human Preference 140K

In UE5, I have two cubes placed against each other such that two faces are touching.…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Metallama-3.3-70b-instruct’s answer.
  1. User

    In UE5, I have two cubes placed against each other such that two faces are touching. They both have translucent materials and render correctly independently. However, their touching interior faces can be seen through the other faces, creating an undesirable artifact in the middle. Enabling backface culling doesn't fix it, because the further cube's interior face is front-facing. How can this be addressed?

  2. Claude Assistant

    This is a common issue with translucent materials in UE5. Since you mentioned backface culling doesn't work (which would be the simplest fix), here are some effective solutions:

    1. Adjust Translucency Sort Priority: In the material details panel, increase the "Translucency Sort Priority" for one cube. This forces UE5 to render that object later in the render queue.

    2. Create a custom material that disables rendering when faces are very close together:

      float DepthFade = saturate((SceneDepth - PixelDepth) / FadeDistance);
      float Opacity = lerp(0.0, BaseOpacity, DepthFade);
      
    3. Manually edit the meshes to remove the interior faces where they touch.

    4. Use distance fields in your material to detect proximity to other objects and fade out opacity at intersections.

    5. Single merged mesh: If practical, combine both cubes into one mesh with proper material assignments.

    Would you like me to explain or break down any of these approaches in more detail?

  3. User

    Where can I find the "Cull Obstructed" setting in UE5?

  4. Claude Assistant

    "Cull Obstructed" isn't a standard setting in UE5's material editor. You might be looking for one of these alternatives:

    1. Translucent Sort Policy: Found in the material details panel under the "Translucency" section. You can set it to "Sort by Distance" which helps with overlapping translucent objects.

    2. Distance Field options: In the material details, look for "Distance Field" settings under "Advanced" if you're using distance field-based effects.

    3. Occlusion Culling: This is a project-level setting found in Project Settings > Engine > Rendering > Culling.

    If you're coming from another engine that has a specific "Cull Obstructed" setting, UE5 handles this differently through a combination of the translucency sort priority and sorting policies.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.