Questions tagged [pyopengl]

Python binding to the OpenGL API

PyOpenGL is a cross platform Python binding to OpenGL API, which also supports libraries like the following ones:

This bindings are interoperable with external GUI libraries, such as , and .

It includes a learning library called OpenGLContext, which contains sample code for common operations and it is not needed to work with PyOpenGL.

Resources

945 questions
0
votes
1 answer

OpenGL PyOpenGL Framebuffer object not working: glGenFramebuffers missing

I have two systems with seemingly same OpenGL version and extensions support but Framebuffers don't seem to be working on one of them. A system with the Intel HD 4000 Graphics Card.(FRAMEBUFFER WORKS HERE) Here is the output of glxinfo | grep…
psiyumm
  • 6,437
  • 3
  • 29
  • 50
0
votes
1 answer

pyGame, py2exe and pyOpenGL: No module named platform

So I was trying to make my game in pyGame using pyOpenGL ready for distribution to friends who don't have either pyGame or pyOpenGL - so I ran such script using py2exe: from distutils.core import setup import py2exe …
Straightfw
  • 2,143
  • 5
  • 26
  • 39
0
votes
1 answer

How can I attach a patch.diff-file from sourceforge.net?

I found a patch that will fix a bug in my PyOpenGL-program here. But I have no idea how I can install this patch in arch-linux. Can anyone help me ?
linusfan
  • 1
  • 2
0
votes
1 answer

why glutPostRedisplay has a delay

I'm new to openGL.I wonder why in function Mutate GetPixelDifference() is always called before glutPostRedisplay().And how can I fix it. import sys import time from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * def…
Parus
  • 11
  • 2
0
votes
1 answer

PyVRML97 needs an older version of PyOpenGL

So I set up a virtualenv, with system-site-packages on, called vrmlmol. Inside the vrmlmol env I installed yolk with pip. Here is the output- (vrmlmol)debanjan@thinkpad:~/vrmlmol$ yolk -V PyOpenGL PyOpenGL 3.1.0b1 PyOpenGL 3.0.2 PyOpenGL…
Debanjan Basu
  • 834
  • 1
  • 8
  • 29
0
votes
1 answer

pyopengl: glFramebuffer function errors

The following functions does not work for me (pyopengl and opengl 4.2). Am I doing something wrong? glGetIntegerv(GL_MAX_FRAMEBUFFER_WIDTH) KeyError: ('Unknown specifier GL_MAX_FRAMEBUFFER_WIDTH (0x9315)', 'Failure in cConverter ',…
Mads M Pedersen
  • 579
  • 6
  • 16
0
votes
0 answers

Can't pass data in vertex shader using pyopengl

I have a problem with passing data to vertex shader. When I try to pass data to vertex shader it's simply not passed at all. My PC spec needed: OS: Windows 8 64-bit Python: 2.7.6 64-bit PyOpenGL: 3.0.2 64-bit NumPy: 1.8.0 64-bit unofficial (but not…
Sergey
  • 21
  • 1
0
votes
1 answer

check for bool(glutGetWindow) before calling

I'm new to Linux Mint and medium new to Python. I'm trying to run a program that uses OpenGL. The installation of OpenGL seemed to have worked fine, but when i run my program i get the following error: File…
0
votes
1 answer

Change value in OpenGLWidget from MainWindow (GUI)

Using python and bindings (pyqt, pyopengl) I have created a simple 3D viewer. I would like to create some basic actions operated/triggered by user interaction. The program has 2 parts. opengl widget: class OpenGLWidget(QtOpenGL.QGLWidget): def…
lskrinjar
  • 5,483
  • 7
  • 29
  • 54
0
votes
1 answer

PyOpenGL-accelerate + numpy

I'm installing MakeHuman on Debian, so all dependencies was set up, but when launching it's an error: SYS.PLATFORM: linux2 PLATFORM.MACHINE: x86_64 PLATFORM.PROCESSOR: PLATFORM.UNAME.RELEASE: 2.6.32.26 PLATFORM.LINUX_DISTRIBUTION: debian 6.0.6…
Rax Wunter
  • 2,677
  • 3
  • 25
  • 32
0
votes
1 answer

glColorPointer() not painting vertex color in interleaved VBO

I am using (Python and PyOpenGL) interleaved VBO (vertex, normal, color) in the form: Vx1, Vy1, Vz1, Nx1, Ny1, Nz1, R1, G1, B1, A1, Vx2... VBO is generated with: self.vbo_id = glGenBuffers (1) glBindBuffer(GL_ARRAY_BUFFER, self.vbo_id) # upload…
lskrinjar
  • 5,483
  • 7
  • 29
  • 54
0
votes
1 answer

glVertexPointer(), glNormalPointer - stride and pointer parameters in PyOpenGL

I am using interleaved VBO to display geometry using Python and PyOpenGL. The VBO consists of vertices, normals and colors: [vx1, vy1, vz1, nx1, ny1, nz1, R1, G1, B1, vx2...] Drawing is made with the…
lskrinjar
  • 5,483
  • 7
  • 29
  • 54
0
votes
2 answers

create opengl lights with class constructor

I am currently working on lighting in OpenGL (in python) and I have an idea and with that idea a problem and a question. As I am reading the documentation here. I got an idea if I can write a class (constructor) to create lights as objects that will…
lskrinjar
  • 5,483
  • 7
  • 29
  • 54
0
votes
1 answer

modelview matrix not updated using pyopengl and pyqt

I am using PyQt and PyOpenGl and I have some problems with updating of modelview matrix when I try to translate/pan. The drawing/painting is done in method paintGL def paintGL(self): """ display geometry """ # Clear…
lskrinjar
  • 5,483
  • 7
  • 29
  • 54
0
votes
1 answer

Pyopengl - How to separate lines drawn from single VBO

so I have managed to draw 2 lines (consisting of 5 smaller 'line segments' each) directly from a VBO, however it connects the two lines when it shouldn't. So the code for drawing the lines consists of: self.linelist = np.array([ …
James Elder
  • 1,583
  • 3
  • 22
  • 34