First, to the RHS. Anything you pass to scene.flags will be used to extend the scene. And though it is not a part of the declaration file, RHS can be used as well so adding:
Not sure why it all collapsed like that. TBH - I am not sure how to edit the HTML on the demo you provided. it seems to be importing the other demo, but I can’t change it directly there.
It doesn’t take the scene configuration from the file but was meant to only import the meshes from the serialized data. How are you defining the transform nodes? could you, just as a test, convert them to meshes?
Ok, that explains it. It really is a mesh viewer rather than a scene viewer. I was just hoping that there is an option for scenes.
Here is the node graph in the inspector:
The Transform nodes are created and then the meshes parented to them, nothing special. The scene is created from parsing a recipe (another 3d standard). That can contain an arbitrary transform hierarchy, so I need to use Transform nodes.
It sounds like Transform nodes would be ignored in general, so grouping everything under a single Transform node would not help. Only mesh transforms may be preserved.
I would be looking for an option in the viewer to use .SceneLoader.Load which may not be a goal for the Viewer as it focuses on nice presentation of single models.
I probably can figure out another way for have a simple scene viewer if Viewer is not targeted that way.