c-frame / aframe-gltf-model-plus

gltf-model-plus component to load glb file with hubs extensions

Home Page:https://c-frame.github.io/aframe-gltf-model-plus/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generate a networked id for waypoints

vincentfretin opened this issue · comments

One thing that changed in recent hubs blender addon (compared to two years ago) is that networked id is not generated anymore when exporting. So I need to fix my code for waypoint to create the networked it.
I kind a followed the discussion in hubs repo at the time, that was to allow importing several times the glb in hubs and be sure to have a unique id, based on object hierarchy if I remember.
I wrote some code to create an id for a node in tree, I may just use that, indexOfImportedGlb+NodeId, but the order of imported glb must be deterministic so I end up with the same networked if for all participants.

From @Imaginer on discord:

Uh, Networked IDs are generated on export for me. See this PR for details: Hubs-Foundation/hubs-blender-exporter#137
I kinda remember there were conversations around that, but I don't think anything got implemented other than moving the generation to just before export rather than storing the ID with the component.

So that's probably an issue with my old blend file and hubs addon way to handle the migration. I will investigate this further.

I definitely have no issue with a new scene, it exports with generated networked id indeed.
I'll try a previous version of the hubs exporter with my old blend file to see at which version this breaks.
So nothing to do in this repo, closing.