I know this question seems a bit out of the realm of jme,But curiosity drove me on.
bgfx_set_view_transform(0, view.get4x4(viewBuf), proj.get(projBuf));
bgfx_set_view_transform(0,cam.getViewMatrix().toFloatBuffer(),cam.getProjectionMatrix().toFloatBuffer());
brief introduction: bgfx_set_view_transform Can accept a view matrix and a projection matrix
cam.setFrustumPerspective(45f, (float) cam.getWidth() / cam.getHeight(), 0.1f, 1000f);
cam.setLocation(new Vector3f(-10f, 0f, 0f));
cam.lookAt(new Vector3f(0f, 0f, 0f), Vector3f.UNIT_Y);
I copied the initialization of the camera from the LegacyApplication class
bgfx_set_view_transform(0,cam.getViewMatrix().toFloatBuffer(),cam.getProjectionMatrix().toFloatBuffer());
But it doesn’t seem to be working so well. Instead of a square, there’s a long bar.
I can’t think of anything else that could go wrong.
Get back to me if you have any thoughts