Closed stephengold closed 11 months ago
This might be related to PR #1492.
I reproduced the issue in current "master" branch. Here's a minimal test app. Turning the scroll wheel on the mouse triggers the crash.
import com.jme3.app.SimpleApplication;
public class TestIssue2078 extends SimpleApplication {
public static void main(String[] args) {
new TestIssue2078().start();
}
@Override
public void simpleInitApp() {
cam.setParallelProjection(true);
}
}
I verified that this issue appeared between JME v3.3.2-stable and JME v3.4.0-stable . That's consistent with PR #1492 being the cause.
A crash that's easy to reproduce using
FlyByCamera
on a non-perspective camera in JMonkeyEngine v3.6.1-stable:An easy fix would be for
FlyByCamera
to zoom only when the camera is in perspective mode. Another approach would be to implement zoom differently when the camera is in orthogonal mode.