Select to view content in your preferred language

Artifacts in scene layer

566
13
Jump to solution
4 weeks ago
ShannonApgar-Kurtz
New Contributor II

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?

 Scene Layer Imagery Issue.PNG

Thanks!

 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AndreasUlmer
Esri Contributor

We identified the problem of the broken drawing shown in the screenshot (the funky colorful triangles) when applying &disableFeatures=im-shading

  • SceneLayers (which includes Integrated Mesh Layer) are cached in the browser's indexedDB for performance reasons
  • a slightly different version of  integrated mesh data gets cached when the url parameter  &disableFeatures=im-shading is set
  • loading a non-matching version from the indexedDB cache causes the broken rendering

 

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):

  • open developer tools
  • navigate to Application tab
  • under Storage / IndexedDB, select esri-scenelayer-cache
  • click Delete database

AndreasUlmer_0-1723643266376.png

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.

 

View solution in original post

13 Replies
AndreasHall
Esri Contributor

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?

0 Kudos
AndreasUlmer
Esri Contributor

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.

ArthurJensen
New Contributor

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. 

0 Kudos
ShannonApgar-Kurtz
New Contributor II

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? 

AndreasUlmer
Esri Contributor

@ShannonApgar-Kurtz, @ArthurJensen: are you using SceneViewer on ArcGIS Online? Or a custom application built with ArcGIS Maps SDK for Javascript?

0 Kudos
ArthurJensen
New Contributor

Just regular ArcGIS scene viewer. Nothing fancy. This worked for years with 0 artifacts and 0 post processing until the 4.30 release. 

0 Kudos
AndreasUlmer
Esri Contributor

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?

And FYI, we are reconsidering this behavior for 4.31, but no decisions yet.
0 Kudos
ShannonApgar-Kurtz
New Contributor II

As suggested, I added &disableFeatures=im-shading to the end of the url for AGOL SceneViewer and it seems to have broken it.

AndreasUlmer
Esri Contributor

@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?

0 Kudos