erleben / OpenTissue

OpenTissue is a collection of generic algorithms and data structures for rapid development of interactive modeling and simulation.
http://www.opentissue.org
97 stars 26 forks source link

Create API for visualization engines #17

Open ricortiz opened 4 years ago

ricortiz commented 4 years ago

It would be great if OT can plug to other visualization libraries like VTK, glfw, OSG, etc...

This will require some architecting.

erleben commented 4 years ago

In PROX we replaced GLUT with Qt, Cg with GLSL

https://github.com/diku-dk/PROX

I guess much of this C++ code can be ported into OT? PROX is a descendant of OT.

We played with moving this stuff into python, in the

https://github.com/erleben/pyREES/

The idea was to take all UI stuff out of the library and move it to python. That also included the XML parsing. There is a fun feature in this little code, that allows one to script procedural generated content in XML files using embedded phyton code. There is no real simulation in pyREES, it is more a UI tech study.

More recently we went for Jupyter and pyThree.js as the front-end UI. This is pretty flexible but would require OT to make python wrappers. This was done in libisl (another descendant of OT).

To be honest, the least invasive choice for a first step seems to be GLFW to replace GLUT, which would make fewer changes to OT code.

ricortiz commented 4 years ago

@erleben One thing that comes to mind is that PROX has a different license MIT?, they are compatible licenses but how are you going to deal with that?

erleben commented 4 years ago

@ricortiz I got no clue:-)