Christopher Angell
Christopher Angell

Reputation: 51

Is there a way to get access to the camera buffer in Bevy?

I would like to get access to the camera buffer and pipe and that out to a machine learning application, but am having trouble figuring it out. Apparently camera_node.rs and particularly camera_node_system contain the buffer, but how would I get access to this in a different system? Sorry I am new to Bevy, so not sure if I could just pipe this out to an intermediate variable and re-use that, or if this is basically impossible in the Bevy framework.

I suppose I could co-opt the camera_node_system and put the code I need in there but that is neither elegant nor scales well.

Upvotes: 2

Views: 401

Answers (1)

Jack
Jack

Reputation: 2285

Please take this with a grain of salt, as I too am very new to Bevy, but I suspect this is enabled by way of a recent commit entitled "Add support for reading from mapped buffers"

I am still working my way through this, and will add to this answer as I learn more. Meanwhile, please feel free to add to, or supplant altogether this incomplete answer.

Upvotes: 0

Related Questions