Skip to content

2D screen coordinates broken after updating to 3.8.0-stable #2472

@Ivan1pl

Description

@Ivan1pl

When using fullscreen mode, coordinates in 3.8.0 are shifted. These are the settings I am using for the application:

        AppSettings settings = new AppSettings(true);
        settings.setHeight(1080);
        settings.setWidth(1920);
        settings.setFullscreen(true);

I'm adding a blue quad that should be fully outside of the screen:

        Quad rectangleMesh = new Quad(100, 100);
        Spatial geometry = new Geometry("Rectangle", rectangleMesh).move(0, 1080, 0);
        Material material = new Material(assetManager,"Common/MatDefs/Misc/Unshaded.j3md");
        material.setColor("Color", ColorRGBA.fromRGBA255(0, 64, 128, 128));
        geometry.setMaterial(material);
        getGuiNode().attachChild(geometry);

The first screenshot is from 3.7.0:

Image

The second screenshot is from 3.8.0:

Image

Notice that part of the quad is visible in the top left corner of the screen, and the framerate is cut off at the bottom.

I am using Linux with Wayland as display server protocol.

Everything is fine when using windowed mode. However, I noticed that 3.8.0 uses a custom tile bar. Past experiences tell me that this might be the culprit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions