vispy

Get view direction relative to scene in vispy?

眉间皱痕 提交于 2019-12-24 16:31:20
问题 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]: <ChainTransform [<STTransform scale=[ 960. -540. 1. 1.] translate=[ 960. 540. 0. 0.] at 0x139757309901840>, MatrixTransform(matrix=[[26.44507, 0.0, 0.0, 0.0], [0.0, 47.013458, 0.0, 0.0], [0.0, 0.0, -1e-06, 0.0], [-0.0, -0.0, -0.0, 1.0]] at 0x7f1bc8d526d0), <Inverse of '<ChainTransform [MatrixTransform(matrix=[[0

Display image in Grayscale using vispy

半城伤御伤魂 提交于 2019-12-24 08:14:02
问题 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 correctly. Is there any possibility to display an image on grayscale using vispy? I disply the images using this code import sys from vispy import scene from vispy import app import numpy as np canvas = scene.SceneCanvas(keys='interactive') canvas.size

How do I display real-time graphs in a simple UI for a python program?

半城伤御伤魂 提交于 2019-12-20 10:36:09
问题 I have a complicated algorithm that updates 3 histograms that are stored in arrays. I want to debug my algorithm, so I was thinking of showing the arrays as histograms in a user interface. What is the easiest way to do this. (Rapid application development is more important than optimized code.) I have some experience with Qt (in C++) and some experience with matplotlib. (I'm going to leave this question open for a day or two because it's hard for me to evaluate the solutions without a lot

How can i import OpenGL in anaconda python?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 15:12:15
问题 I use ipython notebook on anaconda python but i have no idea how to install or import opengl. Can anyone help me solve this ? I use anaconda on linux xubuntu. Sorry for bad english. 回答1: As pointed out by David, Vispy provides OpenGL bindings for OpenGL ES 2.0. More interesting about vispy is vispy.gloo which provides a much easier (object oriented) way to use OpenGL. If you need full desktop OpenGL functionality (not limited to ES 2.0), you need PyOpenGL. I think that currently it is

How do I display real-time graphs in a simple UI for a python program?

天涯浪子 提交于 2019-11-30 05:00:39
I have a complicated algorithm that updates 3 histograms that are stored in arrays. I want to debug my algorithm, so I was thinking of showing the arrays as histograms in a user interface. What is the easiest way to do this. (Rapid application development is more important than optimized code.) I have some experience with Qt (in C++) and some experience with matplotlib. (I'm going to leave this question open for a day or two because it's hard for me to evaluate the solutions without a lot more experience that I don't have. Hopefully, the community's votes will help choose the best answer.)