Gltf instance dissapears from inspector if parented to empty

Hi,

When exporting an instance on Blender, the meshes show fine in the inspectorv2:

However, if the mesh and it’s instance are parented to an empty, the instance dissapears from inspector (and can’t be picked) but is still rendered:

test.zip (2.2 KB)

glbs above

Thanks for reporting this, investigating!

@riven04 I think there must have been a bug causing this that was fixed recently. I was able to repro the issue in sandbox.babylonjs.com, but then I was not able to repro in a local build of Sandbox, so then I force refreshed sandbox.babylonjs.com and tried again and then it worked as expected:

If you are trying this in Sandbox, can you try force refreshing the page?

If you are trying this in your own app, can you try updating to the latest version of the Inspector v2 package/bundle?

Using the sandbox I see the same issue, force refreshed and tried private window, both firefox and chrome. Using Linux.

Chromium Version 144.0.7559.132 (Official Build) Arch Linux (64-bit)

Firefox 147.0.3 (64-bit)

Tried a local build of sandbox, I see the same behavior. Using test3.glb

Ok apologies, I confused the two glbs when I was comparing, so there wasn’t actually any change in behavior with a refresh. That said, looking at these two glbs closer with @bghgary, they are very different. The second one uses gpu instances (which translate to Babylon thin instances), which are not currently displayed or pickable in Inspector. So I think the takeaways here are:

  1. The two exports from Blender resulted in very different gltf files (one with gpu instances, one without). If that is not what you were expecting to happen, then it could be a Blender or Blender gltf exporter bug.
  2. Thin instances are not currently displayed in Inspector’s Scene Explorer and are not pickable. Maybe we should actually show thin instances in Scene Explorer, make them pickable (with gpu picking), and in the properties pane just show the position/rotation/scale extracted from the matrix associated with the thin instance. For this, I will discuss with @Deltakosh and @Evgeni_Popov.
3 Likes

I wasn’t expecting that to be the case, but yes, it is happening at the Blender export level. Only difference between exports is having an empty parent. Thanks for the quick reply!

1 Like