z-fighting is caused by insufficient precision of arithmetic calculations performed by the graphics card. The precision can be improved by increasing the camera near distance, that is the distance from the camera in which triangles are not rendered (the improvement happens at the cost of making triangles very near to the camera not visible).
To increase the camera near distance create a body-end.html
file in the scene directory Documents\Shapespark\<SCENE-NAME>
with the following content:
<script>
WALK.CAMERA_WALK_NEAR = 0.01; // applies to walk views
WALK.CAMERA_ORBIT_NEAR_FROM_1M = 0.01; // applies to orbit/top views
</script>
and play with increasing the values a bit. The snippet in the body-end.html
file is applied only when the scene is opened in the view mode (by clicking the scene thumbnail), so you won’t see the changes in the editor.