Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
KrishnaPG opened this issue Dec 9, 2021 · 3 comments
Labels
question Further information is requested

Comments

@KrishnaPG
Copy link

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 KrishnaPG added the question Further information is requested label Dec 9, 2021
@archibate
Copy link

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.

@KrishnaPG
Copy link
Author

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

@zhxx1987
Copy link
Collaborator

zhxx1987 commented Dec 9, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants