When rendering 3D visuals, vGIS expects shader or texture only on one side of each facet. Otherwise, by rending both sides of the same plane at once, the rendering engine will have a harder time processing the visuals to display in AR. Rendering of double-sided surfaces will cause what's known as "z-fighting" effect and increase the workload on the system by a factor of ten, causing even a modest model to cause a substantial drop in system performance or an outright system crash.
Steps to Disable
In the Admin Portal, at the model level, the toggle to enable/ disable double sided surfaces will be below the coordinate system area. This toggle will be defaulted as OFF. Remember to Save and Process Data to complete the process.
In some cases, Esri Scene Features may contain instructions to apply shader or texture to both the inner and the outer faces of the model. To solve this, you will need to exclude one of the surface's sides from being rendered. To do so, add the following script to your data source:
- destination.Metadata.MaterialDefinitions.CullFace = 'back'
- Access the Data Sources tab from the side menu (Fig. 2)
- Select the ROOT folder and click on the Script tab (Fig. 3)
- Paste the script in the 'Script' text box
- Save changes and Process the Data (Fig. 4)
Once the Layer Data has been processed, open the vGIS Utilities app and check if the performance has improved and if there are any signs of z-fighting.
Note: in some cases, when the above script is applied, the structure of data source data may cause visuals to disappear from the screen completely. It indicates that the renderer excluded the wrong side of surfaces. If it occurs, return to the Admin Portal and replace the 'back' part of the script with the word 'front':
- destination.Metadata.MaterialDefinitions.CullFace = 'front'