In the last two weeks, artifacts have appeared in imagery (see below) when I view it in scene viewer. This doesn't happen when I open the same data as a scene layer package in ArcGIS Pro. Has anyone else had this same issue?
Thanks!
Solved! Go to Solution.
We identified the problem of the broken drawing shown in the screenshot (the funky colorful triangles) when applying &disableFeatures=im-shading
The fix/workaround: when switching between im-shading disabled and enabled using the url parameter, the browser's indexedDB cache must manually be deleted
Clear SceneLayer indexedDB in Chrome (similar in other browsers):
Apologies for the inconvenience on this, we hope this workaround is sufficient for you for the moment.
And as stated earlier, we are revisiting this behavior for the upcoming 4.31 release.
-----
I marked it solved by accident.
FYI, I marked it as unsolved again for now.
My initial guess is that these artifacts are located in the elevation model, not in the imagery. The imagery is projected on to the elevation model in a scene. Are you using identical elevation models in the scene viewer and in Pro?
With the 4.30 release, we "Added shading to IntegratedMesh3DTilesLayer and IntegratedMeshLayer"
(https://developers.arcgis.com/javascript/latest/release-notes/#bug-fixes-and-enhancements).
In case your imagery is an integrated mesh this likely explains the visual difference.
In this context, surface normals (the local direction of the surface) on integrated mesh are used to shade (apply lighting to) the surface. This helps to improve realism under specific lighting conditions and integrate IntegratedMesh data better into the scene (since most scene elements are being shaded this way). Shading also helps to understand the shape of the integrated mesh better, but at the same time might expose issues in the data set. In the case at hand it seems that the data has incorrect normals at tile borders (normals not properly interpolated across borders), which get more visible now due to shading.
How do we turn off the new lighting feature or revert to a prior version? Our workflow has no means for adjusting tiling smooth normals, and the data sets that come in from photogrammetry have prebaked lighting, meaning extra lighting information is noisy.
Thank you for your response.
Do you have a suggestion on how to address this issue? Is there a work around so that incorrect normals at tile borders aren't visible?
@ShannonApgar-Kurtz, @ArthurJensen: are you using SceneViewer on ArcGIS Online? Or a custom application built with ArcGIS Maps SDK for Javascript?
Just regular ArcGIS scene viewer. Nothing fancy. This worked for years with 0 artifacts and 0 post processing until the 4.30 release.
In ArcGIS Online SceneViewer, you can add this url parameter to disable the new integrated mesh shading:
&disableFeatures=im-shading
This should get you back to the pre-4.30 state. Does this work for you as a workaround for the moment?
@Shannon
Is the screenshot what you get after applying &disableFeatures=im-shading?
That should not happen of course. Is there a chance you could share the problematic scene with us (the url), with an instruction how to exactly get to the problem? It's hard to say more without seeing the actual problem.
In case you don't want to share the url publicly you can also DM (direct message) me.
Also, confused why you marked the case as solved. Was this done by accident?