Status: Accepted. Supersedes legacy ADR-0001.
Java3D 1.x is unmaintained and ties JMVS to JDK 11 and vendored natives (legacy risks R1–R3). The renderer must run on macOS (Apple Silicon), Windows and Linux, come from Maven Central, support drawing tens of thousands of atoms smoothly, and let JMVS supply its own shaders.
Use libGDX (1.14.x) with the LWJGL3 desktop backend, requesting an OpenGL 3.2 core context (GL30 emulation) so instanced rendering is available on macOS (which caps at OpenGL 4.1). JMVS uses libGDX’s Mesh, ShaderProgram, PerspectiveCamera and math types directly rather than the high-level ModelBatch/ModelInstance API, so atoms and bonds can be drawn as instances (0007). All GL code is confined to jmvs-render-gdx (0002).
gdx-platform natives-desktop).Lwjgl3ApplicationConfiguration.useGlfwAsync() needs LWJGL’s glfw_async native, which the LWJGL version libGDX depends on lacks, so JMVS passes -XstartOnFirstThread from the Gradle run task and the packaged macOS app, and the launcher restarts the JVM with that flag when started any other way (e.g. the generic start scripts).GlslCompatibility sets ShaderProgram.prependVertexCode/prependFragmentCode to #version 150 plus defines; all shaders (libGDX’s and JMVS’s) are written in GLSL ES 1.0 style.--enable-native-access=ALL-UNNAMED and --sun-misc-unsafe-memory-access=allow to load natives without warnings; start scripts and installers pass them.