Vlog 03: Integrating Dear ImGui (1.92.0+) with latest jME3: Initial Findings, Traps, and Architecture Choices
Hi @ndebruyn ,I think I’ve fixed all the compilation errors between jME 3.9.0 and 3.10 by temporarily disabling the DisplayFramebufferScale calculation during this transition phase. It should now work with both versions. I’ve also added a prototype for ImGuiImplGles3 rendering in case anyone wants to try it out with jME v3.10.x
Configuration: jME 3.10.x + SDL + ANGLE_GLES3 or OPENGL_32
public static void main(String[] args) { TestImGuiApplication app = new TestImGuiApplication(); AppSettings settings = new AppSettings(true); settings.setRenderer(AppSettings.LWJGL_OPENGL32); //settings.setRenderer(AppSettings.ANGLE_GLES3); app.setSettings(settings); ... }
@Override public void simpleInitApp() { boolean useGlfwBackend = false; // use Backend SDL ImGuiAppState imgui = new ImGuiAppState(useGlfwBackend); stateManager.attach(imgui); ... }
Configuration: jME 3.9.0-stable + GLFW + OPENGL_32
public static void main(String[] args) { TestImGuiApplication app = new TestImGuiApplication(); AppSettings settings = new AppSettings(true); settings.setRenderer(AppSettings.LWJGL_OPENGL32); app.setSettings(settings); ... }
@Override public void simpleInitApp() { boolean useGlfwBackend = true; // use Backend GLFW ImGuiAppState imgui = new ImGuiAppState(useGlfwBackend); stateManager.attach(imgui); ... }
Discussion in the ATmosphere