Comments (4)
@cxreiff Done
from bevy.
The AppConfig struct is where I started, I just decreased the width by one, e.g. on line 68-72:
let config = AppConfig {
width: 1919,
height: 1080,
single_image: true,
};
...which results in the 45° skewed image (second screenshot). I also tried adding 4, 8, 16, and 32 to the width to see if that worked, and it didn't- but just now I tried adding 64 (1952x1080) and it worked! So it seems that the width has to be multiples of 64. It wouldn't be a problem for most fixed resolutions but for my use case a user might resize it to anything.
from bevy.
If found the root of problem. That is in copying from image to buffer, because copy_texture_to_buffer can copy image only by rows aligned wgpu::COPY_BYTES_PER_ROW_ALIGNMENT. That is why image in buffer can be little bit wider. I will fix copying from buffer to resulting image.
from bevy.
Oh great! I tried digging but wgpu calls are a bit beyond me at the moment. Thanks for your help!
from bevy.
Related Issues (20)
- Add a `TimedCommands` `SystemParam` for easier delayed operations HOT 5
- Add support for letterboxing HOT 4
- Remove `StateTransition` schedule in favor of using observers HOT 5
- different wgpu_backend render total different with the same gltf model HOT 4
- When using multiple canvas, an error is displayed
- Implement `Component` for `Arc` HOT 5
- Border radius is scaled incorrectly HOT 2
- non-root `TargetCamera`s are not ignored HOT 1
- Resource doesn't get dropped on panic in system. Is this expected? HOT 4
- uberbuffers selects single mesh when two are added HOT 1
- Instance example magically inherits transform information of a random entity if any number of new pbr bundles is spawned HOT 3
- ImageAddressMode::Repeat "twitchy" texture rendering
- overflow evaluating the requirement &_: IntoIterator HOT 1
- Don't use `CARGO_MANIFEST_DIR` directly for changing the relative location of the assets directory
- bevy_ptr: unused align_of import in release mode
- overlapping viewport from different camera causes over-culling of entity rendering HOT 2
- Make `reflect::Map::drain` and `reflect::List::drain` take a mutable borrow instead of `Box<Self>`.
- Reflect derived traits on all components and resources HOT 6
- Mention `DynamicTyped` in docs
- On Steam Deck in gaming mode the screen does not update
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bevy.