Re: [pygame] Shaders and Examples not Working

2008-11-04 Thread Charlie Nolan
Looks like you need to make a call to glutInit() at the start of InitGL. Won't run here without it. -FM On Thu, Oct 23, 2008 at 5:31 PM, Ian Mallett [EMAIL PROTECTED] wrote: I've condensed it down and ported it to pygame. http://www.geometrian.com/Programs/Tutorials/pygameshaders.zip Ian

Re: [pygame] Shaders and Examples not Working

2008-11-04 Thread Ian Mallett
Hi, yes, I noticed that for some reason my computer doesn't require this, but nearly everyone I've talked to seems to need it. Is there a reason why glutInit() is required on some computers and not on others? Ian

Re: [pygame] Shaders and Examples not Working

2008-11-04 Thread Mike C. Fletcher
Ian Mallett wrote: Hi, yes, I noticed that for some reason my computer doesn't require this, but nearly everyone I've talked to seems to need it. Is there a reason why glutInit() is required on some computers and not on others? Ian GLUT has some book-keeping stuff that it needs

Re: [pygame] Shaders and Examples not Working

2008-10-23 Thread Mike C. Fletcher
Ian Mallett wrote: Hi, I get (adding the necessary import ctypes at the top): AttributeError: function 'glCreateShader' not found Thanks, Ian You'll likely need to use the extension-based version (ARB.shader_objects). If you have a modern Nvidia/ATI card it will almost certainly have shader

Re: [pygame] Shaders and Examples not Working

2008-10-23 Thread claudio canepa
On Thu, Oct 23, 2008 at 12:03 PM, Mike C. Fletcher [EMAIL PROTECTED]wrote: Ian Mallett wrote: Hi, I get (adding the necessary import ctypes at the top): AttributeError: function 'glCreateShader' not found Thanks, Ian You'll likely need to use the extension-based version

Re: [pygame] Shaders and Examples not Working

2008-10-23 Thread Ian Mallett
YAY! Thank you all so much! that works! PyOpenGL 3.0.0b6, nVidia Go 7600 Ian

Re: [pygame] Shaders and Examples not Working

2008-10-23 Thread Ian Mallett
I've condensed it down and ported it to pygame. http://www.geometrian.com/Programs/Tutorials/pygameshaders.zip Ian

Re: [pygame] Shaders and Examples not Working

2008-10-22 Thread Mike C. Fletcher
Ian Mallett wrote: Perhaps I'm doing something wrong--I get another error when using the OpenGLContext example: File C:\dev\Python25\Lib\site-packages\OpenGLContext\arrays.py, line 2, in module from vrml.arrays import * ImportError: No module named vrml.arrays My intention was be to

Re: [pygame] Shaders and Examples not Working

2008-10-22 Thread Lenard Lindstrom
Hi Ian, Ian Mallett wrote: On 10/20/08, Greg Ewing [EMAIL PROTECTED] wrote: How exactly do they fail? Do you get an exception? Well, they certainly don't run right out of the box. The ARB example seems more complete, but it whines about the ARB extensions--how it can't find them for

Re: [pygame] Shaders and Examples not Working

2008-10-22 Thread Ian Mallett
Hi, I get (adding the necessary import ctypes at the top): AttributeError: function 'glCreateShader' not found Thanks, Ian

Re: [pygame] Shaders and Examples not Working

2008-10-22 Thread claudio canepa
On Tue, Oct 21, 2008 at 10:15 PM, Ian Mallett [EMAIL PROTECTED] wrote: Hi, On Tue, Oct 21, 2008 at 12:28 PM, claudio canepa [EMAIL PROTECTED]wrote: Searching the pygame site with 'shaders + opengl' got many hits. Can you point to the specif script(s) in trouble ? I was referring to these

Re: [pygame] Shaders and Examples not Working

2008-10-21 Thread Greg Ewing
Ian Mallett wrote: However, neither of the shader examples work for me, even after I made the obvious modifications. How exactly do they fail? Do you get an exception? Does PyGlet use the PyOpenGL port of the outdated OpenGL 2.0? I think pyglet has its own wrappers for OpenGL, and doesn't

Re: [pygame] Shaders and Examples not Working

2008-10-21 Thread Ian Mallett
On 10/20/08, Greg Ewing [EMAIL PROTECTED] wrote: How exactly do they fail? Do you get an exception? Well, they certainly don't run right out of the box. The ARB example seems more complete, but it whines about the ARB extensions--how it can't find them for some reason. Probably because the

Re: [pygame] Shaders and Examples not Working

2008-10-21 Thread claudio canepa
On Mon, Oct 20, 2008 at 11:42 PM, Ian Mallett [EMAIL PROTECTED] wrote: Hi, I've been doing lots of cool stuff with PyOpenGL, but frankly, with cooler effects comes more complexity, and when things get more complex [...] The solution, I've gathered from day 1, is to use shaders, which are

Re: [pygame] Shaders and Examples not Working

2008-10-21 Thread René Dudfield
Hi, at one point they did work... However pyopengl 3 is still in beta and has been changing a lot recently... causing some things to fail. There's been a recent fix in cvs to get them working on windows again (I think your platform). I know that recently a bunch of shader examples were added

Re: [pygame] Shaders and Examples not Working

2008-10-21 Thread Ian Mallett
Hi, On Tue, Oct 21, 2008 at 12:28 PM, claudio canepa [EMAIL PROTECTED]wrote: Searching the pygame site with 'shaders + opengl' got many hits. Can you point to the specif script(s) in trouble ? I was referring to these tutorials: http://www.pygame.org/wiki/GLSLExample?parent=CookBook

Re: [pygame] Shaders and Examples not Working

2008-10-21 Thread René Dudfield
hi, it should be: python setup.py install Maybe remove your site-packages one first. cheers, On Wed, Oct 22, 2008 at 12:15 PM, Ian Mallett [EMAIL PROTECTED] wrote: Hi, On Tue, Oct 21, 2008 at 12:28 PM, claudio canepa [EMAIL PROTECTED] wrote: Searching the pygame site with 'shaders +

Re: [pygame] Shaders and Examples not Working

2008-10-21 Thread Ian Mallett
Done. Where were the examples you mentioned?

Re: [pygame] Shaders and Examples not Working

2008-10-21 Thread Mike C. Fletcher
René Dudfield wrote: Hi, at one point they did work... However pyopengl 3 is still in beta and has been changing a lot recently... causing some things to fail. There's been a recent fix in cvs to get them working on windows again (I think your platform). Actually, I'm using bzr these days

Re: [pygame] Shaders and Examples not Working

2008-10-21 Thread Ian Mallett
Perhaps I'm doing something wrong--I get another error when using the OpenGLContext example: File C:\dev\Python25\Lib\site-packages\OpenGLContext\arrays.py, line 2, in module from vrml.arrays import * ImportError: No module named vrml.arrays

[pygame] Shaders and Examples not Working

2008-10-20 Thread Ian Mallett
Hi, I've been doing lots of cool stuff with PyOpenGL, but frankly, with cooler effects comes more complexity, and when things get more complex, PyOpenGL fixed function techniques do not seem to be the answer. A dynamically rendered cubic reflectionmapped object is complicated enough. So is a