xeokit / xeokit-sdk

Open source JavaScript SDK for viewing high-detail, full-precision 3D BIM and AEC models in the Web browser.
https://xeokit.io
Other
713 stars 285 forks source link

GLTF loader and meta objects structure #1588

Closed DhivinX closed 1 month ago

DhivinX commented 1 month ago

Hi @xeolabs,

using the xeokit GLTF loader, can it automatically create a meta object structure?

As is done when converting with xeokit-convert to an XKT file. What I mean is that the structure should be based on existing "entities" in the GLTF model.

xeolabs commented 1 month ago

Hi @DhivinX

At the moment, no. But if we need it, I can add it

DhivinX commented 1 month ago

@xeolabs Yes, please. If it's not too much effort.

DhivinX commented 1 month ago

@xeolabs Any news on this topic? Of course, I don't want to rush you.

xeolabs commented 1 month ago

@DhivinX I have a solution of sorts which I haven't merged yet - let's discuss in the next tech meeting.

xeolabs commented 1 month ago

Hi @DhivinX making a metamodel that reflects the node hierarchy turned out to be tricky alongside the other use cases etc - however what I did do is make it produce a two-level hierarchy, maybe that's OK for now - see this PR: https://github.com/xeokit/xeokit-sdk/pull/1599

I'll need to circle back to this later and think through a better parsing solution for the full node hierarchy.

Released in: https://github.com/xeokit/xeokit-sdk/releases/tag/v2.6.30

DhivinX commented 1 month ago

Hi @xeolabs thank you for quick response. For me it's looks nice and I think that it's enough. Thank you again!