leadedge / Spout2

A video frame sharing system for Microsoft Windows
BSD 2-Clause "Simplified" License
760 stars 138 forks source link

Use SendImage without using OF, Cinder, etc. #88

Closed tschnz closed 1 year ago

tschnz commented 1 year ago

Hey I want to write a minimalist C++ app that grabs images from a cam and sends them via Spout. When I try to send my unsigned char pixel buffer via SendImage it just returns false. I guess I'm missing libraries that make texture sharing work?

The Demo Receiver correctly recognizes the width and height, but doesn't receive a single image.

Help or a repo that utilizes Spout2 in a minimal approach would be awesome, I didn't find one after excessive googling.

leadedge commented 1 year ago

Probably the best idea is to use DirectX with "SpoutDX".

The Windows sender example should get you started.

tschnz commented 1 year ago

Thanks for pointing me there!