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)
- Increase default font size HOT 4
- Buttons do not update in color_grading example
- Range<f32> is reflectable but not serializable
- when will this support the mmd? HOT 2
- Docs for RenderLayers still contains mention of `TOTAL_LAYERS`, which doesn't exist
- UI Node's dimensions are incorrectly calculated if camera at first node's update had zero size HOT 1
- `Arc2d` does not implement GizmoPrimitive2d HOT 3
- DynamicScene missing docs for entity_map arg in methods
- CI: Make a check which ensures standalone crates actually are standalone HOT 7
- `Gizmos::arc_2d` uses clockwise angles for some reason HOT 2
- GizmoPrimitiveNd for external primitives
- Raycasting for primitives.
- Warnings about unused manifest key and no specified local path etc.. HOT 3
- Dragging window around is very buggy HOT 4
- Gamepad issue
- Integrated Intel graphics + GL backend crashes 3d scenes HOT 4
- Suggestion: Rename / Extend Condition Trait Methods. HOT 5
- Add a way to run CI on a specific crate
- Add a simple skybox and envmap for use in examples
- Add more query join types (left, right, outer join) HOT 2
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.