pyopengl Questions

3

Solved

I need a glut window in python. I have the following exception using Python 3.5 and PyOpenGL.GLUT Traceback (most recent call last): File "D:\...\Test.py", line 47, in <module> if __name_...
Spittoon asked 27/8, 2016 at 12:34

5

Is there a cross platform way to get the monitor's refresh rate in python (2.6)? I'm using Pygame and PyOpenGL, if that helps. I don't need to change the refresh rate, I just need to know what it ...
Rosanarosane asked 3/8, 2009 at 23:7

14

I am running Anaconda Python 2.7 on a Win7 x64 machine and used pip install PyOpenGL PyOpenGL_accelerate at the Anaconda command line to install PyOpenGL. I have some code (not my own I must c...
Amero asked 2/11, 2014 at 15:4

8

Solved

I saw the same question, but it didn't work for me. pip install PyOpenGL.3.1.1-cp34-cp34m-win_amd64.whl I also have the same problem for NumPy: pip install numpy-1.11.1+mkl-cp34-cp34m-win_amd64.wh...
Chambliss asked 10/8, 2016 at 7:24

5

Solved

I am using OpenGL to render a scene in python. My code works perfectly fine on windows but, for some reason, I'm having issues when importing opengl.gl on MacOS. The issue arises when calling from ...
Evaleen asked 18/8, 2020 at 19:30

1

Solved

I'm following this very easy guide in order to make my first steps into PyOpenGL. I installed pip install PyOpenGL PyOpenGL_accelerate , all good. I tested the installation through the test code:...

1

Solved

I am working on a project and I need to use texture arrays to apply textures. I have asked many questions about this, none of which I got an answer I was completely satisfied with (Get access to la...
Remsen asked 29/9, 2020 at 15:8

1

Solved

I was trying to texture a cube in PyOpenGL when I ran into an issue. PyOpenGL only supports 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES. I need at least version 1.40 because in 1.40 layout was introduce...
Kilimanjaro asked 18/9, 2020 at 17:16

1

Solved

I have a 2d pygame water simulation thingy that I followed a tutorial to make. I also found the answer to this question to fix issues with the tutorial: Pygame water physics not working as intended...
Elka asked 3/9, 2020 at 22:59

3

Solved

I want to use glClear and glClearColor to fill a frame buffer with a colour including alpha transparency. However the framebuffer always renders as opaque when binded to a texture which is rendered...
Esparza asked 21/1, 2010 at 20:48

2

Solved

I am learning PyOpenGL and use it in PyQt5 application. I am trying to convert some of my old simple examples from C++/Qt to Python. The following example should draw white triangle on black backgr...
Hemihedral asked 27/6, 2017 at 13:13

2

I'm trying to start with OpenGL, using Python and PyGame. I'm going to use PyGame instead of GLUT to do all the initializing, windows opening, input handling, etc. However, my shaders are failing...
Slot asked 29/7, 2016 at 17:38

1

Solved

I am creating a first-person view RPG and I want to rotate the camera in PyOpenGL when I move the mouse (just like some other games like Minecraft). What function can I use to do this and how? I t...
Monet asked 15/6, 2019 at 9:18

3

Solved

I'm using PyOpenGL+glfw for rendering. When trying to do the same on a headless machine (e.g a server) glfw.init() fails: glfw.GLFWError: (65544) b'X11: The DISPLAY environment variable is missin...
Bucovina asked 1/2, 2019 at 16:59

2

I want to create a PyOpenGL/QtOpenGL widget that will allow me to visualize an arbitrary NumPy 3D matrix, not unlike the following Hinton diagram envisioned as a "cube of cubes" instead of a "squar...
Babineaux asked 6/8, 2013 at 16:31

1

Solved

I need to render some scene. I managed to do it in python using pyopengl and pygame. The problem is that it creates a window for a short period of time. I want to render the same image and save it...
Muskogee asked 1/8, 2018 at 7:26

1

Solved

from OpenGL.extensions import alternate from OpenGL.GL import * from OpenGL.GL.ARB.multitexture import * from OpenGL.GLU import * from OpenGL.GLUT import * class TestTexture(): def __init__(sel...
Ethelyn asked 18/4, 2017 at 17:12

2

Solved

The title is the main question here. I had some PyOpenGL code I was running on my computer, which was running somewhat slow. I realized I hadn't installed PyOpenGL-accelerate. This didn't change th...
Whidah asked 10/4, 2017 at 21:47

1

Solved

I want to use Python PyOpenGL for generating a scene of three spheres. Two on the side with color (red and green). Middle one with any texture on it (bricks texture which is actually square jpg fil...
Ladd asked 23/3, 2017 at 20:52

1

Solved

I tried everything but still I don't get my error. I am trying to put a texture on my sphere object. """ Minimal texture on sphere demo This is demo for showing how to put image on sphere as textu...
Avian asked 26/3, 2017 at 19:41

2

Solved

I just installed it with apt-get on debian linux with apt-get install libqt4-opengl the rest of PyQt4 is available, but I cant get to this new module. from PyQt4 import QtOpenGL raises Import...
Tennessee asked 14/9, 2009 at 4:15

5

Solved

The context: my Python code pass arrays of 2D vertices to OpenGL. I tested 2 approaches, one with ctypes, the other with struct, the latter being more than twice faster. from random import random...
Rhinencephalon asked 11/11, 2010 at 16:48

9

Solved

I am looking to do some tinkering with openGL and Python and haven't been able to find good reasons for using PyOpenGl versus pyglet Which would you recommend and why?
Sybilla asked 11/11, 2008 at 3:17

2

Solved

I am not sure how to get from screen coordinates to world coordinates. I am using VisPy and I would like to implement ray tracing and picking ability in 3D. I prepared some code based on a cube ex...
Delly asked 26/11, 2015 at 15:57

2

Solved

I would like to use Qt and PyOpenGL to do some real time plotting and learn a bit about OpenGL, but am having trouble even getting my initail test data to show up. The idea is to store the x-coord...
Gennygeno asked 3/11, 2015 at 17:42

© 2022 - 2025 — McMap. All rights reserved.