You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe I missed it, if so, I am sorry, because I tried searching the discord for quite some time now, to no avail.
So, I am trying to migrate to bevy 0.17 and the tilemap code. I had a look at https://github.com/bevyengine/bevy/blob/main/examples/2d/tilemap_chunk.rs (this works fine). Now I don't have an "Array Texture" but a "normal texture atlas" and I am trying everything, but I can't get this to work
wgpu error: Validation Error
Caused by:
In Device::create_bind_group, label = 'TilemapChunkMaterial'
Texture binding 0 expects dimension = D2Array, but given a view with dimension = D2
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `bevy_render::render_asset::prepare_assets<bevy_sprite::mesh2d::material::PreparedMaterial2d<bevy_sprite::tilemap_chunk::tilemap_chunk_material::TilemapChunkMaterial>>`!
any hints appreciated!
I understand the error, I just don't see how https://dev-docs.bevy.org/src/bevy_image/image.rs.html#1012 does stuff differently. Or rather: I don't see my error... I tried with any value but 0 and 1 for the division and layers and then it "runs", it's just totally distorted :/
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
Maybe I missed it, if so, I am sorry, because I tried searching the discord for quite some time now, to no avail.
So, I am trying to migrate to bevy 0.17 and the tilemap code. I had a look at https://github.com/bevyengine/bevy/blob/main/examples/2d/tilemap_chunk.rs (this works fine). Now I don't have an "Array Texture" but a "normal texture atlas" and I am trying everything, but I can't get this to work
(I know that division by 1 is useless ;D).
I always get
any hints appreciated!
I understand the error, I just don't see how https://dev-docs.bevy.org/src/bevy_image/image.rs.html#1012 does stuff differently. Or rather: I don't see my error... I tried with any value but 0 and 1 for the division and layers and then it "runs", it's just totally distorted :/
Beta Was this translation helpful? Give feedback.
All reactions