I have downloaded and am having trouble trying to run a program from
http://brainworkshop.sourceforge.net/. I run Fedora 14.
I am here with the hope that someone who has experience with python and OpenGL and GLUT and pyglet could give me some suggestions.
This is my first exposure to python and OpenGL and GLUT and pyglet.
I am educating myself using material from
http://docs.python.org.
http://www.videotutorialsrock.com/op...linux/home.php
http://pyglet.org/documentation.html
I ran glxinfo and see that I have direct rendering
According to the tutorial on brainworkshop I can tell whether my system is adaquately configured by looking in /usr/include/GL to see whether gl.h and glut.h are there. I have gl.h but not glut.h. Yum tells me that I have freeglut (from
http://freeglut.sourceforge.net) which YUM says is equivalent.
After 3 days of trying to work my way through the brainworkshop program, I decided to see if I could run the pyglet samples from pyglet.org. Have not been successful there either,
When I try to run brainworkshop it initializes variables and then tries to create a window. It tries to create an instance of class MyWindow. In the process it calls a function named glx.glXGetVisualFromFBConfig, which returns an empty vector instead of the contents expected. When I look for glXGetVisualFromFBConfig I see that it is a variable that holds the result returned from a function named _link_function.
grep -i -r -w _link_function * shows _link_function used many times
At various locations various functions are imported as_link_function. At one spot None is assigned. Thus far I have not been successful in finding what function goes under that name when the problem occurs.
I am starting to wonder whether maybe the options in brainworkshop dont apply to Fedora.
Based on a little more research, pyglet.GL.glx.py has a statement
glXGetVisualFromFBConfig = _link_function('glXGetVisualFromFBConfig', POINTER(XVisualInfo), [POINTER(Display), GLXFBConfig], 'VERSION_1_3')
where _link_function points to link_GL in lib_glx.py
I dont understand it well enough, but I believe this statment is incompatible with my environment.