Esri / i3s-spec

This repository hosts the specification for Scene Layers which are containers for arbitrarily large amounts of geographic data. The delivery and persistence model for Scene Layers, referred to as Indexed 3d Scene Layer (I3S) and Scene Layer Package (SLPK) respectively, are specified.
Other
315 stars 84 forks source link

IntegratedMesh from OpenSceneGraph does not render fully at a distance #123

Open AlexanderPoone opened 3 years ago

AlexanderPoone commented 3 years ago

Hi! I tried to merge 200 osgb files into a single SLPK. I have tried two methods but they ended up having the same effect. The osgbs are not in a pyramid hierarchy. Although the entire scene is rendered at first, most parts near the boundary disappeared within a split second.

  1. Use the official osgconv utility from openscenegraph.org to merge all 200 osgbs into a single osgb, then convert it to SLPK using the Create Integrated Mesh Scene Layer Package tool in Pro. No errors are raised using both tools.

Options I have tried: setting OSG_OPTIMIZER environment variable to COMBINE_ADJACENT_LODS MERGE_GEOMETRY MERGE_GEODES SPATIALIZE_GROUPS TESSELLATE_GEOMETRY INDEX_MESH or a combination of these, but to no avail. Setting OSG_COMPUTE_NEAR_FAR_MODE to DO_NOT_COMPUTE_NEAR_FAR, yet this does not work either.

You may also exclude the possibility of the model having incorrect normals, because removing the normals results in the same glitch.

  1. Use the folder containing the 200 osgbs as the Input Dataset in the Create Integrated Mesh Scene Layer Package tool in Pro. No errors are raised. The visual glitch is identical to that of the previous method.

I am using Pro 2.7.3 and OpenSceneGraph 3.6.4 / 3.6.5.

samp Above: Glitch on Pro.

a1 Above: Scene Viewer. It renders correctly at first for a split second.

b c Above: Immediately some parts are clipped.

d Above: It renders normally when zoomed in.

AlexanderPoone commented 3 years ago

I also discovered that if the source has a highly overlapped UV map, the chances are that many parts of the mesh cannot be rendered correctly.

rvargasESRI commented 3 years ago

@SoftFeta Thank you for the information. We are aware of this issue and are working on a solution.

AlexanderPoone commented 3 years ago

@rvargasESRI

Thanks for the response. By the way, there is a normalTexture attribute in the materialDefinitions materialDefinitions i3S specification. Does it imply that ArcGIS Online supports normal mapping? Thanks.

tiangeh90 commented 1 year ago

@

@SoftFeta Thank you for the information. We are aware of this issue and are working on a solution.

Hi! I have met the same problem. Does this problem solved in new version?