zeno icon indicating copy to clipboard operation
zeno copied to clipboard

[Question] How to use Z{f(x)} (runtime execution engine) without the UI or Editor?

Open KrishnaPG opened this issue 4 years ago • 3 comments

This project looks great. Is there a way the backend runtime (the node-graph execution engine) can be embedded in other C++ applications?

For example, let us say a node-graph (sequence of nodes) is created and saved as a file using the Zeno UI/Editor. Would like some other application to load that saved node-graph file and run it (by instantiating it with input params/data retrieved from network or database).

It seems the Zeno is built as a library (.lib file) - but it is not clear how to embed the runtime into other C++ applications and launch the node-graph runner.

Is there any example that demonstrates this? i.e. embedding the runtime engine in external applications (without having to use the UI/Editor). It would be of great help. Thank you.

KrishnaPG avatar Dec 09 '21 03:12 KrishnaPG

Of course! See: https://github.com/zenustech/zeno_embed_demo It runs without Python and Qt, directly in an OpenGL application. It uses the exported json-alike file my_zeno_scene.h, which can be exported in File -> Export. You may need to use the commit at external/zeno since it's been long not updated though. We also succeed in embedding it into an Android application too, although it's not open-source yet.

archibate avatar Dec 09 '21 03:12 archibate

Thank you @archibate

Unfortunately encountering many build errors due to C++17 not having std::unary_function etc.

image

Trying to build on Win10 with Visual Studio

KrishnaPG avatar Dec 09 '21 07:12 KrishnaPG

Hi Gopalakrishna if you can provide a teamview like mechanism to us, or if you use linux system, Our team are super happy to help you build system and examples!

thanks

On Thu, Dec 9, 2021 at 3:23 PM Gopalakrishna Palem @.***> wrote:

Thank you @archibate https://github.com/archibate

Unfortunately encountering many build errors due to C++17 not having std::unary_function etc.

[image: image] https://user-images.githubusercontent.com/4610831/145351864-a5f6f74f-051b-4a9d-bc29-a87d9c2091f5.png

Trying to build on Win10 with Visual Studio

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zenustech/zeno/issues/252#issuecomment-989582862, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC5IJS7FXL3HO56DMAFJXRLUQBKN3ANCNFSM5JVMICQA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

zhxx1987 avatar Dec 09 '21 10:12 zhxx1987