scenerygraphics / scenery

Flexible VR Visualisation for Volumetric and Geometric Data on the Java VM, powered by Kotlin and Vulkan.
https://scenery.graphics
GNU Lesser General Public License v3.0
128 stars 31 forks source link

SceneryBase.sceneInitialized doesnt work in headless mode #297

Open kephale opened 4 years ago

kephale commented 4 years ago

Discovered this when using SceneryBase.waitForSceneInitialisation in headless mode (e.g. System.setProperty("scenery.Headless", "true");)

skalarproduktraum commented 4 years ago

This should actually work and is used by the example runner extensively, I also cannot see an immediate reason why it should fail. Could you elaborate on what you tried to run?

kephale commented 4 years ago
        System.setProperty("scenery.Headless", "true");
        SciView sv = SciView.createSciView();

        sv.waitForSceneInitialisation();