sceneform-android icon indicating copy to clipboard operation
sceneform-android copied to clipboard

Renderable.getSubmeshCount() always return 0

Open Schlewinow opened this issue 3 years ago • 1 comments

Currently migrating an app from sceneform 1.15.0 (old Google version) to 1.20.5 of this new version. Debugging an issue with materials not being applied anymore (after recompiling the materials with the proper version of filament matc) I stumbled upon the issue that for our ModelRenderables the method getSubmeshCount() always returns 0 for every model. The models are GLB-files and rendered properly in an AR scene, but iterating over the submeshes to apply materials is not possible because the submesh count is always 0. The expected value for a rendered mesh should always be at least 1 though. This seems to be an issue since 1.16.0 and was probably never fixed (https://github.com/google-ar/sceneform-android-sdk/issues/1049).

Is there any way of getting the submesh count for renderables (from GLBs) in the current sceneform version? And how would a material be applied to a submesh of a RenderableInstance?

Schlewinow avatar Apr 08 '22 08:04 Schlewinow

We are also having same issue. Can anyone please provide input on this?

tapmyads-dev1 avatar Jul 13 '22 03:07 tapmyads-dev1

same issue + 1

wying111 avatar May 16 '23 09:05 wying111

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 15 '23 05:08 github-actions[bot]

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

github-actions[bot] avatar Aug 23 '23 05:08 github-actions[bot]