amethyst / rendy

State of the art "build your own engine" kit powered by gfx-hal
Other
814 stars 99 forks source link

Resizing window examples #54

Open Slabity opened 5 years ago

Slabity commented 5 years ago

Currently, all the provided examples fail to handle resizing or recreation of the Window. It would be useful to have an example that shows the proper way of recreating the swapchain.

zakarumych commented 5 years ago

Window resizing should be supported by Graph. But design is incomplete yet. Before that we can use half-solution - resize swapchain and scale to it. Complete solution should also be able to resize all render targets that must match size of swapchain images.

skyne98 commented 5 years ago

Hey there, any news on the examples yet? It looks like https://github.com/amethyst/rendy/pull/79 should have solved the existing issues making this impractical.

zakarumych commented 5 years ago

Examples still don't recreate graph's transient images so after resizing rendering still happens with same resolution and then presentation node scales rendering result to match window size.

tealsnow commented 4 years ago

Any news on this, I'm at a complete loss on how to handle window resizing.

zakarumych commented 4 years ago

Any news on this, I'm at a complete loss on how to handle window resizing.

If you use render graph, then the easiest way is to recreate it on window resize.

Note that Rendy is not maintained by anyone at the moment, so if you're just starting I'd suggest to use an active project instead.

zicklag commented 4 years ago

I'd suggest to use an active project instead.

@8bitkitkat WGPU is a great project to get started with for new Rust graphics development.

zakarumych commented 4 years ago

WGPU is a great project

True. I use it myself as one of the backends in rendy successor.