Questions tagged [vispy]

Vispy is a high-performance interactive 2D/3D data visualization library. Vispy uses the OpenGL library to access the power of modern GPUs to display very large datasets.

Vispy is a high-performance interactive 2D/3D data visualization library. Vispy uses the OpenGL library to access the computational power of modern Graphics Processing Units (GPUs) to display very large datasets. Vispy can be used for:

  • High-quality interactive scientific plots with millions of points.
  • Direct visualization of real-time data.
  • Fast interactive visualization of 3D models (meshes, volume rendering).
  • OpenGL visualization demos.
  • Scientific GUIs with fast, scalable visualization widgets (Qt or IPython notebook with WebGL).

References:

132 questions
1
vote
1 answer

qml doesn't work with vispy

In the process of studying Qt and Qt, Quick encountered a very interesting problem. I wanted to add to my application a widget on which something would be rendered using an OpenGl. I found a small example using vispy and decided to try it. And then…
v_sith_v
  • 109
  • 1
  • 1
  • 7
1
vote
1 answer

Visualizing an isosurface generated with marching cubes

I'm currently using OpenGL (more specifically through the VisPy bindings) to do some scientific data visualization. I have a volumetric dataset, and I would like to visualize some isosurfaces present inside of it. I generate the isosurfaces using…
The Wind-Up Bird
  • 661
  • 2
  • 8
  • 17
1
vote
1 answer

How to use Vispy to rotate cube in three dimensions

How do you use Vispy to rotate a cube in three dimensions (roll, pitch, yaw)? There's an example for rotating a cube in two dimensions here, but I'm not sure how to extend it to rotate in the third dimension. I think I need to modify the on_timer()…
Cerin
  • 60,957
  • 96
  • 316
  • 522
1
vote
1 answer

Display image in Grayscale using vispy

i'm working with a spatial light modulator (SLM) which is connected as a second monbitor. The SLM has tzo recive 8-bit grayscale images. I am currently working with vispy to display the images on the SLM, but i'm not shore if they are diplayed…
stanissse
  • 13
  • 4
1
vote
1 answer

add ambient light to vispy scene

I am trying to add ambient light to vispy mesh. Here is the code that I am using to render a triangulated mesh. meshdata = vispy.geometry.MeshData(vertices=r.vertices, faces=r.faces, vertex_colors=r.vColor) canvas =…
AnandJ
  • 346
  • 4
  • 15
1
vote
1 answer

Get view direction relative to scene in vispy?

What is the cleanest way to get the view direction relative to your scene in vispy? view.scene.transform contains a whole chain of transforms: In [88]: view.scene.transform Out[88]:
Andrew Wagner
  • 22,677
  • 21
  • 86
  • 100
1
vote
1 answer

Using Visuals with gloo shader programs in Vispy

I'm trying to overlay some TextVisuals over my scene, but I'm having trouble getting everything to show properly. Here is my code which is slightlty modified from the vispy example here import numpy as np from vispy import app, gloo, visuals from…
Odingod
  • 67
  • 6
1
vote
1 answer

How to make my python animation smooth?

I 'm using vispy to generate the 3D sea surface.But it's not very smooth.I don't know which part I should improve.Can anyone tell me? Here is the code: from numpy import linspace,zeros,sin,pi,exp,sqrt from vispy import app,scene import sys from…
Richard.L
  • 139
  • 3
  • 14
1
vote
1 answer

Deleting lines in VisPy

How can one delete visuals(e.g. lines) from a PlotWidget? I have tried explicitly removing a Line from everywhere the PlotWidget adds the Line object when you call plot(), but this does not change anything on the displayed canvas.
Max Kanwal
  • 61
  • 6
1
vote
2 answers

Getting VisPy's MPL_plot to work

I'm relatively new to Python and all the wonders contained within, and I'm attempting to create a program that is able to display a lot of data points in 3D. The problem is, going through the traditional route with matplotlib is very slow, rotating…
NGXII
  • 407
  • 2
  • 9
  • 18
1
vote
1 answer

voxel representation of neural image data using vispy

I have fluorescence imaging data of the neurons of the brain, which is basically a 3D image defined by its voxels. I would like to display it using vispy to show the depth and be able to rotate and view the data from all directions. I don't want a…
Chits
  • 23
  • 1
  • 4
1
vote
2 answers

3D image segmentation and tracking algorithm for neural data

I am trying to implement a 3D segmentation and tracking algorithm of neuron/axon data from fluorescence imaging. I looked into Watershed algorithm, active contours, OTSU thresholding but am unable to make a decision on which algorithm to go for.…
Chits
  • 23
  • 1
  • 4
1
vote
1 answer

Axes missing when plotting in matplotlib using vispy as backend

I have been watching the development of the python graphing library vispy with excitement. I just discovered that I can use vispy as a backend to matplotlib, which is great because I am plotting hundreds of thousands of points. I ran the example…
Kyle Ellefsen
  • 73
  • 1
  • 8
1
vote
1 answer

pyqtgraph : Multiple colors in PyQtGraph

Can I plot multiple channels with different colors in pyqtgraph with ArrayToQPath? path = pg.arrayToQPath(xdata.flatten(), ydata.flatten(), conn.flatten()) item = QtGui.QGraphicsPathItem(path) item.setPen(pg.mkPen('w')) plt.addItem(item)
0
votes
0 answers

How to get the event when the mouse is hovering an isosurface in vispy?

I'm trying to get an event when my mouse is hovering an isosurface in a vispy scene (the goal is to display a text next to this isosurface). Here's my code: import sys from vispy import scene from vispy.scene.visuals import Text canvas =…
Jonjon
  • 1
1 2 3
8 9