stevenlovegrove / Pangolin

Pangolin is a lightweight portable rapid development library for managing OpenGL display / interaction and abstracting video input.
MIT License
2.29k stars 836 forks source link

Some assistance appreciated for writing a new pango_video driver #883

Open crosswick opened 11 months ago

crosswick commented 11 months ago

Hi all - I'd like to get my Revopoint POP3 3D scanner/camera working as a pango_video input.

This is their example project, which is linked against their closed-source library: https://github.com/Revopoint/3DViewer/

In terms of making a pango_video driver, I've first successfully gotten the realsense2 driver working on macOS arm64 with an Intel Realsense D405 camera, testing with ./VideoViewer realsense2://

Searching both that repo and the Pangolin one for "memcpy", I think writing a driver may come down to somehow modifying Pangolin/components/pango_video/src/drivers/realsense2.cpp with functions and libraries found in 3DViewer/src/cscamera/cscamera.cpp

It's not that I'm stuck atm per se - I would just appreciate it if anyone could give me an idea whether this is a good approach, thanks.

stevenlovegrove commented 4 months ago

Again, my apologies for only now responding. For anyone else that sees this, the 'test' driver is the most minimal Pangolin video driver example (VideoViewer "test://"):

https://github.com/stevenlovegrove/Pangolin/blob/master/components/pango_video/include/pangolin/video/drivers/test.h https://github.com/stevenlovegrove/Pangolin/blob/master/components/pango_video/src/drivers/test.cpp

The main components are: