How to Capture Rendered Bevy Frames and send to Webrtc #10767
Replies: 4 comments 9 replies
-
Depends on what you want to do, but you can take screenshots inside bevy: https://docs.rs/bevy/latest/bevy/render/view/window/screenshot/struct.ScreenshotManager.html. |
Beta Was this translation helpful? Give feedback.
-
You can set the There's an example that shows how to use this to render the camera to a cube's texture: https://github.com/bevyengine/bevy/blob/main/examples/3d/render_to_texture.rs#L105 Another useful thing to know is that you can use |
Beta Was this translation helpful? Give feedback.
-
@ShadowMitia @paul-hansen . It seems that the bevy_renderer is tied to the window being available. Hey @cart , is bevy_renderer tightly coupled with bevy_renderer ? I'm trying to run bevy headlessly on a server and stream the Is there a way to walk around this or would using a custom render loop like be a better solution? i.e https://github.com/hakolao/bevy_vulkano |
Beta Was this translation helpful? Give feedback.
-
Figured it out. Thanks @ShadowMitia @paul-hansen |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone,
New Bevy Engine user here : ) !
How do i capture the Bevy's rendered frames? I know there's a bevy_renderer plugin but I can I access frames like this ?
https://github.com/cs50victor/kitt2/blob/main/lkgpt/src/main.rs#L2892
I'm currently capturing image frames from a custom vulkan renderer ^ .
Beta Was this translation helpful? Give feedback.
All reactions