Replies: 2 comments 3 replies
-
Hello @jhoydis, as you suggested in our discussion last week, I wrote a small Python library, The library is quite minimal, but should correctly support all the features from the current previewer, and provides a nice context-based mechanism to patch the pythreejs previewer with the VisPy one. |
Beta Was this translation helpful? Give feedback.
2 replies
-
very cool, It`s very useful, thanks very much |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Note
Edit: as maintaining a second preview backend would require a lot of extra work from the Sionna team, I developed a minimal, but fully compatible, separate package,
sionna-vispy
, that can be imported to use VisPy instead of pythreejs viewer.Hi everyone!
This is a late follow-up of #219. After playing a bit myself with the different plotting libraries, I found VisPy
to be a great solution for previewing large and complex scenes,
while offerings a nice high-level API.
Currently, it looks like the only supported previewer is PyThreeJS. While it produces a beautiful and interactive canvas, the main issue (to me) is that it does not work outside interactive environments (like Notebooks).
This constraint makes it hard to:
VisPy has the following nice advantages:
But also some disadvantages:
Further questions
If you think this could be a great fit for this project, I'd be happy to help to implement
a VisPy version of
scene.preview
.However, a few questions should be answered first:
InteractiveDisplay
to support multiple backends, or should we create another, separate, method for plotting with VisPy? In my opinion, the first solution allows reusing a lot of code, and makes it more transparent to the user.VisPy
as a direct dependency, or as an "extra"?jupyter-rfb
backend, that is only used inside notebooks?Example
The following example code shows how to preview the scene from the Ray Tracing tutorial.
The code for
plot_scene
is a slightly modified version ofsionna/sionna/rt/previewer.py
Lines 201 to 244 in 2cb12fd
self._plot_mesh
is replaced with VisPy code.You can find the full code below:
Beta Was this translation helpful? Give feedback.
All reactions