Add pipeline to convert geometry to gltf
Is your feature request related to a problem? Please describe. The Phoenix event display requires a gltf file as input.
Describe the solution you'd like We should automatically export a gltf file from the geometry(ies) in CI.
Describe alternatives you've considered This could be done by hand....
Additional context Ref: https://github.com/eic/root-to-gltf-exporter and https://github.com/HSF/root_cern-To_gltf-Exporter
Why is this harder than it looks? The root-to-gltf-exporter is written in typescript and requires a web browser.
Some time ago I wrote root2cad GLTF converter
https://github.com/eic/root2cad
It is still require nodejs, but it doesn't require a browser and fixes a couple of issues of the above converters (actually communicated with their devs). root2cad allows to save subdetectors geometries separately and couple of more features.
I can actually add it to the scripts but after the campaign is started. So you can assign me if it waits
Curious to see xvfb-run used. Is it necessary? Which step requires it?
What happens under the hood, rootjs reads root file and creates threejs scene which then is exported to gltf. Threejs running under nodejs without a browser required it. While there was an effort to make it without xvfb. I can see if it is a stopper