Giter Site home page Giter Site logo

bevy_capture_media's Introduction

Hey

I write a lot of code; mostly in Node.js and Rust, other languages when required. I run an environmental tech company, working on tracking plastics. I also build games, mentor developers, make art, bake things, and make parody YouTube content.


Projects

Most of my projects live on https://lab.lcr.gr

Web Games:

Game Dev Libraries:

Misc Tools:

  • ๐Ÿ–ผ๏ธ Crunch - Reproducable image manipulation piplines: transform, crop, recolour images
  • ๐ŸŒ Flit - Templated HTML transforms to run after your site generator does its thing

bevy_capture_media's People

Contributors

commander-lol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bevy_capture_media's Issues

Expose Raw Frame Buffers

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

Support `PerspectiveProjection`

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

Bevy 0.9.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

Track Target Resizing

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

`attachments have differing sizes` crash

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 })

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.