How to Load a Specific Part of a Model Instead of the Full Model in SCZ/SCS?

I went with the second approach — using shattered Stream Cache sub-assemblies along with the loadSubtreeFromSCSFile() functions.
To do this, I used this GitHub repo:
:link: GitHub - toshi-bata/shattered: This sample creates shattered assembly from a monolithic assembly file using HOOPS Exchange and LibConverter of HOOPS Communicator.

This allowed me to split the model into .scs and .png files and load them on demand. However:

  • Drawback: The shattering process is quite time-consuming, even for a 5 MB model.
  • Current bottleneck: Preparing the .scs, .scz, and image assets takes significantly more time than expected.
  • Future concern: My models may range from 100 MB to 5 GB, so optimization is critical to keep processing time manageable.

My question:

Is there any faster or more optimized way to generate these sub-assemblies (SCS + PNG) — especially for smaller and mid-sized models?

Also can you provide example to code for how to use loadSubtreeFromModel() function?

Thanks again, Tino, for the guidance!

Best regards,