fpv-wtf / margerine

It's not butter, but it's root.
MIT License
205 stars 30 forks source link

Lua controled video overlay #28

Closed krzysztofkuczek closed 1 year ago

krzysztofkuczek commented 2 years ago

Hi, Do you think that it's possible to implement lua scripting to draw on a video overlay ? There would be great to simply load lua script to sd card, which would utilize telemetry data and draw whatever we want, let say virtual obstacle, augmented reality things, etc... Kris

j005u commented 2 years ago

Sorry for taking a while to respond.

Possible yes, and we've had something like this on our mind for a while. It's not very easy to do well though, at a high update rate.

msp-osd is a good starting point for anyone looking at how to deal with the framebuffer. Lua itself should be fairly easily to integrate, the sticky part is the drawing library.

j005u commented 1 year ago

Closing this issue here as there is now work in progress at https://github.com/fpv-wtf/lua-sandbox