hello everybody ,I use ChaseCamera ,The mouse to click the swing interface to operate.When I click on JME pictures occasionally unable to get focus, camera, move the mouse can’t hide
Switch from swing focus to JME focus, need to click the mouse to enter many times focus on JME canvas.
Running on jMonkeyEngine 3.0.10 swing focus into the JME focus only need to click once
My game has a very complicated swing entity management system that uses AWTPanels everywhere … I am running 3.1-a3 and I have no problems focusing on a swing panel and back to a JME panel.
You do not want to use AWTPanel for more than just preview panels. The way I set up my game is you have a very complex and cool swing app for building, researching, and a ton of things you do outside of flying and blowing things up then under “command center” you have menu options to view in game sectors where the swing app launches a pure JME client for the actual in game stuff. Another problem with AWTPanel is that is does not work with post processing filters like bloom.
Yes I posted about this a few times about a year ago. Bloom swaps out the frame buffer and blows up AWTPanel. AWTPanel will have to be re-written for it to work. Your picture shows a canvas NOT a panel
Nope … it’s STILL broken. No issue on my side. This has been a known bug for at least 1.5 years.
java.lang.IllegalStateException: Why did you change the output framebuffer?
at com.jme3.system.awt.AwtPanel.postFrame(AwtPanel.java:328)
at com.jme3.renderer.RenderManager.renderViewPort(RenderManager.java:1045)
at com.jme3.renderer.RenderManager.render(RenderManager.java:1088)
at com.jme3.app.SimpleApplication.update(SimpleApplication.java:260)
at com.jme3.system.awt.AwtPanelsContext.updateInThread(AwtPanelsContext.java:194)
at com.jme3.system.awt.AwtPanelsContext.access$100(AwtPanelsContext.java:44)
at com.jme3.system.awt.AwtPanelsContext$AwtPanelsListener.update(AwtPanelsContext.java:68)
at com.jme3.system.lwjgl.LwjglOffscreenBuffer.runLoop(LwjglOffscreenBuffer.java:125)
at com.jme3.system.lwjgl.LwjglOffscreenBuffer.run(LwjglOffscreenBuffer.java:156)
at java.lang.Thread.run(Thread.java:745)