Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clipping and Distortion on UI Images with Transforms #5294

Open
Runi-c opened this issue Jul 12, 2022 · 0 comments
Open

Clipping and Distortion on UI Images with Transforms #5294

Runi-c opened this issue Jul 12, 2022 · 0 comments
Labels
A-Rendering Drawing game state to the screen A-UI Graphical user interfaces, styles, layouts, and widgets C-Bug An unexpected or incorrect behavior

Comments

@Runi-c
Copy link

Runi-c commented Jul 12, 2022

Bevy version

0.7

Relevant system information

AdapterInfo { name: "NVIDIA GeForce RTX 3070", vendor: 4318, device: 9348, device_type: DiscreteGpu, backend: Vulkan }

What you did

    commands.spawn_bundle(UiCameraBundle::default());
    commands.spawn_bundle(ImageBundle {
        style: Style {
            size: Size::new(Val::Px(500.0), Val::Px(500.0)),
            ..default()
        },
        image: asset_server.load("branding/bevy_logo_dark_big.png").into(),
        transform: Transform::from_rotation(Quat::from_rotation_x(1.0)),
        ..default()
    });

What went wrong

The UI image renders with clipping, or if rotated around other axes, with distortion.

Additional information

transform: Transform::from_rotation(Quat::from_rotation_x(1.0)),
image

transform: Transform::from_rotation(Quat::from_rotation_y(1.0)),
image

transform: Transform::from_rotation(Quat::from_rotation_z(1.0)),
image

@Runi-c Runi-c added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Jul 12, 2022
@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen A-UI Graphical user interfaces, styles, layouts, and widgets and removed S-Needs-Triage This issue needs to be labelled labels Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen A-UI Graphical user interfaces, styles, layouts, and widgets C-Bug An unexpected or incorrect behavior
Projects
None yet
Development

No branches or pull requests

2 participants