Skip to content
Flexible VR Visualisation for Volumetric and Geometric Data on the Java VM, powered by Kotlin and Vulkan
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
artwork Updated README with better building and usage instructions Jun 15, 2016
models Added example model Feb 19, 2016
src BloodCellsExample: Improve performance Jul 19, 2019
.codecov.yml Add configuration file Jun 17, 2019
.editorconfig Documenting scenery! Jul 8, 2016
.gitignore Add missing example models Jun 14, 2019
.travis.yml Travis: Mark tests run here as unit tests Jun 17, 2019 Update CHANGELOG May 24, 2019
LICENSE Added README and LICENSE Feb 16, 2016 Update README with citation information Jun 21, 2019
appveyor.yml Appveyor: Cache Maven repo Jun 3, 2019 Added ping_repository script to trigger CI build of SciView upon succ… Nov 2, 2017
pom.xml Use optimized shaders by default Mar 29, 2018
settings.xml Semver to 0.1.0-SNAPSHOT, preparations for OSSRH publication Feb 20, 2017

scenery logo

Maven Central DOI Join the chat at // Travis Build Status Appveyor Build status Codacy Badge

scenery // Flexible VR Visualisation for Volumetric and Geometric Data on the Java VM

Blood Cells Example


scenery is a scenegraphing and rendering library. It allows you to quickly create high-quality 3D visualisations based on mesh data. scenery contains both a OpenGL 4.1 and Vulkan renderer. The rendering pipelines of both renderers are configurable using YAML files, so it's easy to switch between e.g. Forward Shading and Deferred Shading, as well as stereo rendering. Rendering pipelines can be switched on-the-fly.

Both renderers support rendering to head-mounted VR goggles like the HTC Vive or Oculus Rift via OpenVR/SteamVR.


Have a look in the src/test/tests/graphics/scenery/tests/examples directory, there you'll find plenty of examples how to use scenery in Kotlin, and a few Java examples.

Some of the examples need additional meshes, which are not part of the repository due to their size. These meshes can be downloaded here and extracted to a directory of choice. When running the examples, the environment variable SCENERY_DEMO_FILES should point to this directory, otherwise the models will not be loaded and scenery will complain.

Contributed examples


In case you use scenery in a scientific publication, please cite this preprint:

  • Ulrik Günther, Tobias Pietzsch, Aryaman Gupta, Kyle I.S. Harrington, Pavel Tomancak, Stefan Gumhold, and Ivo F. Sbalzarini: scenery — Flexible Virtual Reality Visualisation on the Java VM. arXiv:1906.06726, 2019.

If you want to refer to a specific scenery version, e.g. for reproducibility, also can additionally cite the DOI of the scenery version you used.

Default Key bindings

Most of the demos use the following key bindings:


Key Action
Mouse drag Look-around
W, A, S, D Move forward, left, back, right
Shift - W, A, S, D Move forward, left, back, right fast
K, Shift+K Move upwards, move upwards fast
J, Shift+J Move downwards, move downwards fast
C Switch between FPS and Arcball camera control modes (only used in some examples)

If a gamepad is connected (such as a PlayStation 3 or 4 controller), the hats can be used for movement and look-around.


Key Action
F Toggle fullscreen
Q Toggle rendering quality (low, medium, high, ultra), if supported by the current rendering pipeline
Shift-Q Toggle buffer debug view
P Save screenshot to Desktop as PNG
Shift-P Record a H264-encoded video to the Desktop

All keybindings are also listed in the InputHandler class.

Selecting a renderer

On Windows and Linux, scenery defaults to using the high-performance Vulkan renderer, while on macOS, it'll default to the OpenGL renderer.

If you would like to override this, set the system property scenery.Renderer to either VulkanRenderer or OpenGLRenderer.

If you want to use Vulkan validation layers, or select a different graphics card than the primary one, please consult the VulkanRenderer README.

scenery has been tested with MoltenVK on macOS, but there are some major issues remaining before Vulkan can also be used on macOS.


Into a directory of your choice, clone the Git repository of scenery:

git clone

Then, change to the newly created scenery directory, and run mvn clean install to build and install both packages into your local Maven repository.

Alternatively, scenery's Maven project can be imported into IntelliJ or Eclipse. Please note that Eclipse needs the Kotlin plugin from JetBrains to work correctly.

If you want to compile the provided shader files offline on your own, please make sure you have the latest Vulkan SDK from LunarG installed. At least version 1.1.70 is required.

Using scenery in a project

Maven artifacts

Release artifacts are currently published to the Sonatype OSS repository, and synchronised with Maven Central.

The recommended way to use non-release (unstable) builds is to use jitpack. jitpack provides better build reproducibility than using SNAPSHOT builds, as they may change at any point in time or might become unavailable. With jitpack, you can use any commit from the repository as package version.

Using scenery in a Maven project

Add scenery and ClearGL to your project's pom.xml:



Non-release builds / jitpack

To use jitpack, add to your repositories in pom.xml:


You can then use any commit from the repository as scenery version, e.g.:


Using scenery in a Gradle project

Add scenery and ClearGL to your project's build.gradle:

compile group: 'graphics.scenery', name: 'scenery', version:
compile group: 'net.clearvolume', name: 'cleargl', version: '2.2.6'

Non-release builds / jitpack

To use jitpack, add to your repositories in build.gradle:

allprojects {
		repositories {
			maven { url '' }

You can then use any commit from the repository as scenery version, e.g.:

dependencies {
  implementation 'com.github.scenerygraphics:scenery:b9e43697b0'


scenery uses slf4j for logging. If you use scenery in your own library and want to see scenery's messages, you need to have a logger (e.g. slf4j-simple) configured in your project. Check this page on how to do that.

To configure the logging level that scenery uses, set the system property scenery.LogLevel to info (default), warn, debug or trace. Be advised that both debug and trace produce a lot of output and thereby negatively affect performance.

GPU compatibility

scenery has been tested with a number of different systems and GPUs. If you have a setup that is not listed in the following table - or marked as untested - please submit a PR with the setup added.

Works ⛔ Does not work ⬜ Untested 🚫 Unsupported configuration (e.g. no driver support)

GPU Windows, OpenGL Windows, Vulkan Linux, OpenGL Linux, Vulkan Mac OS X, OpenGL
AMD Radeon HD 7850 (Pitcairn XT)
AMD Radeon R5 M230 (Caicos Pro)
AMD Radeon R9 390 (Hawaii Pro)
AMD Radeon R9 Nano (Fiji XT)
AMD Radeon R9 M370X (Strato Pro)
AMD FirePro W9100 (Hawaii XT)
Intel HD Graphics 4400 (Haswell) 🚫
Intel HD Graphics 5500 (Broadwell) 🚫
Nvidia Geforce Titan X (Maxwell)
Nvidia Titan Xp (Pascal)
Nvidia Geforce 1080 Ti (Pascal)
Nvidia Geforce 1070 (Pascal)
Nvidia Geforce 960 (Maxwell)
Nvidia Quadro K6000 (Kepler)
Nvidia Quadro P5000 (Pascal)
Nvidia Geforce 980M (Maxwell)
Nvidia Geforce 960M (Maxwell)
Nvidia Geforce 750M (Kepler)
Nvidia Geforce 650M (Kepler)

Please also note that Nvidia's Vulkan drivers before version 382.33 have a bug that prevents scenery's Vulkan renderer from working correctly.

You can’t perform that action at this time.