Select to view content in your preferred language

Eratic culling/clipping of 3D objects

503
4
11-01-2022 08:17 AM
GuyHeathcote
Emerging Contributor

Hi,

I recently started having a look at the v1.0 version of the Unity SDK.  One test I've tried involved taking some 2D building polygons, heighting those from a terrain, extruding them into 3D building objects and then writing those to i3s.  This has then been opened in Unity, via the Map Creator, as a new layer.  The objects appear as expected, in the correct location.  So far, so good.  However, when I move the viewport camera around - or navigate around when in Game mode, these generated building models will appear and disappear in quite an erratic way.  It's not just distance clipping and some parts of an individual model will remain the whole time whilst other parts appear and disappear.  Changing the camera parameters (particularly FOV) seems to have some influence on what is happening, but doesn't solve it.  So, I'm now wondering what to do about this.  Could the issue be relating to the set-up of the source i3s file?  I'm a bit puzzled as to why it's behaving in this way.

Regards

Guy Heathcote
Ordnance Survey


0 Kudos
4 Replies
GuyHeathcote
Emerging Contributor

As a brief update to this, I've since also translated the exact same set of building objects into standard FBX files and then bought them into the scene as if I was creating a standard Unity project.  Once there, I also assigned them with an ArcGIS Location component and parented the model to the main map (obviously, the location is not correct without manual intervention).  Anyhow, in importing the models this way, I get none of the weird culling that is still happening with the i3s versions.  I'm guessing there's a simple answer, here, but am still struggling to locate what's causing it to behave this way.

0 Kudos
Matt_Nelson
Esri Alum

Yea changing the properties on the ArcGISCameraComponent will give you some freedom to update it, but my guess is that the i3s data isn't baked correctly with it's LOD data so when we try to load a different LOD we aren't grabbing the right now.

Additional things you could provide to help diagnose the issue:
1. What tool are you using to bake the data? If you could provide a bit more details on that it would be good

2. Providing a short video showing the loading might help too

GuyHeathcote
Emerging Contributor

Thank you.  I've been using FME to prepare and bake the data into i3s.  That was the most obvious route to try first, as FME can read from our NGD Features API with ease (and I'm already used to doing that).  There doesn't seem to be much that can be configured with FME's i3s writer - so, I'm now wondering if I'm missing a prior stage, or whether I should be looking at a different tool?  

I'll look into getting a screen capture for you.

0 Kudos
GuyHeathcote
Emerging Contributor

OK, now that you've got me questioning whether the problem sat within FME, I've now tried using ArcGIS Pro to prepare and generate the i3s, using the exact same base data.  This...works properly, with no culling or object flashing!

So, yes, I'm now assuming that the problem relates to an issue with FME's i3s writer.  Well, either that, or I'm somehow using it incorrectly, even though I'm struggling to see what else it might require from me.  That's slightly disappointing, in that I don't currently have a single tool that can undertake the entire i3s creation process.  However, at least I now have the end result I was looking for.

0 Kudos