Online3DViewer icon indicating copy to clipboard operation
Online3DViewer copied to clipboard

Support Rendering of Large STL File

Open billy1624 opened this issue 3 years ago • 6 comments

The 3D viewer seems to crash when rendering file size exceed 480MB

Thanks!!

billy1624 avatar Jan 24 '22 09:01 billy1624

Could you please upload an example somewhere to test?

kovacsv avatar Jan 24 '22 20:01 kovacsv

Please download it here

billy1624 avatar Jan 25 '22 04:01 billy1624

My viewers can show both this STL file as well as its GLB exported version (which is around 286MB in size).

Online 3D Viewer is running out of memory for both files.

A wild guess of mine would be that this is caused by sorting out meshes and materials of the model, which seems to be a part of the Online 3D Viewer process.

GitHubDragonFly avatar Jan 25 '22 07:01 GitHubDragonFly

A wild guess of mine would be that this is caused by sorting out meshes and materials of the model, which seems to be a part of the Online 3D Viewer process.

Perhaps you are right.

image

billy1624 avatar Jan 25 '22 07:01 billy1624

Definitely it's because the internal model representation. It allows to implement several features (like mesh selection, calculations, export, etc.), but comes with a price. The task here is to minimize the memory footprint of the internal model, but it doesn't seem to be an easy task.

kovacsv avatar Jan 25 '22 17:01 kovacsv

Might be related: https://stackoverflow.com/questions/62049063/retained-size-in-chrome-memory-snapshot-what-exactly-is-being-retained

kovacsv avatar Jan 25 '22 17:01 kovacsv