DocsDynamic Mesh OccluderDetection Settings

Detection Settings

All occlusion detection parameters explained

Occlusion Settings

Found under Occlusion Settings in the Settings panel. The defaults work well for most characters — only adjust if you get unexpected results.

💡 Start with defaults: Only tweak settings if the result looks wrong after running detection.

Core Ray Settings

SettingDefaultDescription
Ray Count128Test directions per triangle. Higher = more accurate but slower. Raise to 256–512 for complex clothing.
Occlusion Threshold0.75Fraction of the triangle that must be covered to mark it hidden. Lower hides more, higher hides less.
Ray Offset0.5Push away from the surface to avoid self-intersection. Leave at default unless you see strange results.
Max Ray Distance100How far each ray travels (cm). Increase for very thick clothing.
Cone Half Angle45°Test cone angle around each triangle's normal. 30–45° for tight clothing, 60–75° for loose garments.

Boundary & Post-Processing

SettingDefaultDescription
Dilation Rings0Expands the hidden region outward by this many triangle rows.
Max Hidden Island Size8Removes isolated hidden patches smaller than this — prevents stray hidden spots on exposed skin.
Max Visible Island Size8Fills small visible "holes" inside hidden regions.
Smoothing Iterations1Blends the hidden/visible boundary for cleaner edges. Increase for smoother boundaries.
Hidden Neighbor Ratio0.85Smoothing threshold. Higher preserves more visible area near edges.
Edge Erosion Rings1Erodes the hidden boundary inward. Removes edge spikes.

Advanced Settings

SettingDefaultDescription
Clothing Proximity Threshold8Body triangles farther than this (cm) from any clothing are always kept visible.
Vertex Occlusion Min Count2How many of a triangle's 3 corners must be hidden before the whole triangle is hidden.
Direct Normal Threshold0.40Relaxed threshold when the direct normal ray confirmed clothing overhead.
Min Informative Ray Fraction0.15Minimum ray fraction surviving self-occlusion filter before the relaxed threshold applies.
Use Bidirectional ContainmentOnAlso checks inward rays to catch body geometry between two clothing layers.
Close Enclosed RegionsOnFlood-fill that hides visible area fully surrounded by hidden geometry.
Dynamic Mesh Occluder - Documentation | Athian Games