CesiumGS / cesium-unreal

Bringing the 3D geospatial ecosystem to Unreal Engine
https://cesium.com/platform/cesium-for-unreal/
Apache License 2.0
916 stars 292 forks source link

Add "Generate Sharp Edges - Minimum Angle" sub-feature to "Generate Smooth Normals" #1328

Open y2kiah opened 8 months ago

y2kiah commented 8 months ago

"Generate Smooth Normals" does not work well with tilesets that have built-in skirts, such as Google Photorealistic 3DTiles. The smoothing causes every tile to have billowed edges in some lighting conditions (see screenshot). Tile edge normals should remain sharp and not be smoothed with the surrounding skirt. Building corners should also not be smoothed in most cases.

The recommended default for this option would be an angle close to 90 degrees (70 or 80). Testing should reveal the ideal setting. We want visual quality to improve where tiles with skirts are mostly fixed, but treetops and other rounded objects continue to receive averaged normals.

billowed-edges