petrikvladimir / pyphysx

Python Wrapper for Nvidia PhysX simulator.
GNU General Public License v3.0
102 stars 20 forks source link

Vispy Renderer #72

Open MosGeo opened 1 year ago

MosGeo commented 1 year ago

New person here and I am just starting to explore the project.

I am wondering if it would be possible to use pyphysx with vispy (https://github.com/vispy/vispy). Would another renderer implementation need to be written inheriting from render_base?

Rational:

Vispy is now being used by napari (viewer/platform), https://github.com/Napari/napari, which allows for developers to easily extend it and develop plugins. So allowing pyphysx to run in vispy/napari would open up lots of new opportunity and cases for usage.

petrikvladimir commented 1 year ago

Hi @MosGeo , I have no experience with vispy, but from PyPhysX point of you, you just need to inherit from render_base and implement all abstract methods. For the example, it is best to have a look at meshcat_render.py.

Once implemented, it will just require modifying code from render = PyPhysxViewer() to the instance of the implemented class.

Best, Vladimir