How to integrate my app with krita for use

As a 3D software and painting enthusiast, I have developed an app that can generate 3D objects and set multiple angles for display. I hope to combine it with krita or use it as a plugin to expand its use. Currently, I can only export or share images, obj, and fbx files. I hope there can be further extensions. I don’t know if there are any good methods, but who can give me some guidance? Thank you! Attached are several screenshots of the app running in an Android emulator.

One way to make Krita and your program to talk to each other, is by using local sockets.

high level idea …

1. in Krita, plugin creates local server socket, and starts listening random port.
2. in Krita, plugin starts your program in a sub-process. Server sockets port is given as start argument.
3. Your program creates client socket and connects to port, that was given as start argument.
4. At this point you have server <-> client connection, and you can stream data / messages between two programs. (communication protocols are big topic and is left out...)

5. optional: use `shared memory` to quickly transfer big byte arrays (aka. images) between programs. Use socket communication to control who can read / write to `shared memory` (note without read / write control, bad things happen to data) 

/AkiR

Thank you so much for the detailed response! I really appreciate you taking the time to help.
I’ll try out the method you suggested and see how it works with my app. If I run into any issues during implementation, I might come back with more questions.

It would be exciting and rewarding to use my own app in combination with Krita.

Thanks again for the guidance!