Best way to export 3dm to Webgl for three js ???
you can try the gltf bin exporter on _PackageManager and see if that works for you
Three js is able to directly load 3dm files.
https://threejs.org/docs/#examples/en/loaders/3DMLoader
Does it load material, lighting at same time ??