I'm trying to display a simple scene with a bezier curve (see attached file).
Under Linux (Ubuntu Karmic, Python 2.6, cgkit 2.0.0alpha9, PyOpenGL 3.0.0), the scene renders very well. Under Windows XP, I get this traceback:
C:\Python26\Scripts>c:\python26\python viewer.py z:\bezier.py
Traceback (most recent call last):
File "viewer.py", line 667, in <module>
File "c:\python26\lib\site-packages\cgkit\tool.py", line 198, in run
File "viewer.py", line 377, in action
self.draw(self.cam, width, height)
File "viewer.py", line 644, in draw
File "c:\python26\lib\site-packages\cgkit\beziercurvegeom.py", line 201, in drawGL
File "C:\Python26\Lib\site-packages\OpenGL\error.py", line 208, in glCheckError
baseOperation = baseOperation,
err = 1280,
description = 'invalid enumerant',
baseOperation = glPushAttrib,
cArguments = (GL_LIGHTING_BIT,)
I have tried cgkit 2.0.0alpha9 with Python 2.5 and 2.6, PyOpenGL 3.0.0, 3.0.1 and development version (bzr), with no success. The renderer is software (Windows XP under VirtualBox). Other scripts which use PyOpenGL run correctly. Other cgkit scenes, with complex trimeshes and lighting, work flawlessly.
The problem seems to be mixing OpenGL calls from Python and C++ support library.
I am also trying to compile cgkit from git to see if the problem persists.
Log in to post a comment.