commander-lol / bevy_capture_media Goto Github PK
View Code? Open in Web Editor NEWEvent based image & video capture for Bevy
License: Apache License 2.0
Event based image & video capture for Bevy
License: Apache License 2.0
MediaCapture
abstracts over the need to manage any of the internals of how bevy_media_capture
works. This also means it isn't easy / obvious to figure out how to get the raw frame data being stored.
Consider adding some methods to make this a first-class function (and to provide more utility with all encoding formats disabled).
Possible ideas:
get_last_frame
and take_last_frame
- for getting a clone of the most recently captured frame, or popping it from the stack and taking it, respectively
get_stored_frames
and take_stored_frames
- for getting a clone of the stored frames, or taking sole ownership of the stored frames, respectively
Camera tracking currently only happens for cameras with an OrthographcProjection
, but should at least support PerspectiveProjection
as well.
Making systems generic over impl CameraProjection
would go a long way to solving this. Trackers would need some way of identifying the type of camera they're tracking, so that they can retrieve the correct component when syncing.
Supporting custom projections is out of scope right now, but a solution should keep in mind the desire to support custom projections in future
I'm not sure if I'm doing anything wrong, but even just adding mut capture: bevy_capture_media::MediaCapture
to a startup system in my game causes it to immediately crash wish this error: (on bevy 0.8.1)
thread 'main' panicked at 'wgpu error: Validation Error
Caused by:
In a RenderPass
note: encoder = `<CommandBuffer-(0, 2, Vulkan)>`
In a pass parameter
note: command buffer = `<CommandBuffer-(0, 2, Vulkan)>`
attachments have differing sizes: ("color", Extent3d { width: 2180, height: 1226, depth_or_array_layers: 1 }) is followed by ("resolve", Extent3d { width: 1920, height: 1079, depth_or_array_layers: 1 })
Hi. Thanks for making this - it's exactly what I needed.
Any chance of making it compatible with Bevy 0.9.1 - I've had a go over here and it seems to be working (everything compiles and the the basic_orthographic
example is taking screenshots) but I can't guarantee I've got everything right.
Thanks, Mark
Trackers currently mimic the transform and projection of the camera they track, but the backing Handle<Image>
does not get resized. This means that any trackers are locked to the size they were when created
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.