epic icon indicating copy to clipboard operation
epic copied to clipboard

Add pipeline to convert geometry to gltf

Open wdconinc opened this issue 3 years ago • 3 comments

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.

wdconinc avatar Oct 18 '22 14:10 wdconinc

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

DraTeots avatar Oct 27 '22 14:10 DraTeots

Curious to see xvfb-run used. Is it necessary? Which step requires it?

wdconinc avatar Oct 27 '22 16:10 wdconinc

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

DraTeots avatar Oct 27 '22 17:10 DraTeots