Efficient approach of sending data from a .NET based program to a C++ based OpenGL GUI

62 views Asked by At

We're writing a visualization tool of complex 3D geometries of a existing 3D modelling software (A). After some initial experiments, we realized that the A does not have the API for all of our visualization purposes, and we decided to write our own one in c++ with OpenGL as a GUI executable program B, which can be called out from A.

For A (.NET based): We'll write a small plugin for A that can call out B and send geometry data to B.

For B: An OpenGL window (perhaps with simple buttons), called out by A, can receive data from A and visualize it.

For the data: mesh-based or line-based geometric data, million-billion level.

We're aiming for instant feedback, as interactivity is very important for 3D designers. We are considering using WebSocket for the transmission, but not sure if this is the right choice.

We're pretty ignorant when talking about data transmission between programmes. So any experience and thoughts are welcome.

EDIT:

From the comments, it seems TCP is good enough for this task, unless series performance is needed and we can go for memory-mapped files.

The next question then would be, is there any recommendation on TCP libraries?

I did some simple search in the vcpkg package collection and github, it seems some TCP lib are designed to focus on heavy Internet use.

I only need one simple and easy-to-use cpp library for 1-2 client communication between local software, and I'm not sure if there's a difference between the use case.

0

There are 0 answers