Hello TechSoft3D Support,
I’m working on a feature where we need to dynamically load and unload a specific single part (node) of a model at a time — only one part should be loaded and displayed at any given time.
To achieve this, I explored using streamingMode: "onDemand" and followed this approach:
- Loaded a node (e.g., node ID 5) using
requestNode(5). - Before loading the next node, I called
clear()ordeleteNode()to unload the previous node. - Then attempted to load a new node (e.g., node ID 10) using
requestNode(10).
However, after calling clear() or deleteNode(), the viewer remains empty and does not load the new node.
We do not want to toggle visibility using setNodesVisibility() — our goal is to truly load and unload individual parts, maintaining only a single active node in the scene at any time.
Could you please advise on:
- Whether this kind of selective load/unload behavior is supported using
onDemandmode? - If not, is there any other recommended way to implement this functionality?
- Are there internal API methods or a different workflow we should consider?
Any suggestions or workarounds would be greatly appreciated.