Also I think it’s common enough to place some kind of marker geometry and then tag them with user data so that they can be cleaned up on load (and turned into whatever game structure is necessary).
Especially common for entity-component-system (ECS) based games to have some kind of entity placement scheme like this.
In my case, I have developed my ECS-based scene editor, I use it to place entities on the scene, and on export, it generates a JSON file that includes the object type, spawn-position, and an optional tag name.
How do I use getUserData() on my scene to get specific geometries contained in the scene as well as their locations?
I’m not exactly sure how getUserData() works, since there isn’t documentation for it. You’d have to explain the finer points for me (like which keys I should use to get what).
In the scene editor. Set user data on your geometry or whatever.
When you load your j3o, traverse the scene… with a scene traverser (don’t have time to google the javadoc for you at the moment). Find the geometry with your user data. Do stuff with it.