Next Engine release

They are now released into maven central, it might take a few hours to show up on Maven Central Repository Search.

@Pesegato, please try the new release and let me know if you had an issue.

2 Likes

I found an issue with the ScreenshotAppState. Taking one screenshot works but the second time it crashes the app with:

com.jme3.renderer.RendererException: Attempting to upload empty buffer (remaining = 0), that's an error
	at com.jme3.renderer.lwjgl.LwjglRender.checkLimit(LwjglRender.java:22)
	at com.jme3.renderer.lwjgl.LwjglGL.glReadPixels(LwjglGL.java:399)
	at com.jme3.renderer.opengl.GLRenderer.readFrameBufferWithGLFormat(GLRenderer.java:2165)
	at com.jme3.renderer.opengl.GLRenderer.readFrameBuffer(GLRenderer.java:2147)
	at com.jme3.app.state.ScreenshotAppState.postFrame(ScreenshotAppState.java:287)
	at com.jme3.renderer.RenderManager.renderViewPort(RenderManager.java:1233)
	at com.jme3.renderer.RenderManager.render(RenderManager.java:1297)
	at com.jme3.app.SimpleApplication.update(SimpleApplication.java:278)
	at com.jme3.system.lwjgl.LwjglWindow.runLoop(LwjglWindow.java:622)
	at com.jme3.system.lwjgl.LwjglWindow.run(LwjglWindow.java:711)
	at java.lang.Thread.run(Thread.java:748)

The code to reproduce is as simple as:

public class ScreenshotDemo extends SimpleApplication {

  public static void main(String[] args) {
    new ScreenshotDemo().start();
  }

  public ScreenshotDemo() {
    super(new ScreenshotAppState(null, "test-"));
  }

  @Override
  public void simpleInitApp() {
    inputManager.addMapping("ScreenShot", new KeyTrigger(KeyInput.KEY_F12));
  }

}
4 Likes

I bisected the issue to this commit: Fix issue #1850 (JmeSystem.writeImageFile() throw java.nio.BufferUndeā€¦ Ā· jMonkeyEngine/jmonkeyengine@49a3102 Ā· GitHub

5 Likes

@xuan thanks for testing and reporting this issue

Using imageData.duplicate() in the below line fixed the issue for me. Going to submit a patch.

Edit:

Calling imageData.clear(); after the above line also does fix it.

Should I go with the first solution or the second one?

2 Likes

Submitted a fix

4 Likes

Great job! Thanks :smiley:

3 Likes

Yes it works now! :slight_smile:

3 Likes

I hope to release the first beta on 24 January and freeze the code for new features on v3.6 branch.

8 Likes

JME 3.6.0-beta1 is released and is available in the maven central repository. Please try it out and report it if you found an issue.

The master branch is updated to version 3.7 for continuous development.

10 Likes

WARNING: JmeDialogsFactory implementation not found.

Not sure what that means, but we donā€™t have a settings dialog anymore?
For the record, I didnā€™t test the alphas. Jumped from 3.5.2-stable straight into this beta.

2 Likes

We do have it, but it is now in a separate module jme3-awt-dialogs.

You can enable it by adding this dependency:

implementation "org.jmonkeyengine:jme3-awt-dialogs:$jmeVersion"
6 Likes

Nice move. Thanks!

2 Likes
4 Likes

I am planing to cut 3.6.0-beta2 release after PRs 1942 and 1943 merged.

7 Likes

Iā€™ve run 3.6.0-beta1 against the Tamarin testbed examples and they all run fine. So thatā€™s VR using the action based OpenVR LWJGL variant (aka the good one)

3 Likes

I think I may have found a bug, the line width on the material seems to have started to be ignored. Iā€™ve raised a bug setLineWidth calls ignored in 3.6.0-beta1 Ā· Issue #1946 Ā· jMonkeyEngine/jmonkeyengine Ā· GitHub

material.getAdditionalRenderState().setLineWidth(100)

3 Likes

That is a known issue with the OpenGL core profile which is used by default in JME 3.6 Use OpenGL 3.2 as default by riccardobl Ā· Pull Request #1752 Ā· jMonkeyEngine/jmonkeyengine Ā· GitHub

If you switch back to the compatibility profile LineWidth will work.

2 Likes

JME 3.6.0-beta2 is released and is available on Maven Central Repository.

We have various bugfix for the FBX importer thanks to @sgold. Visit our GitHub release page for the detailed changelog

Please try it out in your projects and let us know if you found a bug.

15 Likes

Expect a beta3 release soon.

10 Likes

JME 3.6.0-beta3 is released and is available on Maven Central Repository.

Thanks @Pavl_G, and @yaRnMcDonuts for their contribution.

A special thanks to @Pavl_G for helping with PR reviews. :hugs:

8 Likes