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

Resizing camera target image causes stretching #10665

Closed
Shatur opened this issue Nov 20, 2023 · 1 comment
Closed

Resizing camera target image causes stretching #10665

Shatur opened this issue Nov 20, 2023 · 1 comment
Labels
A-Assets Load files from disk to use for things like images, models, and sounds A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior

Comments

@Shatur
Copy link
Contributor

Shatur commented Nov 20, 2023

Bevy version

0.12.0

What you did

I creating an image and use it as camera target to render previews.

What went wrong

But the image becomes stretched, I wouldn't expect it:
image

But there is a workaround - send AssetEvent::Modified event:
image

Additional information

Here is a minimal project to reproduce the problem: assets_render.zip

The logic iterates over all gltf models and loads them for preview. If you comment out lines 90-93 in preview.rs, the image will be stretched.

In some previous version it just crashed, see #5595.

@Shatur Shatur added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Nov 20, 2023
@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen A-Assets Load files from disk to use for things like images, models, and sounds and removed S-Needs-Triage This issue needs to be labelled labels Nov 20, 2023
@Shatur
Copy link
Contributor Author

Shatur commented Jul 18, 2024

Fixed in 0.14 somehow :)

@Shatur Shatur closed this as completed Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Assets Load files from disk to use for things like images, models, and sounds A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior
Projects
None yet
Development

No branches or pull requests

2 participants