Re: [PyOpenGL-Users] How to use shaders in pyopengl
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2008-08-28 12:35:44
|
Dirk Reiners wrote: > Hi Mike, > > Mike C. Fletcher wrote: > >> The shaderobject.py test just ran on my (Linux) workstation here, so the >> code should be reasonably close to working. >> > > I'm having trouble getting that to work. It complains about not being able to > find vrml.arrays, and I can't find it either... > vrml97.arrays is part of PyVRML97... assuming it's installed... easy_install pyvrml97 should have happened when you did easy_install OpenGLContext However... > Is there a way to get at the extension system without going through the full > OpenGL Context? Or using a GLUT context? I'm a little confused by the whole > context code... ;) > There's no need at all for OpenGLContext to use extensions. OpenGLContext is a separate project. The reason I mentioned it is that it has *sample* code for using shaders. Extensions are all available as simple imports in PyOpenGL, see: OpenGL/tests/tests.py:552 for an example of using the frame buffer object extension in PyOpenGL, for instance. Or OpenGL/arrays/vbo.py for code using vertex buffer objects. HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |