Hi Alejandro

Thanks for the input, but it is not my code that generates the error.
It is the vbo class from PyOpenGL. Let me illustrate:

icos = np.array([...], dtype=np.float32)
v=vbo.VBO(icos, usage='GL_STATIC_DRAW')
glEnableClientState(GL_VERTEX_ARRAY)
v.bind()
glVertexPointer (3, GL_FLOAT, 0, v)
glDrawArrays (GL_TRIANGLES, 0, 60)

Here v.bind() fails.

It doesn't seem right to modify the vbo class.

On Wed, Jan 20, 2010 at 10:59 PM, Alejandro Segovia <asegovi@gmail.com> wrote:

Hi Nils,

I ran into the same issue when porting VBO code from Linux to Mac. In
my case, the problem was that the function's signature was different
on both versions: on Linux it received two parameters (one was an
"out" value where to place the new newly created buffer's reference)
whereas on Mac it just received the number of buffers to create and
returned the reference(s) by means of "return".

In order to keep my code portable I surrounded the call in a
try...except block and fall back to the other call.

Hope this helps.

Best regards,
Alejandro.-

Sent from my iPhone

On Jan 20, 2010, at 6:03 PM, Nils Sudmann <sudmann@gmail.com> wrote:

> Hi, just installed Python 2.6 and PyOpengl 3.0.1b2 on a Vista machine.
> However, a very simple test program that uses VBO's (and not much
> else) fails on Vista, but works like a charm on my linux box.
> This is what it tells me:
>
> OpenGL.error.NullFunctionError: Attempt to call an undefined
> function glGenBuffersARB, check for bool(glGenBuffersARB) before
> calling
> Traceback (most recent call last):
>   File "test.py", line 50, in OnPaint
>     v.bind()
>   File "C:\Program Files\Python26\lib\site-packages\OpenGL\arrays
> \vbo.py", line 217, in bind
>     buffers = self.create_buffers()
>
> I tried setting
> OpenGL.FORWARD_COMPATIBLE_ONLY = False
> but I guess my opengl drivers for vista have dropped legacy support
> altogether (the card is a GTX275).
>
> Any ideas?
> --
> If Atheism is a religion, then not collecting stamps is a hobby.
> ---
> ---
> ---
> ---------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts
> the
> world's best and brightest in the field, creating opportunities for
> Conference
> attendees to learn about information security's most important
> issues through
> interactions with peers, luminaries and emerging and established
> companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> PyOpenGL Homepage
> http://pyopengl.sourceforge.net
> _______________________________________________
> PyOpenGL-Users mailing list
> PyOpenGL-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pyopengl-users

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Users mailing list
PyOpenGL-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyopengl-users



--
If Atheism is a religion, then not collecting stamps is a hobby.